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 = ["actvity.go"],
importpath = "go-common/app/interface/main/creative/model/activity",
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,53 @@
package activity
const (
//CancelState 取消活动
CancelState = -1
//JoinState 参加活动
JoinState = 0
)
// Activity for activiy list.
type Activity struct {
ID int64 `json:"id"`
Name string `json:"name"`
Tags string `json:"tags"`
Hot int8 `json:"hot"`
ActURL string `json:"act_url"`
Protocol string `json:"protocol"`
Type int `json:"type"`
New int8 `json:"new"`
Comment string `json:"comment"`
STime string `json:"stime"`
}
// Like for Like
type Like struct {
Count int `json:"count"`
}
// Subject for Subject
type Subject struct {
ID string `json:"id"`
Name string `json:"name"`
}
// Protocol str
type Protocol struct {
ID string `json:"id"`
Protocol string `json:"protocol"`
Tags string `json:"tags"`
Types string `json:"types"`
}
// ActWithTP str
type ActWithTP struct {
ID int64 `json:"id"`
Name string `json:"name"`
Tags string `json:"tags"`
Types string `json:"types"`
Hot int8 `json:"hot"`
ActURL string `json:"act_url"`
Protocol string `json:"protocol"`
Type int `json:"type"`
}