runner.go 379 B

123456789101112131415161718192021
  1. package http
  2. import (
  3. "go-common/app/admin/ep/saga/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. func queryProjectRunners(c *bm.Context) {
  7. var (
  8. req = &model.ProjectDataReq{}
  9. err error
  10. )
  11. if err = c.Bind(req); err != nil {
  12. return
  13. }
  14. if req.Username, err = getUsername(c); err != nil {
  15. c.JSON(nil, err)
  16. return
  17. }
  18. c.JSON(srv.QueryProjectRunners(c, req))
  19. }