guoziyun 9 ヶ月 前
コミット
4c8c1f812c

+ 4 - 2
.vscode/settings.json

@@ -2,11 +2,13 @@
   // 在文件浏览器中隐藏指定目录
   "files.exclude": {
     "**/dist": true,
-    "**/node_modules": true
+    "**/node_modules": true,
+    "**/public": true
   },
   // 在搜索时排除指定目录
   "search.exclude": {
     "**/dist": true,
-    "**/node_modules": true
+    "**/node_modules": true,
+    "**/public": true
   }
 }

+ 6 - 6
oms/dist/src/controllers/messageRecordController.js

@@ -179,7 +179,7 @@ class MessageRecordController {
             }
         };
         /**
-         * @route GET /api/message-records/statistics/overall
+         * @route GET /api/message/statistics/overall
          * @desc Retrieves overall message push statistics
          * @access Private
          */
@@ -195,7 +195,7 @@ class MessageRecordController {
             }
         };
         /**
-         * @route GET /api/message-records/statistics/by-activity
+         * @route GET /api/message/statistics/by-activity
          * @desc Retrieves message push statistics grouped by activity
          * @access Private
          */
@@ -211,7 +211,7 @@ class MessageRecordController {
             }
         };
         /**
-         * @route GET /api/message-records/statistics/by-strategy
+         * @route GET /api/message/statistics/by-strategy
          * @desc Retrieves message push statistics grouped by strategy
          * @access Private
          */
@@ -227,7 +227,7 @@ class MessageRecordController {
             }
         };
         /**
-         * @route GET /api/message-records/statistics/by-template
+         * @route GET /api/message/statistics/by-template
          * @desc Retrieves message push statistics grouped by template
          * @access Private
          */
@@ -243,7 +243,7 @@ class MessageRecordController {
             }
         };
         /**
-         * @route GET /api/message-records/statistics/daily-trends
+         * @route GET /api/message/statistics/daily-trends
          * @desc Retrieves daily sent trend statistics
          * @access Private
          */
@@ -259,7 +259,7 @@ class MessageRecordController {
             }
         };
         /**
-         * @route GET /api/message-records/statistics/avg-delivery-time
+         * @route GET /api/message/statistics/avg-delivery-time
          * @desc Retrieves average message delivery time
          * @access Private
          */

+ 6 - 6
oms/dist/src/routes/apiRoutes.js

