ruifeng_liu 3 년 전
부모
커밋
45e69c8dde
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/service/statistics/index.js

+ 2 - 1
app/service/statistics/index.js

@@ -404,7 +404,8 @@ class IndexService extends CrudService {
     const trans1 = await patentTrans.count({ type: '转让', user_id: id });
     const trans2 = await patentTrans.count({ type: '合作', user_id: id });
     const trans3 = await patentTrans.count({ type: '招商', user_id: id });
-    return { unread, apply, analysis, access, information, early, trans1, trans2, trans3 };
+    return {
+      message: { unread }, apply: { apply, analysis, access }, patent: { information, early }, transaction: { trans1, trans2, trans3 } };
   }
 
 }