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 = ["manager.go"],
importpath = "go-common/app/job/main/videoup-report/model/manager",
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,41 @@
package manager
import "encoding/json"
const (
UpTypeExcitationWhite = 19 //激励回查白名单分组
TableUps = "ups"
)
//User user info
type User struct {
ID int64 `json:"uid"`
Username string `json:"username"`
Department string `json:"department"`
}
// BinMsg manager binlog消息结构
type BinMsg struct {
Action string `json:"action"`
Table string `json:"table"`
New json.RawMessage `json:"new"`
Old json.RawMessage `json:"old"`
}
// Ups UP主分组关联结构
type Ups struct {
ID int64 `json:"id"`
MID int64 `json:"mid"`
Type int64 `json:"type"`
//Note string `json:"note"`
//CTime string `json:"ctime"`
//MTime string `json:"mtime"`
}
// UpGroup UP主分组关联关系
type UpGroup struct {
ID int64 `json:"id"`
MID int64 `json:"mid"`
GroupID int64 `json:"group_id"`
GroupName string `json:"group_name"`
}