Browse Source

更新

master
huangjiajun 18 hours ago
parent
commit
f685885c5a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/svc/advertising/svc_list.go

+ 3
- 0
app/svc/advertising/svc_list.go View File

@@ -8,6 +8,7 @@ import (
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
"github.com/gin-gonic/gin"
"strings"
)

func List(c *gin.Context) {
@@ -68,6 +69,8 @@ func VisitList(c *gin.Context) {
}
uid = utils.Int64ToStr(user.Id)
}
req.Platform = strings.ReplaceAll(req.Platform, " ", "")
req.Type = strings.ReplaceAll(req.Type, " ", "")
NewAdvertisingCallbackDb := implement.NewAdvertisingCallbackDb(db.Db)
notice, total, _ := NewAdvertisingCallbackDb.FindAdvertisingCallbackAndTotal(req.Page, req.Limit, req.Amount, uid, req.StartTime, req.EndTime, req.Platform, req.Type)
resp.Total = total


Loading…
Cancel
Save