feat: 支持多租户多模型对话及文档去重优化
This commit is contained in:
16
controller/task.go
Normal file
16
controller/task.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"rag/model/dto"
|
||||
"rag/service"
|
||||
)
|
||||
|
||||
type task struct{}
|
||||
|
||||
var Task = new(task)
|
||||
|
||||
func (c *task) Get(ctx context.Context, req *dto.GetTaskReq) (res *dto.ListTaskRes, err error) {
|
||||
res, err = service.Task.Get(ctx, req)
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user