utm.go 338 B

123456789101112131415161718192021
  1. package controller
  2. import (
  3. "net/http"
  4. "bet24.com/servers/adminserver/dao"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // 流量渠道列表
  8. func UTMSourceList(c *gin.Context) {
  9. list := dao.GetUTMSource()
  10. c.JSON(http.StatusOK, struct {
  11. RecordCount int
  12. List interface{}
  13. }{
  14. RecordCount: len(list),
  15. List: list,
  16. })
  17. return
  18. }