Compare commits

...

2 Commits

Author SHA1 Message Date
85fe309b05 Cleanup the dto models 2025-07-25 22:17:42 +03:30
e7b8338932 Add docker build cache to gitlab CI 2025-07-25 14:06:10 +03:30
5 changed files with 14 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ docker-build:
# All branches are tagged with $DOCKER_IMAGE_NAME (defaults to commit ref slug) # All branches are tagged with $DOCKER_IMAGE_NAME (defaults to commit ref slug)
# Default branch is also tagged with `latest` # Default branch is also tagged with `latest`
script: script:
- docker build --pull -t "$DOCKER_IMAGE_NAME" . - docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $CI_REGISTRY_IMAGE:latest --pull -t "$DOCKER_IMAGE_NAME" .
- docker push "$DOCKER_IMAGE_NAME" - docker push "$DOCKER_IMAGE_NAME"
- | - |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then

View File

@@ -0,0 +1,13 @@
package dto
type ApproveMediaInput struct {
MediaId string `json:"mediaId" binding:"required"`
}
type LoginInput struct {
Password string `json:"password" binding:"required"`
}
type RejectMediaInput struct {
MediaId string `json:"mediaId" binding:"required"`
}

View File

@@ -1,5 +0,0 @@
package dto
type ApproveMediaInput struct {
MediaId string `json:"mediaId" binding:"required"`
}

View File

@@ -1,5 +0,0 @@
package dto
type LoginInput struct {
Password string `json:"password" binding:"required"`
}

View File

@@ -1,5 +0,0 @@
package dto
type RejectMediaInput struct {
MediaId string `json:"mediaId" binding:"required"`
}