user.go 564 B

1234567891011121314151617181920
  1. package v1
  2. type RegisterRequest struct {
  3. Email string `json:"email" binding:"required,email" example:"1234@gmail.com"`
  4. Password string `json:"password" binding:"required" example:"123456"`
  5. }
  6. type UpdateProfileRequest struct {
  7. Nickname string `json:"nickname" example:"alan"`
  8. Email string `json:"email" binding:"required,email" example:"1234@gmail.com"`
  9. }
  10. type GetProfileResponseData struct {
  11. UserId string `json:"userId"`
  12. Nickname string `json:"nickname" example:"alan"`
  13. }
  14. type GetProfileResponse struct {
  15. Response
  16. Data GetProfileResponseData
  17. }