job.go 520 B

1234567891011121314151617181920212223242526
  1. package http
  2. import (
  3. "go-common/app/admin/ep/saga/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. // @params queryProjectJob
  7. // @router get /ep/admin/saga/v1/data/project/job
  8. // @response TeamDataResp
  9. func queryProjectJob(c *bm.Context) {
  10. var (
  11. req = &model.ProjectJobRequest{}
  12. err error
  13. )
  14. if err = c.Bind(req); err != nil {
  15. return
  16. }
  17. if req.Username, err = getUsername(c); err != nil {
  18. c.JSON(nil, err)
  19. return
  20. }
  21. //c.JSON(srv.QueryProjectJob(c, req))
  22. c.JSON(srv.QueryProjectJobNew(c, req))
  23. }