38 lines
1015 B
Go
38 lines
1015 B
Go
package playlgmod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
// WatchReq 观看日志查询请求参数
|
|
type WatchReq struct {
|
|
PlayWay int `form:"playWay" json:"playWay"`
|
|
UID uint64 `form:"uid" json:"uid"`
|
|
Start time.Time `form:"start" json:"start"`
|
|
End time.Time `form:"end" json:"end"`
|
|
commod.Page
|
|
}
|
|
|
|
// LogInfo 返回数据
|
|
type LogInfo struct {
|
|
UID uint64 `json:"uid"`
|
|
VideoID primitive.ObjectID `json:"videoID"`
|
|
Title string `json:"title"`
|
|
PlayTime uint `json:"playTime"`
|
|
Longer int `json:"longer" `
|
|
Progress int `json:"progress"`
|
|
Via int `json:"via"`
|
|
PlayWay int `json:"playWay"` //0,免费 1付费 2.试看
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
// WatchResp 观看日志查询请求应答
|
|
type WatchResp struct {
|
|
Logs []*LogInfo `json:"logs"`
|
|
Total uint64 `json:"total"`
|
|
}
|