update_account_info.go 1.0 KB

12345678910111213141516171819202122232425262728
  1. package http_model
  2. type UpdateAccountInfoRequest struct {
  3. EnterpriseId string `json:"enterprise_id"` // 商家ID
  4. SubAccountId int `json:"sub_account_id"` // 子账号ID
  5. Phone string `json:"phone"` // 绑定手机号
  6. Code string `json:"code"` // 验证码
  7. EnterpriseName string `json:"enterprise_name"` // 商家名称
  8. Avatar string `json:"avatar"` // 头像url
  9. SubAccountName string `json:"sub_account_name"` // 子账号名称
  10. }
  11. type UpdateAccountInfoData struct {
  12. Phone string `json:"phone"` // 绑定手机号
  13. EnterpriseName string `json:"enterprise_name"` // 商家名称
  14. Avatar string `json:"avatar"` // 头像url
  15. SubAccountName string `json:"sub_account_name"` // 子账号名称
  16. }
  17. func NewUpdateAccountInfoRequest() *UpdateAccountInfoRequest {
  18. return new(UpdateAccountInfoRequest)
  19. }
  20. func NewUpdateAccountInfoResponse() *CommonResponse {
  21. resp := new(CommonResponse)
  22. resp.Data = new(UpdateAccountInfoData)
  23. return resp
  24. }