create_user.go 412 B

123456789101112131415161718
  1. package http_model
  2. type CreateUserRequest struct {
  3. Username string `json:"username"`
  4. Role string `json:"role"`
  5. Password string `json:"password"`
  6. Email string `json:"email"`
  7. Phone string `json:"phone"`
  8. }
  9. func NewCreateUserRequest() *CreateUserRequest {
  10. return new(CreateUserRequest)
  11. }
  12. func NewCreateUserResponse() *CommonResponse {
  13. resp := new(CommonResponse)
  14. return resp
  15. }