init: 初始化 web_hgdjb_server 项目
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package webanalytics
|
||||
|
||||
import "time"
|
||||
|
||||
type LastWebStatInfo struct {
|
||||
SumDate time.Time `json:"sumDate" bson:"sumDate"` // 时间半小时
|
||||
AppName string `json:"appName" bson:"appName"` // APP名称
|
||||
AppId int64 `json:"appId" bson:"appId"` // appId
|
||||
ActiveUsers int64 `json:"activeUsers" bson:"activeUsers"` // 最近半小时活跃数
|
||||
YestodayPV int64 `json:"yestodayPV" bson:"yestodayPV"` // 页面浏览量 (PV)
|
||||
YestodayUV int64 `json:"yestodayUV" bson:"yestodayUV"` // 独立用户数 (UV)
|
||||
YestodayActiveUsers int64 `json:"yestodayActiveUsers" bson:"yestodayActiveUsers"` // 活跃用户数
|
||||
YestodaySessions int64 `json:"yestodaySessions" bson:"yestodaySessions"` // 会话数
|
||||
YestodayNewUsers int64 `json:"yestodayNewUsers" bson:"yestodayNewUsers"` // 新增数量
|
||||
LeadNewCount float64 `json:"leadNewCount" bson:"leadNewCount"` // 日导量新增
|
||||
LeadAmount float64 `json:"leadAmount" bson:"leadAmount"` // 日导量充值
|
||||
}
|
||||
|
||||
type AnalyticsStat struct {
|
||||
TodayList []LastWebStatInfo `json:"todayList"` //当日数据
|
||||
WeekList []LastWebStatInfo `json:"weekList"` //环比数据
|
||||
YestodayList []LastWebStatInfo `json:"yestodayList"` //同比数据
|
||||
}
|
||||
type AnalyticsDailyStat struct {
|
||||
List []LastWebStatInfo `json:"list"` //当月数据
|
||||
}
|
||||
Reference in New Issue
Block a user