SubAccountDetail.go 987 B

12345678910111213141516171819202122232425262728293031
  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. Others string `json:"others,omitempty"` //手机号或账号名称
  9. }
  10. type SubAccountDetailResponse struct {
  11. SubAccountInfo gorm_model.YounggeeSubAccount //子账号详情
  12. Creater string `json:"creater"`
  13. }
  14. type SubAccountData struct {
  15. SubAccountInfo []*SubAccountDetailResponse `json:"SubAccountData"`
  16. Total string `json:"total"`
  17. }
  18. func NewSubAccountDetailRequest() *SubAccountDetailRequest {
  19. return new(SubAccountDetailRequest)
  20. }
  21. func NewSubAccountDetailResponse() *CommonResponse {
  22. resp := new(CommonResponse)
  23. resp.Data = new(SubAccountData)
  24. return resp
  25. }