find_all_sub_account.go 1.4 KB

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