123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- package http
- import (
- "go-common/app/admin/ep/saga/model"
- bm "go-common/library/net/http/blademaster"
- )
- // @params ProjectDataReq
- // @router get /ep/admin/saga/v1/data/project/report
- // @response ProjectDataResp
- func queryProjectCommit(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.QueryProjectCommit(c, req))
- }
- // @params TeamDataRequest
- // @router get /ep/admin/saga/v1/data/commit/report
- // @response TeamDataResp
- func queryTeamCommit(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.QueryTeamCommit(c, req))
- }
- // @params CommitRequest
- // @router get /ep/admin/saga/v1/data/commit
- // @response CommitResp
- func queryCommit(c *bm.Context) {
- var (
- req = &model.CommitRequest{}
- 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.QueryCommit(c, req))
- }
|