|
@@ -0,0 +1,20 @@
|
|
|
+package controller
|
|
|
+
|
|
|
+import (
|
|
|
+ "github.com/gin-gonic/gin"
|
|
|
+ "github.com/sirupsen/logrus"
|
|
|
+ "youngee_b_api/app/service"
|
|
|
+)
|
|
|
+
|
|
|
+type CommonController struct{}
|
|
|
+
|
|
|
+// 获取合作平台列表
|
|
|
+func (t CommonController) CooperationPlatform(c *gin.Context) {
|
|
|
+ result, err := service.CommonService{}.CooperationPlatform()
|
|
|
+ if err != nil {
|
|
|
+ logrus.Errorf("[CooperationPlatform] call Show err:%+v\n", err)
|
|
|
+ returnError(c, 40000, err.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ returnSuccess(c, 20000, result)
|
|
|
+}
|