mirror of
https://github.com/go-nunu/nunu-layout-advanced.git
synced 2025-10-05 16:47:02 +08:00
32 lines
885 B
Go
32 lines
885 B
Go
package v1
|
|
|
|
type RegisterRequest struct {
|
|
Email string `json:"email" binding:"required,email" example:"1234@gmail.com"`
|
|
Password string `json:"password" binding:"required" example:"123456"`
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
Email string `json:"email" binding:"required,email" example:"1234@gmail.com"`
|
|
Password string `json:"password" binding:"required" example:"123456"`
|
|
}
|
|
type LoginResponseData struct {
|
|
AccessToken string `json:"accessToken"`
|
|
}
|
|
type LoginResponse struct {
|
|
Response
|
|
Data LoginResponseData
|
|
}
|
|
|
|
type UpdateProfileRequest struct {
|
|
Nickname string `json:"nickname" example:"alan"`
|
|
Email string `json:"email" binding:"required,email" example:"1234@gmail.com"`
|
|
}
|
|
type GetProfileResponseData struct {
|
|
UserId string `json:"userId"`
|
|
Nickname string `json:"nickname" example:"alan"`
|
|
}
|
|
type GetProfileResponse struct {
|
|
Response
|
|
Data GetProfileResponseData
|
|
}
|