user.go 326 B

123456789101112131415
  1. package dto
  2. type AddUserRequest struct {
  3. Username string `json:"username" validate:"required"`
  4. Password string `json:"password" validate:"required"`
  5. }
  6. type UpdateUserRequest struct {
  7. Username *string `json:"username"`
  8. Password *string `json:"password"`
  9. }
  10. type UserResponse struct {
  11. Username string `json:"username"`
  12. }