42 lines
768 B
Go
42 lines
768 B
Go
package http
|
|
|
|
import (
|
|
"go-common/app/admin/ep/saga/model"
|
|
bm "go-common/library/net/http/blademaster"
|
|
)
|
|
|
|
// @params TeamDataRequest
|
|
// @router get /ep/admin/saga/v1/data/pipeline/report
|
|
// @response TeamDataResp
|
|
func queryTeamPipeline(c *bm.Context) {
|
|
var (
|
|
req = &model.TeamDataRequest{}
|
|
err error
|
|
)
|
|
if err = c.Bind(req); err != nil {
|
|
return
|
|
}
|
|
|
|
if req.Username, err = getUsername(c); err != nil {
|
|
c.JSON(nil, err)
|
|
return
|
|
}
|
|
c.JSON(srv.QueryTeamPipeline(c, req))
|
|
}
|
|
|
|
func queryProjectPipelineLists(c *bm.Context) {
|
|
var (
|
|
req = &model.PipelineDataReq{}
|
|
err error
|
|
)
|
|
if err = c.Bind(req); err != nil {
|
|
return
|
|
}
|
|
|
|
if req.Username, err = getUsername(c); err != nil {
|
|
c.JSON(nil, err)
|
|
return
|
|
}
|
|
c.JSON(srv.QueryProjectPipelineNew(c, req))
|
|
}
|