|
@@ -118,3 +118,29 @@ func GetTagListByIdList(idList []int) (items []*ChartTag, err error) {
|
|
|
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+// ChartTag
|
|
|
+// @Description: chart_tag 图表标签表
|
|
|
+type ChartTagItem struct {
|
|
|
+ ChartTagId int `orm:"column(chart_tag_id);pk"`
|
|
|
+ ChartTagName string `description:"标签名称"`
|
|
|
+ SysUserId int `description:"创建人id"`
|
|
|
+ HasData bool `description:"是否关联品种"`
|
|
|
+ SysUserRealName string `description:"创建人姓名"`
|
|
|
+ ModifyTime time.Time `description:"修改时间"`
|
|
|
+ CreateTime time.Time `description:"创建时间"`
|
|
|
+}
|
|
|
+
|
|
|
+// GetTagItemList
|
|
|
+// @Description: 获取所有标签列表(列表页用到的)
|
|
|
+// @author: Roc
|
|
|
+// @datetime 2023-11-22 10:44:35
|
|
|
+// @return items []*ChartTag
|
|
|
+// @return err error
|
|
|
+func GetTagItemList() (items []*ChartTag, err error) {
|
|
|
+ o := orm.NewOrmUsingDB("data")
|
|
|
+ sql := `SELECT * FROM chart_tag WHERE 1 = 1 `
|
|
|
+ _, err = o.Raw(sql).QueryRows(&items)
|
|
|
+
|
|
|
+ return
|
|
|
+}
|