...
|
...
|
@@ -32,8 +32,8 @@ func NewMiniSearchArticlePageLogic(ctx context.Context, svcCtx *svc.ServiceConte |
|
|
func (l *MiniSearchArticlePageLogic) MiniSearchArticlePage(req *types.MiniSearchArticleRequest) (resp *types.MiniSearchArticleResponse, err error) {
|
|
|
|
|
|
var conn = l.svcCtx.DefaultDBConn()
|
|
|
if req.Size > 100 {
|
|
|
req.Size = 100
|
|
|
if req.Size > 2000 {
|
|
|
req.Size = 2000
|
|
|
}
|
|
|
cnt, articleList, err := l.svcCtx.ArticleRepository.CustomSearchBy(l.ctx, conn, req.UserId, req.CompanyId,
|
|
|
req.TagCategory, req.TagId, [2]int64{req.BeginTime, req.EndTime}, req.SearchWord, req.Page, req.Size)
|
...
|
...
|
|