Files
2026-05-20 16:13:58 +08:00

43 lines
1.2 KiB
Go

package statutils
type DeviceName string
const (
DeviceNameAndroid DeviceName = "android"
DeviceNameIos DeviceName = "ios"
DeviceNamePc DeviceName = "pc"
DeviceNameLight DeviceName = "light"
DeviceNameH5 DeviceName = "h5"
DeviceNameH5Android DeviceName = "h5_android"
DeviceNameH5Ios DeviceName = "h5_ios"
DeviceNameH5Pc DeviceName = "h5_pc"
)
func (d DeviceName) String() string {
return string(d)
}
const (
StatProjectRecharge = "recharge"
StatProjectRechargeOld = "recharge_old"
StatProjectRechargeNew = "recharge_new"
StatProjectRechargeGold = "recharge_gold"
StatProjectRechargeVip = "recharge_vip"
StatProjectOrder = "order"
StatProjectRegister = "register"
StatProjectVisit = "visit"
StatProjectGame = "game"
)
var StatProjectNameDict = map[string]string{
StatProjectRecharge: "充值统计",
StatProjectRechargeOld: "老用户充",
StatProjectRechargeNew: "新用户充",
StatProjectRechargeGold: "金币充值",
StatProjectRechargeVip: "会员充值",
StatProjectOrder: "订单统计",
StatProjectRegister: "注册用户",
StatProjectVisit: "访问统计",
StatProjectGame: "游戏统计",
}