Create & Init Project...

This commit is contained in:
2019-04-22 18:49:16 +08:00
commit fc4fa37393
25440 changed files with 4054998 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = ["model.go"],
importpath = "go-common/app/service/live/xuser/model/exp",
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -0,0 +1,66 @@
package exp
// Exp 经验DB层
type Exp struct {
UID int64
Uexp int64
Rexp int64
CTime string
MTime string
}
// ModelExpList exp list
type ModelExpList struct {
Data []Exp
}
// ModelExpLog 行为日志上报结构
type ModelExpLog struct {
Mid int64
Uexp int64
Rexp int64
Ts int64
// 业务来源
ReqBizDesc string
Buvid string
// 具体描述
Content map[string]string
}
// LevelInfo 等级结构
type LevelInfo struct {
UID int64
UserLevel UserLevelInfo
AnchorLevel AnchorLevelInfo
CTime string
MTime string
}
// UserLevelInfo 等级基础结构
type UserLevelInfo struct {
Level int64 `json:"level"`
NextLevel int64 `json:"nextLevel"`
UserExpLeft int64 `json:"userExpLeft"`
UserExpRight int64 `json:"userExpRight"`
UserExp int64 `json:"userExp"`
UserExpNextLevel int64 `json:"userExpNextLevel"`
Color int64 `json:"color"`
UserExpNextLeft int64 `json:"userExpNextLeft"`
UserExpNextRight int64 `json:"userExpNextRight"`
IsLevelTop int64 `json:"isLevelTop"`
}
// AnchorLevelInfo 等级基础结构
type AnchorLevelInfo struct {
Level int64 `json:"level"`
NextLevel int64 `json:"nextLevel"`
UserExpLeft int64 `json:"userExpLeft"`
UserExpRight int64 `json:"userExpRight"`
UserExp int64 `json:"userExp"`
UserExpNextLevel int64 `json:"userExpNextLevel"`
Color int64 `json:"color"`
UserExpNextLeft int64 `json:"userExpNextLeft"`
UserExpNextRight int64 `json:"userExpNextRight"`
AnchorScore int64 `json:"anchorScore"`
IsLevelTop int64 `json:"isLevelTop"`
}