-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from isd-sgcu/dev
Update main
- Loading branch information
Showing
59 changed files
with
4,679 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Change made | ||
|
||
- [ ] New features | ||
- [ ] Bug fixes | ||
- [ ] Breaking changes | ||
## Describe what you have done | ||
- | ||
### New Features | ||
- | ||
### Fix | ||
- | ||
### Others | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
package dto | ||
|
||
type ImageDto struct { | ||
type ImageResponse struct { | ||
Id string `json:"id"` | ||
Url string `json:"url"` | ||
ObjectKey string `json:"object_key"` | ||
} | ||
|
||
type UploadImageRequest struct { | ||
Filename string `json:"filename" validate:"required"` | ||
Data []byte `json:"data" validate:"required"` | ||
PetId string `json:"pet_id" validate:"required"` | ||
} | ||
|
||
type DeleteImageResponse struct { | ||
Success bool `json:"success"` | ||
} | ||
|
||
type AssignPetRequest struct { | ||
Ids []string `json:"ids" validate:"required"` | ||
PetId string `json:"pet_id" validate:"required"` | ||
} | ||
|
||
type AssignPetResponse struct { | ||
Success bool `json:"success"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
package dto | ||
|
||
import ( | ||
"github.com/google/uuid" | ||
) | ||
type LikeResponse struct { | ||
UserID string `json:"user_id"` | ||
PetID string `json:"pet_id"` | ||
} | ||
|
||
type FindLikeRequest struct { | ||
UserID string `json:"user_id" validate:"required"` | ||
} | ||
|
||
type CreateLikeRequest struct { | ||
UserID string `json:"user_id" validate:"required"` | ||
PetID string `json:"pet_id" validate:"required"` | ||
} | ||
|
||
type DeleteLikeRequest struct { | ||
Id string `json:"id" validate:"required"` | ||
} | ||
|
||
type LikeDto struct { | ||
UserID uuid.UUID `json:"user_id" validate:"required"` | ||
PetID uuid.UUID `json:"pet_id" validate:"required"` | ||
type DeleteLikeResponse struct { | ||
Success bool `json:"success"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
package dto | ||
|
||
type UserDto struct { | ||
type User struct { | ||
Id string `json:"id"` | ||
Email string `json:"email"` | ||
Firstname string `json:"firstname"` | ||
Lastname string `json:"lastname"` | ||
} | ||
|
||
type UpdateUserRequest struct { | ||
Email string `json:"email" validate:"required,email"` | ||
Password string `json:"password" validate:"required,gte=6,lte=30"` | ||
Firstname string `json:"firstname" validate:"required"` | ||
Lastname string `json:"lastname" validate:"required"` | ||
} | ||
|
||
type UpdateUserDto struct { | ||
Password string `json:"password" validate:"required,gte=6,lte=30"` | ||
Firstname string `json:"firstname" validate:"required"` | ||
Lastname string `json:"lastname" validate:"required"` | ||
type DeleteUserResponse struct { | ||
Success bool `json:"success"` | ||
} |
Oops, something went wrong.