feat: 新增会话与结果管理功能及扩展字段
重构执行列表树状结构,扁平化日期节点下的输出项,新增会话列表查询、结果删除与软删除标记,引入扩展字段与模板配置,升级依赖版本。
This commit is contained in:
@@ -23,6 +23,9 @@ type FlowExecution struct {
|
||||
SessionId string `orm:"session_id" json:"sessionId" description:"会话ID"`
|
||||
TotalTokens int `orm:"total_tokens" json:"totalTokens" description:"总token消耗"`
|
||||
TotalFee int `orm:"total_fee" json:"totalFee" description:"总费用"`
|
||||
SessionDel bool `orm:"session_del" json:"sessionDel" description:"会话是否删除"`
|
||||
ResultDel bool `orm:"result_del" json:"resultDel" description:"结果是否删除"`
|
||||
Extension map[string]interface{} `orm:"extension" json:"extension" description:"扩展字段"`
|
||||
}
|
||||
|
||||
type flowExecutionCol struct {
|
||||
@@ -41,6 +44,9 @@ type flowExecutionCol struct {
|
||||
SessionId string
|
||||
TotalTokens string
|
||||
TotalFee string
|
||||
SessionDel string
|
||||
ResultDel string
|
||||
Extension string
|
||||
}
|
||||
|
||||
var FlowExecutionCol = flowExecutionCol{
|
||||
@@ -59,4 +65,7 @@ var FlowExecutionCol = flowExecutionCol{
|
||||
SessionId: "session_id",
|
||||
TotalTokens: "total_tokens",
|
||||
TotalFee: "total_fee",
|
||||
SessionDel: "session_del",
|
||||
ResultDel: "result_del",
|
||||
Extension: "extension",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user