Create & Init Project...
This commit is contained in:
28
app/job/main/web-goblin/model/esports/BUILD
Normal file
28
app/job/main/web-goblin/model/esports/BUILD
Normal 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/job/main/web-goblin/model/esports",
|
||||
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"],
|
||||
)
|
31
app/job/main/web-goblin/model/esports/model.go
Normal file
31
app/job/main/web-goblin/model/esports/model.go
Normal file
@ -0,0 +1,31 @@
|
||||
package esports
|
||||
|
||||
// Contest contest.
|
||||
type Contest struct {
|
||||
ID int64 `json:"id"`
|
||||
Stime int64 `json:"stime"`
|
||||
LiveRoom int64 `json:"live_room"`
|
||||
HomeID int64 `json:"home_id"`
|
||||
AwayID int64 `json:"away_id"`
|
||||
SuccessTeam int64 `json:"success_team"`
|
||||
SeasonTitle string `json:"season_title"`
|
||||
SeasonSubTitle string `json:"season_sub_title"`
|
||||
Special int `json:"special"`
|
||||
SpecialName string `json:"special_name"`
|
||||
SpecialTips string `json:"special_tips"`
|
||||
}
|
||||
|
||||
// Team team.
|
||||
type Team struct {
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
SubTitle string `json:"sub_title"`
|
||||
}
|
||||
|
||||
// Arc arc.
|
||||
type Arc struct {
|
||||
ID int64 `json:"id"`
|
||||
Aid int64 `json:"aid"`
|
||||
Score int64 `json:"score"`
|
||||
IsDeleted int `json:"is_deleted"`
|
||||
}
|
Reference in New Issue
Block a user