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