39 lines
1009 B
Go
39 lines
1009 B
Go
package locmod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
)
|
|
|
|
// CityPageReq 城市列表
|
|
type CityPageReq struct {
|
|
City string `form:"city" json:"city" bson:"city,omitempty"`
|
|
commod.Page
|
|
}
|
|
|
|
// LocInfo 位置信息
|
|
type LocInfo struct {
|
|
ID string `json:"id"`
|
|
City string `json:"city"` //城市
|
|
Cover string `json:"cover"` //封面
|
|
Visit int `json:"visit"` //访问人数
|
|
FakeVisit int `json:"fakeVisit"` //假访问数
|
|
SortKey int `json:"sortKey"` //web列表排序字段
|
|
CreatedAt time.Time `json:"createdAt"` //创建时间
|
|
VideoCount int `json:"videoCount"` //播放量
|
|
PlayCount int `json:"playCount"` //播放总数
|
|
}
|
|
|
|
// CityPageResp 城市列表应答
|
|
type CityPageResp struct {
|
|
List []LocInfo `json:"list"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
// HotCityPage HotCityPage
|
|
type HotCityPage struct {
|
|
Total int `json:"total" bson:"total"`
|
|
List []HotCityDoc `json:"list" bson:"list"`
|
|
}
|