go-common/app/interface/openplatform/article/model/rank.go

35 lines
556 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
// rank
var (
RankMonth = int64(1)
RankWeek = int64(2)
RankYesterday = int64(3)
RankBeforeYesterday = int64(4)
)
// RankCategory .
type RankCategory struct {
ID int64 `json:"id"`
Name string `json:"name"`
}
// Rank .
type Rank struct {
Aid int64 `json:"aid"`
Score int64 `json:"score"`
}
// RankMeta .
type RankMeta struct {
*Meta
Attention bool `json:"attention"`
Score int64 `json:"score"`
}
// RankResp .
type RankResp struct {
Note string `json:"note"`
List []*Rank `json:"list"`
}