|
@@ -2,17 +2,37 @@ package models
|
|
|
|
|
|
import (
|
|
import (
|
|
"eta/eta_forum_admin/utils"
|
|
"eta/eta_forum_admin/utils"
|
|
|
|
+ "time"
|
|
|
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
"github.com/beego/beego/v2/client/orm"
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+// AiPredictModelClassify 同花顺高频数据-分类
|
|
|
|
+type AiPredictModelClassify struct {
|
|
|
|
+ AiPredictModelClassifyId int `orm:"column(ai_predict_model_classify_id);pk"`
|
|
|
|
+ UniqueCode string `description:"唯一编码"`
|
|
|
|
+ ClassifyName string `description:"分类名称"`
|
|
|
|
+ ClassifyNameEn string `description:"英文分类名称"`
|
|
|
|
+ ParentId int `description:"父级ID"`
|
|
|
|
+ Level int `description:"层级"`
|
|
|
|
+ LevelPath string `description:"层级路径"`
|
|
|
|
+ Sort int `description:"排序"`
|
|
|
|
+ RootId int `description:"顶级分类ID"`
|
|
|
|
+ SysUserId int `description:"创建人ID"`
|
|
|
|
+ SysUserRealName string `description:"创建人姓名"`
|
|
|
|
+ CreateTime time.Time `description:"创建时间"`
|
|
|
|
+ ModifyTime time.Time `description:"修改时间"`
|
|
|
|
+}
|
|
|
|
+
|
|
// AI预测模型分类项
|
|
// AI预测模型分类项
|
|
type AiPredictModelClassifyItems struct {
|
|
type AiPredictModelClassifyItems struct {
|
|
- AiPredictModelClassifyId int `json:"ai_predict_model_classify_id" orm:"column(ai_predict_model_classify_id)"`
|
|
|
|
- ClassifyName string `json:"classify_name"` // 分类名称
|
|
|
|
- ParentId int `json:"parent_id"` // 父级ID
|
|
|
|
- LevelPath string `json:"level_path"` // 层级路径
|
|
|
|
- Sort int `json:"sort"` // 排序
|
|
|
|
|
|
+ AiPredictModelClassifyId int `orm:"column(ai_predict_model_classify_id)"`
|
|
|
|
+ UniqueCode string `description:"唯一编码"`
|
|
|
|
+ ClassifyName string `description:"分类名称"`
|
|
|
|
+ ParentId int `description:"父级ID"`
|
|
|
|
+ LevelPath string `description:"层级路径"`
|
|
|
|
+ Sort int `description:"排序"`
|
|
|
|
+ Children []*AiPredictModelClassifyItems
|
|
}
|
|
}
|
|
|
|
|
|
// AI预测模型分类列表
|
|
// AI预测模型分类列表
|
|
@@ -25,8 +45,8 @@ func (s AiPredictModelClassifyItemList) Less(i, j int) bool { return s[i].Sort <
|
|
|
|
|
|
// 商家AI预测模型分类响应
|
|
// 商家AI预测模型分类响应
|
|
type BusinessAiPredictModelClassifyResp struct {
|
|
type BusinessAiPredictModelClassifyResp struct {
|
|
- List []*AiPredictModelClassifyItems `json:"list"` // 分类列表
|
|
|
|
- CheckList []int `json:"check_list"` // 已选中的分类ID列表
|
|
|
|
|
|
+ List []*AiPredictModelClassifyItems `description:"分类列表"`
|
|
|
|
+ CheckList []int `description:"已选中的分类ID列表"`
|
|
}
|
|
}
|
|
|
|
|
|
// 根据关键字获取AI预测模型分类列表
|
|
// 根据关键字获取AI预测模型分类列表
|