user_list.go 989 B

1234567891011121314151617181920212223242526272829
  1. package http_model
  2. type UserListRequest struct {
  3. PageSize int32 `json:"page_size"`
  4. PageNum int32 `json:"page_num"`
  5. }
  6. type UserListPreview struct {
  7. User string `json:"user"` // 账号
  8. Username string `json:"username"` // 后台用户名
  9. Password string `json:"password"` // 用户密码
  10. Role string `json:"role"` // 角色 1,超级管理员; 2,管理员;3,企业用户
  11. Phone string `json:"phone"` // 绑定手机
  12. Email string `json:"email"` // 电子邮件
  13. UserState string `json:"user_state"` // 0,禁用,1,正常
  14. CreatedAt string `json:"created_at"` // 创建时间
  15. }
  16. type UserListData struct {
  17. UserListPreview []*UserListPreview `json:"user_list_preview"`
  18. Total string `json:"total"`
  19. }
  20. func NewGetUserListRequest() *UserListRequest {
  21. return new(UserListRequest)
  22. }
  23. func NewGetUserListResponse() *CommonResponse {
  24. resp := new(CommonResponse)
  25. resp.Data = new(UserListData)
  26. return resp
  27. }