refactor(model_res): 删除未使用的接口和方法
- 移除了 DocInterface 接口的未实现方法 GetType - 删除了 DocResult 和 EncounterResult 类型的 ToString 方法 - 添加了 TODO 注释,标记 base_model.go 文件可能不再需要
This commit is contained in:
parent
ae7edb5e8d
commit
b8d4044b7e
@ -1,5 +1,6 @@
|
||||
package model_res
|
||||
|
||||
// TODO DELETE 这个文件或许没什么意义了。
|
||||
type DocInterface interface {
|
||||
ToString() string
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user