Jelajahi Sumber

feat(pearl): 前端 API 方法与提醒页路由注册

Sisyphus Agent 1 Minggu lalu
induk
melakukan
b49ef3e6df
2 mengubah file dengan 9 tambahan dan 10 penghapusan
  1. 4 10
      cfc-frontend/pages.json
  2. 5 0
      cfc-frontend/utils/api.js

+ 4 - 10
cfc-frontend/pages.json

@@ -1254,21 +1254,15 @@
           }
         },
         {
-          "path": "octopus-add-help",
-          "style": {
-            "navigationBarTitleText": "记录帮助"
-          }
-        },
-        {
-          "path": "octopus-records",
+          "path": "pearl-add-resource",
           "style": {
-            "navigationBarTitleText": "帮助记录"
+            "navigationBarTitleText": "登记资源"
           }
         },
         {
-          "path": "pearl-add-resource",
+          "path": "pearl-reminders/index",
           "style": {
-            "navigationBarTitleText": "登记资源"
+            "navigationBarTitleText": "互动提醒"
           }
         }
       ]

+ 5 - 0
cfc-frontend/utils/api.js

@@ -2277,6 +2277,11 @@ export const getOctopusRecords = (data) => request('/api/octopus/records', 'POST
 export const getPearlResources = () => request('/api/pearl/resources', 'POST')
 export const addPearlResource = (data) => request('/api/pearl/item/add', 'POST', data)
 export const deletePearlResource = (data) => request('/api/pearl/item/delete', 'POST', data)
+export const getConnectionTypes = () => request('/api/pearl/connection-types', 'POST')
+export const addPearlInteraction = (data) => request('/api/pearl/interaction/add', 'POST', data)
+export const getPearlInteractionList = (data) => request('/api/pearl/interaction/list', 'POST', data)
+export const getPearlReminders = () => request('/api/pearl/reminder/list', 'POST')
+export const updatePearlPriority = (data) => request('/api/pearl/item/update-priority', 'POST', data)
 export const getAbilityMap = () => request('/api/ability/map', 'POST')
 
 // ===== 椋熻氨鎺ㄨ崘 =====