Initial commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package proto
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"stat/common"
|
||||
"stat/models/botdailyhourstat"
|
||||
"time"
|
||||
)
|
||||
|
||||
type BotDailyHourListReq struct {
|
||||
common.Page
|
||||
SumDateStart time.Time `json:"sumDateStart" binding:"required"`
|
||||
SumDateStop time.Time `json:"sumDateStop" binding:"required"`
|
||||
AppId *int32 `json:"appId"`
|
||||
}
|
||||
|
||||
type BotDailyHourListResp struct {
|
||||
Total int64 `json:"total"`
|
||||
List botdailyhourstat.BotHourStatList `json:"list"`
|
||||
}
|
||||
|
||||
type BotMonthStatReq struct {
|
||||
Month time.Time `json:"month" binding:"required"` // 只关注这个日期的年月
|
||||
AppId *int32 `json:"appId"` // 如果AppId为空,则计算所有APP
|
||||
}
|
||||
|
||||
type BotMonthStatResp struct {
|
||||
List botdailyhourstat.BotHourStatList `json:"list"`
|
||||
}
|
||||
|
||||
type BotDailyHourOneReq struct {
|
||||
Id primitive.ObjectID `json:"id" binding:"required"`
|
||||
SumDate time.Time `json:"sumDate"`
|
||||
AppId int32 `json:"appId"`
|
||||
}
|
||||
|
||||
type BotDailyHourOneResp struct {
|
||||
Stat *botdailyhourstat.BotHourStat `json:"stat"`
|
||||
}
|
||||
Reference in New Issue
Block a user