task.go 371 B

1234567891011121314151617181920
  1. package http
  2. import (
  3. "go-common/app/admin/ep/saga/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. // @params TasksReq
  7. // @router get /ep/admin/saga/v1/tasks/project
  8. // @response TasksResp
  9. func projectTasks(ctx *bm.Context) {
  10. var (
  11. req = &model.TasksReq{}
  12. err error
  13. )
  14. if err = ctx.Bind(req); err != nil {
  15. return
  16. }
  17. ctx.JSON(srv.MergeTasks(ctx, req))
  18. }