|
@@ -20,13 +20,6 @@ type CygxTag struct {
|
|
|
Status int `orm:"column(status);NOT NULL"` // 状态:0-禁用 1-启用
|
|
|
}
|
|
|
|
|
|
-// 添加标签
|
|
|
-func AddCygxTag(item *CygxTag) (id int64, err error) {
|
|
|
- o := orm.NewOrm()
|
|
|
- id, err = o.Insert(item)
|
|
|
- return
|
|
|
-}
|
|
|
-
|
|
|
func (m *CygxTag) Update(cols []string) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
_, err = o.Update(m, cols...)
|
|
@@ -34,23 +27,28 @@ func (m *CygxTag) Update(cols []string) (err error) {
|
|
|
}
|
|
|
|
|
|
type CygxTagList struct {
|
|
|
- TagId int64 `orm:"column(tag_id);pk"`
|
|
|
- TagName string `orm:"column(tag_name);NOT NULL"` // 标签名
|
|
|
- ArticleTypes string `orm:"column(article_types);NOT NULL"` // 报告系列
|
|
|
- ActivityTypes string `orm:"column(activity_types);NOT NULL"` // 活动类型
|
|
|
- Industries string `orm:"column(industries);NOT NULL"` // 产业
|
|
|
- SubjectNames string `orm:"column(subject_names);NOT NULL"` // 标的
|
|
|
- Sort int `orm:"column(sort);"` // 优先级
|
|
|
- ModifyTime string `orm:"column(modify_time)"` // 修改时间
|
|
|
- CreateTime string `orm:"column(create_time)"` // 创建时间
|
|
|
- OnlineTime string `orm:"column(online_time)"` // 上线时间
|
|
|
- OfflineTime string `orm:"column(offline_time)"` // 下线时间
|
|
|
- Status int `orm:"column(status);NOT NULL"` // 状态:0-禁用 1-启用
|
|
|
- Atag bool // A标签是否有值
|
|
|
- Btag bool // A标签是否有值
|
|
|
- Ctag bool // A标签是否有值
|
|
|
- Dtag bool // A标签是否有值
|
|
|
- CheckList []string // ABCD勾选了哪几列
|
|
|
+ TagId int64 `orm:"column(tag_id);pk"`
|
|
|
+ TagName string `orm:"column(tag_name);NOT NULL"` // 标签名
|
|
|
+ ArticleTypes string `orm:"column(article_types);NOT NULL"` // 报告系列
|
|
|
+ ActivityTypes string `orm:"column(activity_types);NOT NULL"` // 活动类型
|
|
|
+ Industries string `orm:"column(industries);NOT NULL"` // 产业
|
|
|
+ SubjectNames string `orm:"column(subject_names);NOT NULL"` // 标的
|
|
|
+ Sort int `orm:"column(sort);"` // 优先级
|
|
|
+ ModifyTime string `orm:"column(modify_time)"` // 修改时间
|
|
|
+ CreateTime string `orm:"column(create_time)"` // 创建时间
|
|
|
+ OnlineTime string `orm:"column(online_time)"` // 上线时间
|
|
|
+ OfflineTime string `orm:"column(offline_time)"` // 下线时间
|
|
|
+ Status int `orm:"column(status);NOT NULL"` // 状态:0-禁用 1-启用
|
|
|
+ //Atag bool // A标签是否有值
|
|
|
+ //Btag bool // A标签是否有值
|
|
|
+ //Ctag bool // A标签是否有值
|
|
|
+ //Dtag bool // A标签是否有值
|
|
|
+ CheckList []string // ABCD勾选了哪几列
|
|
|
+}
|
|
|
+
|
|
|
+type CygxTagListResp struct {
|
|
|
+ List []*CygxTagList
|
|
|
+ ListPermission []*ChartPermission
|
|
|
}
|
|
|
|
|
|
// 列表
|