common_controller.go 472 B

1234567891011121314151617181920
  1. package controller
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "github.com/sirupsen/logrus"
  5. "youngee_b_api/app/service"
  6. )
  7. type CommonController struct{}
  8. // 获取合作平台列表
  9. func (t CommonController) CooperationPlatform(c *gin.Context) {
  10. result, err := service.CommonService{}.CooperationPlatform()
  11. if err != nil {
  12. logrus.Errorf("[CooperationPlatform] call Show err:%+v\n", err)
  13. returnError(c, 40000, err.Error())
  14. return
  15. }
  16. returnSuccess(c, 20000, result)
  17. }