find_all_sub_account.go 1.3 KB

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