@@ -64,12 +64,12 @@ router.get("/message-records/user/:uid", messageRecordController_1.default.getRe
 router.get("/message-record/:id", messageRecordController_1.default.getRecordById);
 router.put("/message-record/:id", messageRecordController_1.default.updateRecord);
 // 新增:消息记录统计路由
-router.get("/message-records/statistics/overall", messageRecordController_1.default.getOverallStatistics);
-router.get("/message-records/statistics/by-activity", messageRecordController_1.default.getStatisticsByActivity);
-router.get("/message-records/statistics/by-strategy", messageRecordController_1.default.getStatisticsByStrategy);
-router.get("/message-records/statistics/by-template", messageRecordController_1.default.getStatisticsByTemplate);
-router.get("/message-records/statistics/daily-trends", messageRecordController_1.default.getDailySentTrends);
-router.get("/message-records/statistics/avg-delivery-time", messageRecordController_1.default.getAverageDeliveryTime);
+router.get("/message/statistics/overall", messageRecordController_1.default.getOverallStatistics);
+router.get("/message/statistics/by-activity", messageRecordController_1.default.getStatisticsByActivity);
+router.get("/message/statistics/by-strategy", messageRecordController_1.default.getStatisticsByStrategy);
+router.get("/message/statistics/by-template", messageRecordController_1.default.getStatisticsByTemplate);
+router.get("/message/statistics/daily-trends", messageRecordController_1.default.getDailySentTrends);
+router.get("/message/statistics/avg-delivery-time", messageRecordController_1.default.getAverageDeliveryTime);
 // 管理员路由
 router.get("/admin", adminController_1.default.getAdmins);
 router.get("/admin/:id", adminController_1.default.getAdminById);

+ 1 - 1
oms/public/app/index.html

@@ -9,5 +9,5 @@
   <style>body,html{width:100%;height:100%}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}body{margin:0;color:#000000d9;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}html{--antd-wave-shadow-color:#1890ff;--scroll-bar:0}</style><link rel="stylesheet" href="styles-LXBSU6DF.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-LXBSU6DF.css"></noscript></head>
   <body>
     <app-root></app-root>
-  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-7U5LK2VE.js" type="module"></script></body>
+  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-HNOLMC6P.js" type="module"></script></body>
 </html>

ファイルの差分が大きいため隠しています
+ 0 - 0
oms/public/app/main-HNOLMC6P.js


+ 6 - 6
oms/src/controllers/messageRecordController.ts

@@ -196,7 +196,7 @@ class MessageRecordController {
   };
 
   /**
-   * @route GET /api/message-records/statistics/overall
+   * @route GET /api/message/statistics/overall
    * @desc Retrieves overall message push statistics
    * @access Private
    */
@@ -212,7 +212,7 @@ class MessageRecordController {
   };
 
   /**
-   * @route GET /api/message-records/statistics/by-activity
+   * @route GET /api/message/statistics/by-activity
    * @desc Retrieves message push statistics grouped by activity
    * @access Private
    */
@@ -228,7 +228,7 @@ class MessageRecordController {
   };
 
   /**
-   * @route GET /api/message-records/statistics/by-strategy
+   * @route GET /api/message/statistics/by-strategy
    * @desc Retrieves message push statistics grouped by strategy
    * @access Private
    */
@@ -244,7 +244,7 @@ class MessageRecordController {
   };
 
   /**
-   * @route GET /api/message-records/statistics/by-template
+   * @route GET /api/message/statistics/by-template
    * @desc Retrieves message push statistics grouped by template
    * @access Private
    */
@@ -260,7 +260,7 @@ class MessageRecordController {
   };
 
   /**
-   * @route GET /api/message-records/statistics/daily-trends
+   * @route GET /api/message/statistics/daily-trends
    * @desc Retrieves daily sent trend statistics
    * @access Private
    */
@@ -276,7 +276,7 @@ class MessageRecordController {
   };
 
   /**
-   * @route GET /api/message-records/statistics/avg-delivery-time
+   * @route GET /api/message/statistics/avg-delivery-time
    * @desc Retrieves average message delivery time
    * @access Private
    */

+ 6 - 6
oms/src/routes/apiRoutes.ts

@@ -73,12 +73,12 @@ router.get("/message-record/:id", messageRecordController.getRecordById);
 router.put("/message-record/:id", messageRecordController.updateRecord);
 
 // 新增:消息记录统计路由
-router.get("/message-records/statistics/overall", messageRecordController.getOverallStatistics);
-router.get("/message-records/statistics/by-activity", messageRecordController.getStatisticsByActivity);
-router.get("/message-records/statistics/by-strategy", messageRecordController.getStatisticsByStrategy);
-router.get("/message-records/statistics/by-template", messageRecordController.getStatisticsByTemplate);
-router.get("/message-records/statistics/daily-trends", messageRecordController.getDailySentTrends);
-router.get("/message-records/statistics/avg-delivery-time", messageRecordController.getAverageDeliveryTime);
+router.get("/message/statistics/overall", messageRecordController.getOverallStatistics);
+router.get("/message/statistics/by-activity", messageRecordController.getStatisticsByActivity);
+router.get("/message/statistics/by-strategy", messageRecordController.getStatisticsByStrategy);
+router.get("/message/statistics/by-template", messageRecordController.getStatisticsByTemplate);
+router.get("/message/statistics/daily-trends", messageRecordController.getDailySentTrends);
+router.get("/message/statistics/avg-delivery-time", messageRecordController.getAverageDeliveryTime);
 
 // 管理员路由
 router.get("/admin", adminController.getAdmins);

+ 5 - 5
omsapp/src/app/pages/message-dashboard.component.ts

@@ -219,7 +219,7 @@ export class MessageDashboardComponent implements OnInit {
     // Use forkJoin to run all requests in parallel and wait for all to complete
     forkJoin({
       overall: this.http
-        .get(`/api/message-records/statistics/overall?t=${new Date()}`)
+        .get(`/api/message/statistics/overall?t=${new Date()}`)
         .pipe(
           map((res: any) => res?.data || null),
           catchError((err) => {
@@ -229,7 +229,7 @@ export class MessageDashboardComponent implements OnInit {
           })
         ),
       strategies: this.http
-        .get(`/api/message-records/statistics/by-strategy?t=${new Date()}`)
+        .get(`/api/message/statistics/by-strategy?t=${new Date()}`)
         .pipe(
           map((res: any) => res?.data || []),
           catchError((err) => {
@@ -239,7 +239,7 @@ export class MessageDashboardComponent implements OnInit {
           })
         ),
       templates: this.http
-        .get(`/api/message-records/statistics/by-template?t=${new Date()}`)
+        .get(`/api/message/statistics/by-template?t=${new Date()}`)
         .pipe(
           map((res: any) => res?.data || []),
           catchError((err) => {
@@ -249,7 +249,7 @@ export class MessageDashboardComponent implements OnInit {
           })
         ),
       dailyTrends: this.http
-        .get(`/api/message-records/statistics/daily-trends?t=${new Date()}`)
+        .get(`/api/message/statistics/daily-trends?t=${new Date()}`)
         .pipe(
           map((res: any) => res?.data || []),
           catchError((err) => {
@@ -259,7 +259,7 @@ export class MessageDashboardComponent implements OnInit {
           })
         ),
       // avgTime: this.http
-      //   .get('/api/message-records/statistics/avg-delivery-time')
+      //   .get('/api/message/statistics/avg-delivery-time')
       //   .pipe(
       //     map((res: any) => res?.data || null),
       //     catchError((err) => {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません