get_account_info.go 867 B

12345678910111213141516171819202122232425
  1. package http_model
  2. type GetAccountInfoRequest struct {
  3. EnterpriseId string `json:"enterprise_id"` // 商家ID
  4. SubAccountId int `json:"sub_account_id"` // 子账号ID
  5. }
  6. type GetAccountInfoData struct {
  7. Type int `json:"type"` // 账号类型,1主账号,2子账号
  8. Phone string `json:"phone"` // 绑定手机号
  9. EnterpriseName string `json:"enterprise_name"` // 商家名称
  10. Avatar string `json:"avatar"` // 头像url
  11. SubAccountName string `json:"sub_account_name"` // 子账号名称
  12. JobName string `json:"job_name"` // 子账号岗位名称
  13. }
  14. func NewGetAccountInfoRequest() *GetAccountInfoRequest {
  15. return new(GetAccountInfoRequest)
  16. }
  17. func NewGetAccountInfoResponse() *CommonResponse {
  18. resp := new(CommonResponse)
  19. resp.Data = new(GetAccountInfoData)
  20. return resp
  21. }