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 = ["share.go"],
importpath = "go-common/app/interface/main/web-goblin/model/share",
tags = ["automanaged"],
visibility = ["//visibility:public"],
deps = [
"//app/service/main/usersuit/model:go_default_library",
"//library/time:go_default_library",
],
)
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,31 @@
package share
import (
suitmdl "go-common/app/service/main/usersuit/model"
xtime "go-common/library/time"
)
// Share share .
type Share struct {
ID int64 `json:"id"`
Mid int64 `json:"mid"`
DayCount int64 `json:"day_count"`
Cycle int64 `json:"cycle"`
ShareDate int64 `json:"share_date"`
Ctime xtime.Time `json:"ctime"`
Mtime xtime.Time `json:"mtime"`
}
// Encourage encourage .
type Encourage struct {
UserInfo interface{} `json:"user_info"`
TodayShare int64 `json:"today_share"`
ShareDays int64 `json:"share_days"`
Pendants interface{} `json:"pendants"`
}
// GroupPendant groupPendant .
type GroupPendant struct {
NeedDays int64 `json:"need_days"`
Pendant *suitmdl.GroupPendantList `json:"pendant"`
}