Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 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 = ["elec.go"],
importpath = "go-common/app/interface/main/app-interface/model/elec",
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,15 @@
package elec
import "encoding/json"
type Info struct {
Start int64 `json:"start,omitempty"`
Show bool `json:"show"`
Total int `json:"total,omitempty"`
Count int `json:"count,omitempty"`
ElecNum int `json:"elec_num"`
State int `json:"state,omitempty"`
List json.RawMessage `json:"list,omitempty"`
User json.RawMessage `json:"user,omitempty"`
ElecSet json.RawMessage `json:"elec_set,omitempty"`
}