get_user_info.go 678 B

123456789101112131415161718192021
  1. package http_model
  2. type GetUserInfoRequest struct {
  3. Token string `json:"token"` // Token
  4. }
  5. type GetUserInfoData struct {
  6. Role string `json:"role"` // 角色类型 1,超级管理员; 2,管理员;3,企业用户; 4. 企业子账号;5. 管理后台子账号
  7. UserId int64 `json:"user_id"` // YG用户ID
  8. EnterpriseId string `json:"enterprise_id"` // 商家ID
  9. SubAccountId int `json:"sub_account_id"` // 子账号ID
  10. }
  11. func NewGetUserInfoRequest() *GetUserInfoRequest {
  12. return new(GetUserInfoRequest)
  13. }
  14. func NewGetUserInfoResponse() *CommonResponse {
  15. resp := new(CommonResponse)
  16. resp.Data = new(GetUserInfoData)
  17. return resp
  18. }