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,29 @@
package(default_visibility = ["//visibility:public"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = ["card.go"],
importpath = "go-common/app/admin/main/feed/model/channel",
tags = ["automanaged"],
visibility = ["//visibility:public"],
deps = ["//app/admin/main/feed/model/common: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,77 @@
package channel
import (
"go-common/app/admin/main/feed/model/common"
)
var (
//NotDelete not delete
NotDelete uint8
//Delete delete
Delete uint8 = 1
//LogBusPgcsRcmd log business id
LogBusPgcsRcmd = 203
//LogBusRcmdNew log business id
LogBusRcmdNew = 204
//ActUpCsPgcRcmd log
ActUpCsPgcRcmd = "ActUpCsPgcRcmd"
//ActUpCsRcmdNew log
ActUpCsRcmdNew = "ActUpCsRcmdNew"
//ActDelCsPgcRcmd log
ActDelCsPgcRcmd = "ActDelCsPgcRcmd"
//ActDelCsRcmdNew log
ActDelCsRcmdNew = "ActDelCsRcmdNew"
//ActAddCsPgcRcmd log
ActAddCsPgcRcmd = "ActAddCsPgcRcmd"
//ActAddCsRcmdNew log
ActAddCsRcmdNew = "ActAddCsRcmdNew"
)
//AddCardSetup 复合卡片 需要首先单独创建 然后再在频道首页创建
type AddCardSetup struct {
Type string `form:"type" validate:"required"`
Value string `form:"value"`
Title string `form:"title"`
LongTitle string `form:"longtitle"`
Content string `form:"content" validate:"required"`
UID int64 `gorm:"column:uid"`
Person string
}
//UpdateCardSetup 复合卡片 需要首先单独创建 然后再在频道首页创建
type UpdateCardSetup struct {
ID int `form:"id" validate:"required"`
Type string `form:"type" validate:"required"`
Value string `form:"value"`
Title string `form:"title" validate:"required"`
LongTitle string `form:"longtitle"`
Content string `form:"content" validate:"required"`
}
//Setup 复合卡片 需要首先单独创建 然后再在频道首页创建
type Setup struct {
ID int `json:"id"`
Type string `json:"type"`
Value string `json:"value"`
Title string `json:"title"`
LongTitle string `json:"longtitle"`
Content string `json:"content"`
Deleted int `json:"deleted"`
Person string `json:"person"`
}
//SetupPager return values
type SetupPager struct {
Item []*Setup `json:"item"`
Page common.Page `json:"page"`
}
// TableName DarkPubLog dark word publish log
func (a Setup) TableName() string {
return "card_set"
}
// TableName DarkPubLog dark word publish log
func (a AddCardSetup) TableName() string {
return "card_set"
}