diff --git a/app/model_res/base_model.go b/app/model_res/base_model.go index 69bdf3b..8490be7 100644 --- a/app/model_res/base_model.go +++ b/app/model_res/base_model.go @@ -1,5 +1,6 @@ package model_res +// TODO DELETE 这个文件或许没什么意义了。 type DocInterface interface { ToString() string } diff --git a/app/model_res/doc.go b/app/model_res/doc.go index 8a44a1d..fe120ad 100644 --- a/app/model_res/doc.go +++ b/app/model_res/doc.go @@ -24,16 +24,3 @@ type DocResult struct { Content string `json:"content" explain:"文档内容"` UpdatedAt *time.Time `json:"updated_at" explain:"最后更新时间"` } - -// GetType implements DocInterface. -func (d DocResult) GetType() string { - panic("unimplemented") -} - -/** - * @description: 实现 DocInterface 接口,输出作为 LLM 的参考内容。 - * @return {*} - */ -func (d DocResult) ToString() string { - return d.Content -} diff --git a/app/model_res/encounter.go b/app/model_res/encounter.go index 73cca1d..eec5357 100644 --- a/app/model_res/encounter.go +++ b/app/model_res/encounter.go @@ -3,7 +3,6 @@ package model_res import ( "catface/app/model" "catface/app/model_es" - "fmt" "time" ) @@ -23,7 +22,3 @@ type EncounterResult struct { Content string `json:"content" explain:"内容"` UpdatedAt *time.Time `json:"updated_at" explain:"最后更新时间"` } - -func (e EncounterResult) ToString() string { - return fmt.Sprintf(`路遇笔记标题:%s;路遇笔记内容:%s;最后更新时间:%v`, e.Title, e.Content, e.UpdatedAt) -}