|
|
@@ -9,6 +9,20 @@ import (
|
|
|
"github.com/gin-gonic/gin"
|
|
|
)
|
|
|
|
|
|
+func ChannelAll(c *gin.Context) {
|
|
|
+ var appG = app.Gin{C: c}
|
|
|
+ service := service.GameChannelService{}
|
|
|
+ if err := c.ShouldBind(&service); err == nil {
|
|
|
+ if res, err := service.All(); err != nil {
|
|
|
+ appG.Response(http.StatusOK, e.INVALID_PARAMS, err.Error())
|
|
|
+ } else {
|
|
|
+ appG.Response(http.StatusOK, e.SUCCESS, res)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ appG.Response(http.StatusOK, e.INVALID_PARAMS, err.Error())
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// ChannelList 渠道列表
|
|
|
func ChannelList(c *gin.Context) {
|
|
|
var appG = app.Gin{C: c}
|