team.go 475 B

1234567891011121314151617181920212223
  1. package http
  2. import (
  3. "go-common/app/admin/ep/saga/conf"
  4. "go-common/app/admin/ep/saga/model"
  5. bm "go-common/library/net/http/blademaster"
  6. )
  7. // @params Empty
  8. // @router get /ep/admin/saga/v1/data/teams
  9. // @response TeamInfoResp
  10. func queryTeams(c *bm.Context) {
  11. if _, err := getUsername(c); err != nil {
  12. c.JSON(nil, err)
  13. return
  14. }
  15. resp := &model.TeamInfoResp{
  16. Department: conf.Conf.Property.DeInfo,
  17. Business: conf.Conf.Property.BuInfo,
  18. }
  19. c.JSON(resp, nil)
  20. }