|
@@ -19,6 +19,7 @@ type AiSummary struct {
|
|
|
ModifyTime time.Time // 更新时间
|
|
|
OpenaiFileName string // 文件名称
|
|
|
OpenaiFilePath string // 文件路径
|
|
|
+ OriginTitle string // 原文标题
|
|
|
Sort int // 排序字段,越小越靠前,默认值:10
|
|
|
}
|
|
|
|
|
@@ -26,6 +27,7 @@ type AiSummaryItems struct {
|
|
|
AiSummaryId int `orm:"column(ai_summary_id);pk"` // ai纪要id
|
|
|
SaDocId int // 文档ID
|
|
|
OriginContent string // 原始内容
|
|
|
+ OriginTitle string // 原文标题
|
|
|
SummaryContent string // 纪要内容
|
|
|
ClassifyId int // 分类id
|
|
|
SysUserId int // 创建人ID
|
|
@@ -47,7 +49,7 @@ func GetAiChatTopicList(sysUserId int) (item []*AiSummary, err error) {
|
|
|
}
|
|
|
|
|
|
// GetAiSummaryById 根据纪要id获取沙盘详情
|
|
|
-func GetAiSummaryById(aiSummaryId int) (sandboxInfo *AiSummary, err error) {
|
|
|
+func GetAiSummaryById(aiSummaryId int) (sandboxInfo *AiSummaryItems, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := `select * from ai_summary where ai_summary_id = ? `
|
|
|
err = o.Raw(sql, aiSummaryId).QueryRow(&sandboxInfo)
|