go-common/app/admin/ep/saga/http/runner.go

22 lines
379 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package http
import (
"go-common/app/admin/ep/saga/model"
bm "go-common/library/net/http/blademaster"
)
func queryProjectRunners(c *bm.Context) {
var (
req = &model.ProjectDataReq{}
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.QueryProjectRunners(c, req))
}