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 = ["order.go"],
importpath = "go-common/app/interface/main/creative/model/order",
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,44 @@
package order
// Order str
type Order struct {
ExeOdID int64 `json:"execute_order_id"`
BzOdName string `json:"business_order_name"`
IDCode int64 `json:"id_code"`
GameBaseID int64 `json:"game_base_id"`
GameName string `json:"game_name"`
}
// Oasis 绿洲计划
type Oasis struct {
State int `json:"state"`
RealeseOrder int64 `json:"running_execute_order_count"` //投放商单数
TotalOrder int64 `json:"total_execute_order_count"` //总商单数
}
// Growth for order.
type Growth struct {
State int `json:"state"`
YesterdayIncome float64 `json:"yesterday_income"` //昨日收入
MonthIncome float64 `json:"present_month_income"` //本月收入
}
// OasisEarnings for order.
type OasisEarnings struct {
State int `json:"state"`
Realese int64 `json:"release"` //投放商单数
Total int64 `json:"total"` //总商单数
}
// GrowthEarnings for order.
type GrowthEarnings struct {
State int `json:"state"`
Yesterday float64 `json:"yesterday"` //昨日收入
Month float64 `json:"month"` //本月收入
}
// UpValidate for up validate.
type UpValidate struct {
MID int64 `json:"mid"`
State int `json:"state"` //0:禁止1:允许
}