package http_model type GetUserInfoRequest struct { Token string `json:"token"` // Token } type GetUserInfoData struct { Role string `json:"role"` // 角色 1,超级管理员; 2,管理员;3,企业用户; 4. 企业子账号;5. 管理后台子账号;6.服务商账号;7.服务商子账号 UserId int64 `json:"user_id"` // YG用户ID SupplierId int `json:"supplier_id"` // 服务商ID SubAccountId int `json:"sub_account_id"` // 子账号ID AuthStatus int `json:"auth_status"` // 认证状态,1未认证,2已认证 SupplierType int `json:"supplier_type"` // 服务商用户类型,1为个人PR,2为机构 JobName string `json:"job_name"` // 岗位名称 CommercialCenter string `json:"commercial_center"` // 商单广场权限 CommercialManagement string `json:"commercial_management"` // 商单管理权限 CooperatePermission string `json:"cooperate_permission"` // 推广合作权限 FinancialPermission string `json:"financial_permission"` // 财务结算权限 } func NewGetUserInfoRequest() *GetUserInfoRequest { return new(GetUserInfoRequest) } func NewGetUserInfoResponse() *CommonResponse { resp := new(CommonResponse) resp.Data = new(GetUserInfoData) return resp }