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,32 @@
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"http.go",
"model.go",
"rpc.go",
],
importpath = "go-common/app/service/main/figure/model",
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,5 @@
package model
type ParamBatchInfo struct {
MIDs []int64 `form:"mids,split"`
}

View File

@@ -0,0 +1,30 @@
package model
import "time"
// Figure user figure model
type Figure struct {
ID int32 `json:"-"`
Mid int64 `json:"mid"`
Score int32 `json:"score"`
LawfulScore int32 `json:"lawful_score"`
WideScore int32 `json:"wide_score"`
FriendlyScore int32 `json:"friendly_score"`
BountyScore int32 `json:"bounty_score"`
CreativityScore int32 `json:"creativity_score"`
Ver int32 `json:"ver"`
Ctime time.Time `json:"-"`
Mtime time.Time `json:"-"`
}
type FigureWithRank struct {
*Figure
Percentage int8 `json:"percentage"`
}
// Rank user rank model
type Rank struct {
ScoreFrom int32 `json:"score_from"`
ScoreTo int32 `json:"score_to"`
Percentage int8 `json:"percentage"`
}

View File

@@ -0,0 +1,5 @@
package model
type ArgUserFigure struct {
Mid int64
}