51 lines
1.4 KiB
Go
51 lines
1.4 KiB
Go
package lotterylgmod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
// AdsClickResp 广告点击日志应答
|
|
type AdsClickResp struct {
|
|
Logs int `json:"logs"`
|
|
Total int64 `json:"total"`
|
|
}
|
|
|
|
// AdsCountResp 广告点击统计应答
|
|
type AdsCountResp struct {
|
|
ID string `json:"id"`
|
|
TodayCnt int64 `json:"todayCnt"`
|
|
YesterdayCnt int64 `json:"yesterdayCnt"`
|
|
WeekCnt int64 `json:"weekCnt"`
|
|
MonthCnt int64 `json:"monthCnt"`
|
|
TotalCnt int64 `json:"totalCnt"`
|
|
}
|
|
|
|
type AdsClickReq struct {
|
|
UID uint64 `form:"uid" json:"uid"`
|
|
Start time.Time `form:"start" json:"start"`
|
|
End time.Time `form:"end" json:"end"`
|
|
Sort string `form:"sort" json:"sort"`
|
|
Desc int `form:"desc" json:"desc"`
|
|
commod.Page
|
|
}
|
|
|
|
// AdsClickInfo
|
|
type AdsClickInfo struct {
|
|
AID primitive.ObjectID `json:"aid"` //广告id
|
|
TodayCount int64 `json:"todayCount"` //今日点击数
|
|
YesterdayCount int64 `json:"yesterdayCount"` //昨日点击数
|
|
WeekCount int64 `json:"weekCount"` //本周点击数
|
|
MonthCount int64 `json:"monthCount"` //本月点击数
|
|
TotalCount int64 `json:"totalCount"` //总点击数
|
|
}
|
|
|
|
// AdsStatisticResp 广告点击统计应答
|
|
type AdsStatisticResp struct {
|
|
Logs []AdsClickInfo `json:"logs"`
|
|
Total int64 `json:"total"`
|
|
}
|