joblistrequest.go 402 B

1234567891011121314151617181920212223
  1. package http_model
  2. type JobListRequest struct {
  3. }
  4. type JobListResponse struct {
  5. Jobs []JoBInfo `json:"Jobs"`
  6. }
  7. type JoBInfo struct {
  8. JobId int `json:"job_id"`
  9. JobName string `json:"job_name"`
  10. }
  11. func NewJobListRequest() *JobListRequest {
  12. return new(JobListRequest)
  13. }
  14. func NewJobListResponse() *CommonResponse {
  15. resp := new(CommonResponse)
  16. resp.Data = new(JobListResponse)
  17. return resp
  18. }