...
|
...
|
@@ -4,6 +4,7 @@ import ( |
|
|
"context"
|
|
|
"fmt"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/su-micro/cmd/ep/chat/internal/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/su-micro/pkg/contextdata"
|
|
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/su-micro/cmd/ep/chat/api/internal/svc"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/su-micro/cmd/ep/chat/api/internal/types"
|
...
|
...
|
@@ -30,11 +31,14 @@ func (l *ChatDocumentSearchLogic) ChatDocumentSearch(req *types.ChatDocumentSear |
|
|
conn = l.svcCtx.DefaultDBConn()
|
|
|
dms []*domain.ChatDocument
|
|
|
total int64
|
|
|
token = contextdata.GetUserTokenFromCtx(l.ctx)
|
|
|
)
|
|
|
|
|
|
queryOptions := domain.NewQueryOptions().WithOffsetLimit(req.Page, req.Size).
|
|
|
WithKV("fileType", req.FileType).
|
|
|
WithKV("status", req.Status)
|
|
|
WithKV("status", req.Status).
|
|
|
WithKV("companyId", token.CompanyId).
|
|
|
WithKV("userId", token.UserId)
|
|
|
if req.Name != "" {
|
|
|
queryOptions.WithKV("name", fmt.Sprintf("%%%v%%", req.Name))
|
|
|
}
|
...
|
...
|
|