find_all_sub_account.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package http_model
  2. type FindAllSubAccountRequest struct {
  3. PageSize int64 `json:"page_size"`
  4. PageNum int64 `json:"page_num"`
  5. EnterpriseId string `json:"enterprise_id"` // 子账号属于的企业id
  6. JobId int `json:"job_id"` // 岗位ID
  7. AccountStatus int `json:"account_status"` // 账号状态,1为正常,2为停用
  8. }
  9. type FindAllSubAccountInfo struct {
  10. SubAccountId int `json:"sub_account_id"` // 子账号ID
  11. PhoneNumber string `json:"phone_number"` // 手机号
  12. SubAccountName string `json:"sub_account_name"` // 子账号名称
  13. JobId int `json:"job_id"` // 岗位ID
  14. JobName string `json:"job_name"` // 岗位名称
  15. EnterpriseId string `json:"enterprise_id"` // 所属商家账号ID
  16. EnterpriseName string `json:"enterprise_name"` // 创建人名称
  17. AccountStatus int `json:"account_status"` // 账号状态,1为正常,2为停用
  18. UserId int `json:"user_id"` // 用户表中ID
  19. }
  20. type FindAllSubAccountData struct {
  21. SubAccountInfo []*FindAllSubAccountInfo `json:"sub_account_info"` // 子账号信息列表
  22. Total int64 `json:"total"` // 总数
  23. }
  24. func NewFindAllSubAccountRequest() *FindAllSubAccountRequest {
  25. return new(FindAllSubAccountRequest)
  26. }
  27. func NewFindAllSubAccountResponse() *CommonResponse {
  28. resp := new(CommonResponse)
  29. resp.Data = new(FindAllSubAccountData)
  30. return resp
  31. }