member.go 380 B

12345678910111213141516171819202122
  1. package http
  2. import (
  3. "go-common/app/admin/ep/saga/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. func queryProjectMembers(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.QueryProjectMembers(c, req))
  19. }