-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gear/joh 28 pet and like endpoints #10
Conversation
JOH-28 Pet and Like endpoints
FindAll - GET /pet FindOne - GET /pet/:id Create- POST /pet/create FindByUserId - GET /like |
src/app/utils/pet/pet.utils.go
Outdated
return imagesList | ||
} | ||
|
||
func RawToDto(in *petproto.Pet, images []*imgproto.Image) *dto.PetResponse { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In johnjud-backend
, Raw = database model, Dto = proto.
In johnjud-gateway
, there's Dto = dto model.
So, I think we should change Raw to Proto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also do the same for CreateDtoToRaw, UpdateDtoToRaw, etc. (anything with Raw
)
imageMock
for both service and test in utils