Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶ added in v0.0.3
type CreateUserRequest struct {
FullName string `json:"fullname"`
PhoneNumber string `json:"phone_number"`
Email string `json:"email"`
Password string `json:"password"`
}
func (CreateUserRequest) Validate ¶ added in v0.0.3
func (cup CreateUserRequest) Validate() error
type CreateUserResponse ¶ added in v0.0.3
type UpdateUserRequest ¶ added in v0.0.3
type UpdateUserRequest struct {
UserID int64 `json:"-"`
Fullname string `json:"fullname"`
PhoneNumber string `json:"phone_number"`
UserType string `json:"user_type"`
Email string `json:"email"`
Password string `json:"password"`
UpdateBy string `json:"-"`
}
func (UpdateUserRequest) Validate ¶ added in v0.0.3
func (cup UpdateUserRequest) Validate() error
type UpdateUserStatusRequest ¶ added in v0.0.3
type UpdateUserStatusRequest struct {
UserID int64 `json:"-"`
Status string `json:"status"`
UpdateBy string `json:"-"`
}
func (UpdateUserStatusRequest) Validate ¶ added in v0.0.3
func (ussp UpdateUserStatusRequest) Validate() error
type UserDetailResponse ¶ added in v0.0.3
type UserDetailResponse struct {
UserID int64 `json:"id"`
Email string `json:"email"`
Fullname string `json:"fullname"`
PhoneNumber string `json:"phone_number"`
UserType string `json:"user_type"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
}
type UserLoginRequest ¶ added in v0.0.3
func (UserLoginRequest) Validate ¶ added in v0.0.3
func (ulr UserLoginRequest) Validate() error
type UserLoginResponse ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.