find_all_sub_account.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  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. SupplierName string `json:"supplier_name"` // 所属服务商名称
  15. AccountStatus int `json:"account_status"` // 账号状态,1为正常,2为停用
  16. UserId int `json:"user_id"` // 用户表中ID
  17. }
  18. type FindAllSubAccountData struct {
  19. SubAccountInfo []*FindAllSubAccountInfo `json:"sub_account_info"` // 子账号信息列表
  20. Total int64 `json:"total"` // 总数
  21. }
  22. func NewFindAllSubAccountRequest() *FindAllSubAccountRequest {
  23. return new(FindAllSubAccountRequest)
  24. }
  25. func NewFindAllSubAccountResponse() *CommonResponse {
  26. resp := new(CommonResponse)
  27. resp.Data = new(FindAllSubAccountData)
  28. return resp
  29. }