...
|
...
|
@@ -101,6 +101,7 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma |
|
|
if len(companyIds) > 0 {
|
|
|
_, companyList, err := l.svcCtx.CompanyRepository.Find(l.ctx, conn, domain.NewQueryOptions().
|
|
|
WithFindOnly().
|
|
|
WithKV("companyId", userToken.CompanyId).
|
|
|
WithKV("ids", companyIds).
|
|
|
WithKV("limit", len(companyIds)))
|
|
|
if err != nil {
|
...
|
...
|
@@ -115,6 +116,7 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma |
|
|
if len(userIds) > 0 {
|
|
|
_, userList, err := l.svcCtx.UserRepository.Find(l.ctx, conn, domain.NewQueryOptions().
|
|
|
WithFindOnly().
|
|
|
WithKV("companyId", userToken.CompanyId).
|
|
|
WithKV("ids", userIds).
|
|
|
WithKV("limit", len(userIds)))
|
|
|
if err != nil {
|
...
|
...
|
@@ -129,6 +131,7 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma |
|
|
if len(commentIds) > 0 {
|
|
|
_, commentList, err := l.svcCtx.ArticleCommentRepository.Find(l.ctx, conn, domain.NewQueryOptions().
|
|
|
WithFindOnly().
|
|
|
WithKV("companyId", userToken.CompanyId).
|
|
|
WithKV("ids", commentIds).
|
|
|
WithKV("limit", len(commentIds)))
|
|
|
if err != nil {
|
...
|
...
|
@@ -143,6 +146,7 @@ func (l *MiniBusinessLogic) MiniBusiness(req *types.MessageRequest, msgType doma |
|
|
if len(articleIds) > 0 {
|
|
|
_, articleList, err := l.svcCtx.ArticleRepository.Find(l.ctx, conn, userToken.CompanyId, domain.NewQueryOptions().
|
|
|
WithFindOnly().
|
|
|
WithKV("companyId", userToken.CompanyId).
|
|
|
WithKV("ids", articleIds).
|
|
|
WithKV("limit", len(articleIds)))
|
|
|
if err != nil {
|
...
|
...
|
|