SubAccountDetail.go 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. package http_model
  2. import "youngee_m_api/model/gorm_model"
  3. type SubAccountDetailRequest struct {
  4. PageSize int `json:"page_size"`
  5. PageNum int `json:"page_num"`
  6. JobId *int `json:"job_id,omitempty"` // 可选的岗位类型
  7. AccountStatus *int `json:"account_status,omitempty"` // 可选的账号状态
  8. PhoneNumber *string `json:"phone_number,omitempty"` // 可选的手机号
  9. SubAccountName *string `json:"sub_account_name,omitempty"` // 可选的账号名称
  10. }
  11. type SubAccountDetailResponse struct {
  12. SubAccountInfo gorm_model.YounggeeSubAccount //子账号详情
  13. Creater string `json:"creater"`
  14. }
  15. type SubAccountData struct {
  16. SubAccountInfo []*SubAccountDetailResponse `json:"SubAccountData"`
  17. Total string `json:"total"`
  18. }
  19. func NewSubAccountDetailRequest() *SubAccountDetailRequest {
  20. return new(SubAccountDetailRequest)
  21. }
  22. func NewSubAccountDetailResponse() *CommonResponse {
  23. resp := new(CommonResponse)
  24. resp.Data = new(SubAccountData)
  25. return resp
  26. }