|
|
@@ -0,0 +1,2588 @@
|
|
|
+# CFC 小程序「页面功能 → 操作接口」测试矩阵
|
|
|
+
|
|
|
+> 由 `cfc-frontend/utils/api.js` 全量解析 + 全量页面 `.vue/.js` 调用扫描自动生成。
|
|
|
+> 每个小程序页面(路由)映射到其实际调用的后端操作接口,可直接派生接口测试用例。
|
|
|
+
|
|
|
+- **页面路由数**:267
|
|
|
+- **接口用例总数**:1016
|
|
|
+- **公开接口(无需登录)**:178
|
|
|
+- **需登录态接口**:838
|
|
|
+- **含路径参数(需真实 ID)**:56
|
|
|
+
|
|
|
+> 注意:含路径参数的接口在无真实数据时大概率返回 400/404/401,脚本仅做「可达性 + 返回结构」断言,业务正确性需结合真实数据补充。
|
|
|
+
|
|
|
+## 按模块概览
|
|
|
+
|
|
|
+| 模块 | 接口数 | 公开 | 需登录 | 含参数 |
|
|
|
+|------|-------:|-----:|-------:|-------:|
|
|
|
+| ability | 1 | 0 | 1 | 0 |
|
|
|
+| activity | 27 | 27 | 0 | 0 |
|
|
|
+| admin | 14 | 3 | 11 | 1 |
|
|
|
+| ai | 10 | 1 | 9 | 0 |
|
|
|
+| articles | 22 | 22 | 0 | 0 |
|
|
|
+| assessment | 7 | 0 | 7 | 0 |
|
|
|
+| auth | 26 | 26 | 0 | 0 |
|
|
|
+| badges | 11 | 0 | 11 | 0 |
|
|
|
+| basic-quota | 2 | 0 | 2 | 0 |
|
|
|
+| butler | 8 | 8 | 0 | 0 |
|
|
|
+| cart | 3 | 0 | 3 | 0 |
|
|
|
+| cf | 3 | 0 | 3 | 0 |
|
|
|
+| circle | 15 | 1 | 14 | 0 |
|
|
|
+| cognitive | 15 | 0 | 15 | 0 |
|
|
|
+| commission | 19 | 0 | 19 | 0 |
|
|
|
+| common | 1 | 0 | 1 | 0 |
|
|
|
+| consent | 1 | 0 | 1 | 0 |
|
|
|
+| consignee | 4 | 0 | 4 | 0 |
|
|
|
+| contact | 13 | 0 | 13 | 0 |
|
|
|
+| content | 1 | 0 | 1 | 0 |
|
|
|
+| content-sections | 4 | 0 | 4 | 0 |
|
|
|
+| coupon | 10 | 0 | 10 | 0 |
|
|
|
+| daily-task | 2 | 0 | 2 | 0 |
|
|
|
+| dan-assessment | 17 | 5 | 12 | 1 |
|
|
|
+| dan-report | 2 | 0 | 2 | 1 |
|
|
|
+| diet | 20 | 1 | 19 | 0 |
|
|
|
+| dimension | 12 | 0 | 12 | 0 |
|
|
|
+| doa | 7 | 0 | 7 | 0 |
|
|
|
+| earnings | 4 | 0 | 4 | 0 |
|
|
|
+| emireport | 3 | 0 | 3 | 0 |
|
|
|
+| energy | 41 | 0 | 41 | 0 |
|
|
|
+| family | 98 | 12 | 86 | 1 |
|
|
|
+| family-platform | 4 | 0 | 4 | 0 |
|
|
|
+| feedback | 2 | 2 | 0 | 0 |
|
|
|
+| food | 8 | 0 | 8 | 0 |
|
|
|
+| game | 7 | 0 | 7 | 0 |
|
|
|
+| growth | 12 | 0 | 12 | 2 |
|
|
|
+| growth-task | 2 | 0 | 2 | 0 |
|
|
|
+| guide | 50 | 6 | 44 | 6 |
|
|
|
+| guide-config | 3 | 0 | 3 | 0 |
|
|
|
+| health | 97 | 2 | 95 | 2 |
|
|
|
+| health-plan | 1 | 0 | 1 | 0 |
|
|
|
+| health-status | 7 | 0 | 7 | 0 |
|
|
|
+| home | 21 | 0 | 21 | 0 |
|
|
|
+| home-banner | 1 | 0 | 1 | 0 |
|
|
|
+| indicator | 8 | 0 | 8 | 0 |
|
|
|
+| insurance | 1 | 0 | 1 | 0 |
|
|
|
+| internal | 1 | 0 | 1 | 0 |
|
|
|
+| invite | 23 | 0 | 23 | 0 |
|
|
|
+| invite-card | 2 | 2 | 0 | 0 |
|
|
|
+| leaderboard | 2 | 0 | 2 | 0 |
|
|
|
+| meal | 5 | 0 | 5 | 0 |
|
|
|
+| membership | 35 | 0 | 35 | 0 |
|
|
|
+| micro-action | 4 | 0 | 4 | 0 |
|
|
|
+| mind | 8 | 0 | 8 | 0 |
|
|
|
+| mini-game | 7 | 0 | 7 | 1 |
|
|
|
+| notification | 6 | 0 | 6 | 0 |
|
|
|
+| nutrition | 3 | 0 | 3 | 0 |
|
|
|
+| nutritionist | 1 | 1 | 0 | 0 |
|
|
|
+| octopus | 11 | 0 | 11 | 0 |
|
|
|
+| onboarding | 3 | 0 | 3 | 0 |
|
|
|
+| orchestration | 16 | 0 | 16 | 0 |
|
|
|
+| package | 2 | 0 | 2 | 0 |
|
|
|
+| packages | 6 | 1 | 5 | 5 |
|
|
|
+| parent | 4 | 0 | 4 | 1 |
|
|
|
+| pearl | 9 | 0 | 9 | 0 |
|
|
|
+| points | 8 | 0 | 8 | 0 |
|
|
|
+| poster-template | 2 | 0 | 2 | 0 |
|
|
|
+| product | 32 | 32 | 0 | 0 |
|
|
|
+| profile | 2 | 0 | 2 | 0 |
|
|
|
+| purchase | 2 | 0 | 2 | 0 |
|
|
|
+| recommend | 3 | 0 | 3 | 1 |
|
|
|
+| report-summary | 2 | 0 | 2 | 1 |
|
|
|
+| rewards | 7 | 0 | 7 | 2 |
|
|
|
+| service-role | 2 | 0 | 2 | 0 |
|
|
|
+| share | 5 | 0 | 5 | 0 |
|
|
|
+| shop | 2 | 2 | 0 | 0 |
|
|
|
+| special-price | 2 | 0 | 2 | 0 |
|
|
|
+| stats | 7 | 0 | 7 | 0 |
|
|
|
+| streets | 4 | 4 | 0 | 4 |
|
|
|
+| survey | 8 | 0 | 8 | 0 |
|
|
|
+| task | 2 | 0 | 2 | 0 |
|
|
|
+| tasks | 41 | 0 | 41 | 13 |
|
|
|
+| tianpan | 5 | 5 | 0 | 1 |
|
|
|
+| unlock | 3 | 0 | 3 | 0 |
|
|
|
+| user | 30 | 0 | 30 | 0 |
|
|
|
+| vendor | 9 | 7 | 2 | 0 |
|
|
|
+| wealth | 16 | 8 | 8 | 0 |
|
|
|
+| wisdom | 1 | 0 | 1 | 0 |
|
|
|
+| wishes | 23 | 0 | 23 | 13 |
|
|
|
+| withdrawal | 3 | 0 | 3 | 0 |
|
|
|
+
|
|
|
+## 按页面路由明细
|
|
|
+
|
|
|
+### App (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/auto-login` | 公开 | | `autoLogin` |
|
|
|
+| POST | `/api/auth/sso-login` | 公开 | | `ssoLogin` |
|
|
|
+| POST | `/api/auth/verify` | 公开 | | `verifyToken` |
|
|
|
+| POST | `/api/family/invite/check-family` | 公开 | | `checkUserFamily` |
|
|
|
+
|
|
|
+### __tests__/api/api.indicator.test (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/indicator/change-ranking` | 登录 | | `getIndicatorChangeRanking` |
|
|
|
+| POST | `/api/indicator/correlation/list` | 登录 | | `getIndicatorCorrelationList` |
|
|
|
+| POST | `/api/indicator/quick-lookup` | 登录 | | `getIndicatorQuickLookup` |
|
|
|
+| POST | `/api/indicator/trend` | 登录 | | `getIndicatorTrend` |
|
|
|
+
|
|
|
+### __tests__/api/api.test (113 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/ai/chat/conversations` | 登录 | | `aiGetConversations` |
|
|
|
+| POST | `/api/ai/chat/send` | 登录 | | `aiSendMessage` |
|
|
|
+| POST | `/api/articles/categories` | 公开 | | `getArticleCategories` |
|
|
|
+| POST | `/api/articles/daily-tip` | 公开 | | `getDailyTip` |
|
|
|
+| POST | `/api/articles/detail` | 公开 | | `getArticleDetail` |
|
|
|
+| POST | `/api/articles/list` | 公开 | | `getArticleList` |
|
|
|
+| POST | `/api/articles/related` | 公开 | | `getRelatedArticles` |
|
|
|
+| POST | `/api/auth/auto-login` | 公开 | | `autoLogin` |
|
|
|
+| POST | `/api/auth/check-phone` | 公开 | | `checkPhone` |
|
|
|
+| POST | `/api/auth/direct-register` | 公开 | | `directRegister` |
|
|
|
+| POST | `/api/auth/phone-login` | 公开 | | `phoneLogin` |
|
|
|
+| POST | `/api/auth/send-code` | 公开 | | `sendCode` |
|
|
|
+| POST | `/api/auth/set-password` | 公开 | | `setPassword` |
|
|
|
+| POST | `/api/auth/silent-login` | 公开 | | `silentLogin` |
|
|
|
+| POST | `/api/auth/verify` | 公开 | | `verifyToken` |
|
|
|
+| POST | `/api/auth/verify-password` | 公开 | | `verifyPassword` |
|
|
|
+| POST | `/api/auth/wechat-login` | 公开 | | `wechatLogin` |
|
|
|
+| POST | `/api/auth/wechat-phone-login` | 公开 | | `wechatPhoneLogin` |
|
|
|
+| POST | `/api/badges/member/list` | 登录 | | `getChildBadges` |
|
|
|
+| POST | `/api/badges/favorite` | 登录 | | `toggleBadgeFavorite` |
|
|
|
+| POST | `/api/badges/list` | 登录 | | `getActiveBadges` |
|
|
|
+| POST | `/api/commission/summary` | 登录 | | `getCommissionSummary` |
|
|
|
+| POST | `/api/contact/create` | 登录 | | `createContact` |
|
|
|
+| POST | `/api/contact/delete` | 登录 | | `deleteContact` |
|
|
|
+| POST | `/api/contact/import-phone` | 登录 | | `importPhoneContact` |
|
|
|
+| POST | `/api/contact/list` | 登录 | | `getContactList` |
|
|
|
+| POST | `/api/dan-assessment/child-results` | 登录 | | `getChildAssessmentResults` |
|
|
|
+| POST | `/api/dan-assessment/my-results` | 登录 | | `getMyAssessmentResults` |
|
|
|
+| POST | `/api/dan-assessment/order/pay` | 登录 | | `payAssessmentOrder` |
|
|
|
+| POST | `/api/dan-assessment/result/record` | 公开 | | `recordAssessmentResult` |
|
|
|
+| POST | `/api/energy/logs` | 登录 | | `getEnergyLogs` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/user/children` | 登录 | | `createChild` |
|
|
|
+| POST | `/api/family/user/children/update` | 登录 | | `updateChild` |
|
|
|
+| POST | `/api/family/user/create-family` | 登录 | | `createFamily` |
|
|
|
+| POST | `/api/family/user/kick` | 登录 | | `kickFamilyMember` |
|
|
|
+| POST | `/api/family/user/members/update-visibility` | 登录 | | `updateMemberVisibility` |
|
|
|
+| POST | `/api/game/history` | 登录 | | `getGameHistory` |
|
|
|
+| POST | `/api/game/leaderboard` | 登录 | | `getGameLeaderboard` |
|
|
|
+| POST | `/api/growth/record/create` | 登录 | | `createGrowthRecord` |
|
|
|
+| POST | `/api/growth/record/create-with-order` | 登录 | | `createGrowthRecord` |
|
|
|
+| POST | `/api/growth/record/list` | 登录 | | `getGrowthRecordList` |
|
|
|
+| POST | `/api/guide/bind/invite` | 登录 | | `generateBindInvite` |
|
|
|
+| POST | `/api/guide/families` | 登录 | | `getBoundFamilies` |
|
|
|
+| POST | `/api/guide/messages/list` | 登录 | | `getGuideMessages` |
|
|
|
+| POST | `/api/guide/orders/list` | 登录 | | `getGuideOrders` |
|
|
|
+| POST | `/api/guide/packages/my` | 登录 | | `getGuidePackages` |
|
|
|
+| POST | `/api/guide/register` | 公开 | | `registerGuide` |
|
|
|
+| POST | `/api/guide/team/members` | 登录 | | `getTeamMembers` |
|
|
|
+| POST | `/api/health/checkin/list` | 登录 | | `healthCheckinList` |
|
|
|
+| POST | `/api/health/indicator/list` | 登录 | | `getHealthIndicatorList` |
|
|
|
+| POST | `/api/health/report/create` | 登录 | | `createHealthReport` |
|
|
|
+| POST | `/api/health/report/detail` | 登录 | | `getReportDetail` |
|
|
|
+| POST | `/api/health/report/latest` | 登录 | | `getLatestHealthReport` |
|
|
|
+| POST | `/api/health/report/list` | 登录 | | `getReportList` |
|
|
|
+| POST | `/api/health/survey/create` | 登录 | | `createReportSurvey` |
|
|
|
+| POST | `/api/health/survey/submit` | 登录 | | `submitReportSurvey` |
|
|
|
+| POST | `/api/invite-card/generate` | 公开 | | `generateInviteCard` |
|
|
|
+| POST | `/api/invite-card/verify` | 公开 | | `verifyInviteCard` |
|
|
|
+| POST | `/api/invite/bind` | 登录 | | `bindReferral` |
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/membership/levels` | 登录 | | `getMembershipLevels` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/membership/orders` | 登录 | | `createOrder` |
|
|
|
+| POST | `/api/mini-game//:var` | 登录 | ✓ | `getMiniGameByCode` |
|
|
|
+| POST | `/api/mini-game/complete` | 登录 | | `completeMiniGame` |
|
|
|
+| POST | `/api/mini-game/list` | 登录 | | `getMiniGameList` |
|
|
|
+| POST | `/api/packages//:var/publish` | 登录 | ✓ | `publishPackage` |
|
|
|
+| POST | `/api/points/balance` | 登录 | | `getPointsBalance` |
|
|
|
+| POST | `/api/points/logs` | 登录 | | `getPointsLogs` |
|
|
|
+| POST | `/api/product/create` | 公开 | | `productCreate` |
|
|
|
+| POST | `/api/product/detail` | 公开 | | `productDetail` |
|
|
|
+| POST | `/api/product/list` | 公开 | | `productList` |
|
|
|
+| POST | `/api/product/order/create` | 公开 | | `productOrderCreate` |
|
|
|
+| POST | `/api/rewards` | 登录 | | `createReward` |
|
|
|
+| POST | `/api/rewards//:var/exchange` | 登录 | ✓ | `exchangeReward` |
|
|
|
+| POST | `/api/rewards/wishlist` | 登录 | | `getWishlist` |
|
|
|
+| POST | `/api/stats/child-completion` | 登录 | | `getChildCompletionStats` |
|
|
|
+| POST | `/api/stats/child/overview` | 登录 | | `getChildOverview` |
|
|
|
+| POST | `/api/streets//:var/match`)
|
|
|
+}
|
|
|
+
|
|
|
+// 按区域统计
|
|
|
+export const getStreetStats = (level = 4) => {
|
|
|
+ return request('/api/streets/stats', 'POST', { level })
|
|
|
+}
|
|
|
+
|
|
|
+// 获取家庭详情(含地址信息)
|
|
|
+export const getFamilyDetail = (id) => {
|
|
|
+ return request(`/api/admin/families//:var`)
|
|
|
+}
|
|
|
+
|
|
|
+// 更新家庭地址
|
|
|
+export const updateFamilyAddress = (data) => {
|
|
|
+ return request(`/api/admin/families/update` | 公开 | ✓ | `matchByStreet` |
|
|
|
+| POST | `/api/streets/provinces')
|
|
|
+}
|
|
|
+
|
|
|
+// 根据父级ID获取子级地址
|
|
|
+export const getStreetChildren = (parentId) => {
|
|
|
+ return request(`/api/streets/children//:var`)
|
|
|
+}
|
|
|
+
|
|
|
+// 根据ID获取地址详情
|
|
|
+export const getStreetById = (id) => {
|
|
|
+ return request(`/api/streets//:var`)
|
|
|
+}
|
|
|
+
|
|
|
+// 获取地址完整路径
|
|
|
+export const getStreetPath = (id) => {
|
|
|
+ return request(`/api/streets//:var/path`)
|
|
|
+}
|
|
|
+
|
|
|
+// 搜索地址
|
|
|
+export const searchStreet = (keyword) => {
|
|
|
+ return request('/api/streets/search` | 公开 | ✓ | `getProvinces` |
|
|
|
+| POST | `/api/survey/status` | 登录 | | `getSurveyStatus` |
|
|
|
+| POST | `/api/tasks//:var` | 登录 | ✓ | `deleteTask` |
|
|
|
+| POST | `/api/tasks//:var/complete` | 登录 | ✓ | `completeTask` |
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `approveTask` |
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `rejectTask` |
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `reviewTask` |
|
|
|
+| POST | `/api/tasks/batch-complete` | 登录 | | `batchCompleteTasks` |
|
|
|
+| POST | `/api/tasks/create` | 登录 | | `createTask` |
|
|
|
+| POST | `/api/tasks/history` | 登录 | | `getTaskHistory` |
|
|
|
+| POST | `/api/tasks/pending-review` | 登录 | | `getPendingReviewTasks` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasksByCategory` |
|
|
|
+| POST | `/api/tasks/today-parent` | 登录 | | `getTodayParentTasks` |
|
|
|
+| POST | `/api/user/info` | 登录 | | `getUserInfo` |
|
|
|
+| POST | `/api/user/join-family` | 登录 | | `joinFamily` |
|
|
|
+| POST | `/api/user/switch-back-to-parent` | 登录 | | `switchBackToParent` |
|
|
|
+| POST | `/api/user/switch-mode` | 登录 | | `switchMode` |
|
|
|
+| POST | `/api/user/switch-to-child` | 登录 | | `switchToChild` |
|
|
|
+| POST | `/api/user/update` | 登录 | | `updateUserInfo` |
|
|
|
+| POST | `/api/vendor/apply` | 登录 | | `vendorApply` |
|
|
|
+| POST | `/api/vendor/info` | 公开 | | `vendorInfo` |
|
|
|
+| POST | `/api/vendor/status` | 公开 | | `vendorStatus` |
|
|
|
+| POST | `/api/wealth/checkin/list` | 登录 | | `getCheckinList` |
|
|
|
+| POST | `/api/wealth/insurance/list` | 公开 | | `getInsuranceList` |
|
|
|
+| POST | `/api/wishes//:var/approve-exchange` | 登录 | ✓ | `approveWishExchange` |
|
|
|
+| POST | `/api/wishes//:var/price` | 登录 | ✓ | `setWishPrice` |
|
|
|
+| POST | `/api/wishes/create` | 登录 | | `createWish` |
|
|
|
+| POST | `/api/wishes/list` | 登录 | | `getWishes` |
|
|
|
+| POST | `/api/wishes/pending` | 登录 | | `getPendingWishes` |
|
|
|
+| POST | `/api/withdrawal/apply` | 登录 | | `applyWithdrawal` |
|
|
|
+
|
|
|
+### __tests__/store/store.test (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/user/switch-role` | 登录 | | `switchRole` |
|
|
|
+
|
|
|
+### components/DimensionActivities (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/list` | 公开 | | `getActivityList` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### components/DimensionProducts (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/recommend/dimension-products` | 登录 | | `getDimensionProducts` |
|
|
|
+| POST | `/api/recommend/repurchase-reminder/'/:var + '/click` | 登录 | ✓ | `clickRepurchaseReminder` |
|
|
|
+
|
|
|
+### components/DimensionTasks (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+
|
|
|
+### components/MemberSelector (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/kick` | 登录 | | `kickFamilyMemberById` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/relationship/pairwise` | 登录 | | `getPairwiseRelationships` |
|
|
|
+| POST | `/api/family/user/create-family` | 登录 | | `createFamily` |
|
|
|
+
|
|
|
+### components/OnboardingGuide (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide-config/current` | 登录 | | `getGuideConfig` |
|
|
|
+
|
|
|
+### components/OnboardingProgressBar (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/onboarding/progress` | 登录 | | `getOnboardingProgress` |
|
|
|
+
|
|
|
+### components/RelatedContent (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/content/related-items` | 登录 | | `getContentRelated` |
|
|
|
+
|
|
|
+### components/address-picker (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/streets/provinces')
|
|
|
+}
|
|
|
+
|
|
|
+// 根据父级ID获取子级地址
|
|
|
+export const getStreetChildren = (parentId) => {
|
|
|
+ return request(`/api/streets/children//:var`)
|
|
|
+}
|
|
|
+
|
|
|
+// 根据ID获取地址详情
|
|
|
+export const getStreetById = (id) => {
|
|
|
+ return request(`/api/streets//:var`)
|
|
|
+}
|
|
|
+
|
|
|
+// 获取地址完整路径
|
|
|
+export const getStreetPath = (id) => {
|
|
|
+ return request(`/api/streets//:var/path`)
|
|
|
+}
|
|
|
+
|
|
|
+// 搜索地址
|
|
|
+export const searchStreet = (keyword) => {
|
|
|
+ return request('/api/streets/search` | 公开 | ✓ | `getProvinces` |
|
|
|
+
|
|
|
+### components/daily-task-card (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/daily-task/overview` | 登录 | | `getDailyTaskOverview` |
|
|
|
+
|
|
|
+### components/login-sheet (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/wechat-phone-login` | 公开 | | `wechatPhoneLogin` |
|
|
|
+
|
|
|
+### components/share-mixin (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+
|
|
|
+### pages/achievement/index (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/badges/member/list` | 登录 | | `getChildBadges` |
|
|
|
+
|
|
|
+### pages/action-detail/components/PearlDiagram (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/pearl/interaction/add` | 登录 | | `addPearlInteraction` |
|
|
|
+| POST | `/api/pearl/item/update-priority` | 登录 | | `updatePearlPriority` |
|
|
|
+
|
|
|
+### pages/action-detail/contact-detail (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/contact/delete` | 登录 | | `deleteContact` |
|
|
|
+| POST | `/api/contact/detail` | 登录 | | `getContactDetail` |
|
|
|
+| POST | `/api/contact/interaction` | 登录 | | `recordContactInteraction` |
|
|
|
+| POST | `/api/contact/update` | 登录 | | `updateContact` |
|
|
|
+
|
|
|
+### pages/action-detail/index (13 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/ability/map` | 登录 | | `getAbilityMap` |
|
|
|
+| POST | `/api/content-sections/visible` | 登录 | | `getVisibleSections` |
|
|
|
+| POST | `/api/dimension/radar-data` | 登录 | | `getRadarData` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/octopus/analysis/summary` | 登录 | | `getOctopusAnalysisSummary` |
|
|
|
+| POST | `/api/octopus/effect/key-persons` | 登录 | | `getOctopusEffectKeyPersons` |
|
|
|
+| POST | `/api/octopus/effect/list` | 登录 | | `getOctopusEffects` |
|
|
|
+| POST | `/api/pearl/item/delete` | 登录 | | `deletePearlResource` |
|
|
|
+| POST | `/api/pearl/reminder/list` | 登录 | | `getPearlReminders` |
|
|
|
+| POST | `/api/pearl/resources` | 登录 | | `getPearlResources` |
|
|
|
+
|
|
|
+### pages/action-detail/interaction-log (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/interaction/add` | 登录 | | `addInteraction` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+
|
|
|
+### pages/action-detail/member-action-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+
|
|
|
+### pages/action-detail/octopus-add-effect (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/octopus/effect/add` | 登录 | | `addOctopusEffect` |
|
|
|
+| POST | `/api/octopus/key-person/bind-system-user` | 登录 | | `bindOctopusKeyPersonSystemUser` |
|
|
|
+| POST | `/api/octopus/key-person/list` | 登录 | | `getOctopusKeyPersons` |
|
|
|
+| POST | `/api/octopus/key-person/match-by-phone` | 登录 | | `matchOctopusKeyPersonByPhone` |
|
|
|
+
|
|
|
+### pages/action-detail/octopus-add-key-person (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/octopus/key-person/add` | 登录 | | `addOctopusKeyPerson` |
|
|
|
+| POST | `/api/octopus/key-person/list` | 登录 | | `getOctopusKeyPersons` |
|
|
|
+
|
|
|
+### pages/action-detail/octopus-effects-list (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/octopus/effect/delete` | 登录 | | `deleteOctopusEffect` |
|
|
|
+| POST | `/api/octopus/effect/list` | 登录 | | `getOctopusEffects` |
|
|
|
+
|
|
|
+### pages/action-detail/pearl-add-resource (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/contact/list` | 登录 | | `getContactList` |
|
|
|
+| POST | `/api/pearl/connection-types` | 登录 | | `getConnectionTypes` |
|
|
|
+| POST | `/api/pearl/item/add` | 登录 | | `addPearlResource` |
|
|
|
+
|
|
|
+### pages/action-detail/relationship-questionnaire (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/questionnaire/generate` | 登录 | | `generateQuestionnaire` |
|
|
|
+| POST | `/api/family/questionnaire/snapshot/'/:var, 'POST', {}, { timeout: 30000 })
|
|
|
+}
|
|
|
+
|
|
|
+export const getQuestionnaireHistory = (memberId) => {
|
|
|
+ return request('/api/family/questionnaire/history/'/:var, 'POST', {}, { timeout: 30000 })
|
|
|
+}
|
|
|
+
|
|
|
+// ===== 五维家庭自检(P0-1)=====
|
|
|
+export const getSelfCheckQuestions = (params) => {
|
|
|
+ return request('/api/family/self-check/questions` | 登录 | ✓ | `getQuestionnaireSnapshot` |
|
|
|
+| POST | `/api/family/questionnaire/submit` | 登录 | | `submitQuestionnaire` |
|
|
|
+
|
|
|
+### pages/activity/activity-detail/activity-detail (12 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/cancel-registration` | 公开 | | `cancelActivityRegistration` |
|
|
|
+| POST | `/api/activity/checkin` | 公开 | | `activityCheckin` |
|
|
|
+| POST | `/api/activity/detail` | 公开 | | `getActivityDetail` |
|
|
|
+| POST | `/api/activity/feedback/my` | 公开 | | `getMyActivityFeedback` |
|
|
|
+| POST | `/api/activity/feedback/submit` | 公开 | | `submitActivityFeedback` |
|
|
|
+| POST | `/api/activity/order/create` | 公开 | | `createActivityOrder` |
|
|
|
+| POST | `/api/activity/registration-roster` | 公开 | | `getActivityRegistrationRoster` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/poster-template/list` | 登录 | | `getPosterTemplates` |
|
|
|
+| POST | `/api/share/qrcode` | 登录 | | `getShareQrCode` |
|
|
|
+| POST | `/api/user/profile/backfill` | 登录 | | `backfillProfile` |
|
|
|
+
|
|
|
+### pages/activity/create (6 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/create` | 公开 | | `adminCreateActivity` |
|
|
|
+| POST | `/api/activity/detail` | 公开 | | `getActivityDetail` |
|
|
|
+| POST | `/api/activity/publish` | 公开 | | `adminPublishActivity` |
|
|
|
+| POST | `/api/activity/submit-review` | 公开 | | `submitActivityForReview` |
|
|
|
+| POST | `/api/activity/update` | 公开 | | `adminUpdateActivity` |
|
|
|
+| POST | `/api/poster-template/list` | 登录 | | `getPosterTemplates` |
|
|
|
+
|
|
|
+### pages/activity/index (11 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/cancel-registration` | 公开 | | `cancelActivityRegistration` |
|
|
|
+| POST | `/api/activity/checkin` | 公开 | | `activityCheckin` |
|
|
|
+| POST | `/api/activity/end` | 公开 | | `adminEndActivity` |
|
|
|
+| POST | `/api/activity/list` | 公开 | | `getActivityList` |
|
|
|
+| POST | `/api/activity/my-registrations` | 公开 | | `getMyActivityRegistrations` |
|
|
|
+| POST | `/api/activity/publish` | 公开 | | `adminPublishActivity` |
|
|
|
+| POST | `/api/activity/submit-review` | 公开 | | `submitActivityForReview` |
|
|
|
+| POST | `/api/admin/activity/list` | 公开 | | `adminListMyActivities` |
|
|
|
+| POST | `/api/admin/activity/withdraw` | 公开 | | `adminWithdrawActivity` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/vendor/status` | 公开 | | `vendorStatus` |
|
|
|
+
|
|
|
+### pages/activity/order-pay/order-pay (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/order/handlePaymentSuccess` | 公开 | | `handleActivityOrderSuccess` |
|
|
|
+| POST | `/api/activity/order/pay` | 公开 | | `payActivityOrder` |
|
|
|
+
|
|
|
+### pages/ai/chat (9 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/ai/butler/send` | 公开 | | `aiSendHealthButlerMessage` |
|
|
|
+| POST | `/api/ai/chat/conversations` | 登录 | | `aiGetConversations` |
|
|
|
+| POST | `/api/ai/chat/messages` | 登录 | | `aiGetMessages` |
|
|
|
+| POST | `/api/ai/health-coach/send` | 登录 | | `aiSendHealthCoachMessage` |
|
|
|
+| POST | `/api/ai/nutrition/send` | 登录 | | `aiSendNutritionMessage` |
|
|
|
+| POST | `/api/ai/transcribe` | 登录 | | `sttTranscribe` |
|
|
|
+| POST | `/api/basic-quota/status/all` | 登录 | | `getAllQuotaStatus` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/article-center/article-detail (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/audio` | 公开 | | `getArticleAudio` |
|
|
|
+| POST | `/api/articles/complete-read` | 公开 | | `completeArticleRead` |
|
|
|
+| POST | `/api/articles/detail` | 公开 | | `getArticleDetail` |
|
|
|
+| POST | `/api/articles/quiz/generate` | 公开 | | `generateQuiz` |
|
|
|
+| POST | `/api/articles/quiz/submit` | 公开 | | `submitQuiz` |
|
|
|
+| POST | `/api/articles/report-reading-time` | 公开 | | `reportReadingTime` |
|
|
|
+| POST | `/api/share/qrcode` | 登录 | | `getShareQrCode` |
|
|
|
+| POST | `/api/tasks//:var/complete` | 登录 | ✓ | `completeTask` |
|
|
|
+
|
|
|
+### pages/article-center/article-edit (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/publish` | 公开 | | `publishArticle` |
|
|
|
+
|
|
|
+### pages/article-center/index (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/featured` | 公开 | | `getFeaturedArticles` |
|
|
|
+| POST | `/api/articles/list` | 公开 | | `getArticleList` |
|
|
|
+
|
|
|
+### pages/article-center/my-posts (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/my-posts` | 公开 | | `getMyPosts` |
|
|
|
+
|
|
|
+### pages/assessment-plan/detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-assessment/result/plans/list` | 公开 | | `getMyAssessmentPlans` |
|
|
|
+
|
|
|
+### pages/assessment-plan/list (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-assessment/result/plans/list` | 公开 | | `getMyAssessmentPlans` |
|
|
|
+
|
|
|
+### pages/assessment/apply (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/assessment/appointment/create` | 登录 | | `createAssessmentAppointmentWithQuota` |
|
|
|
+| POST | `/api/assessment/quota/my-list` | 登录 | | `getAssessmentQuotas` |
|
|
|
+| POST | `/api/guide/invite-code/validate` | 公开 | | `validateInviteCode` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/package/available-guides` | 登录 | | `getAvailableGuides` |
|
|
|
+
|
|
|
+### pages/assessment/purchase (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-assessment/order/create` | 登录 | | `createAssessmentOrder` |
|
|
|
+| POST | `/api/dan-assessment/order/detail` | 登录 | | `getAssessmentOrderDetail` |
|
|
|
+| POST | `/api/guide/invite-code/validate` | 公开 | | `validateInviteCode` |
|
|
|
+| POST | `/api/package/available-guides` | 登录 | | `getAvailableGuides` |
|
|
|
+
|
|
|
+### pages/assessment/quota (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/assessment/quota/my-list` | 登录 | | `getAssessmentQuotas` |
|
|
|
+
|
|
|
+### pages/assessment/results (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-assessment/child-results` | 登录 | | `getChildAssessmentResults` |
|
|
|
+| POST | `/api/dan-assessment/my-results` | 登录 | | `getMyAssessmentResults` |
|
|
|
+
|
|
|
+### pages/assessment/upload-report (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-assessment/result/upload` | 公开 | | `uploadAssessmentReport` |
|
|
|
+
|
|
|
+### pages/body-detail/dimension-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dimension/history` | 登录 | | `getDimensionHistory` |
|
|
|
+| POST | `/api/dimension/overview` | 登录 | | `getDimensionOverview` |
|
|
|
+
|
|
|
+### pages/body-detail/dimension-questionnaire (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/submit-answers` | 公开 | | `submitAnswers` |
|
|
|
+| POST | `/api/dimension/questionnaire` | 登录 | | `submitDimensionQuestionnaire` |
|
|
|
+
|
|
|
+### pages/body-detail/health-dimensions (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dimension/overview` | 登录 | | `getDimensionOverview` |
|
|
|
+| POST | `/api/dimension/upload` | 登录 | | `uploadDimensionScore` |
|
|
|
+
|
|
|
+### pages/body-detail/health-report (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/nutrition/deficiency` | 登录 | | `getDeficiencyAnalysis` |
|
|
|
+
|
|
|
+### pages/body-detail/index (10 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/content-sections/visible` | 登录 | | `getVisibleSections` |
|
|
|
+| POST | `/api/dimension/overview` | 登录 | | `getDimensionOverview` |
|
|
|
+| POST | `/api/dimension/radar-data` | 登录 | | `getRadarData` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+| POST | `/api/family/member/kick` | 登录 | | `kickFamilyMemberById` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/gut-flora` | 登录 | | `getGutFloraIndicators` |
|
|
|
+| POST | `/api/health/indicators` | 登录 | | `getLatestIndicators` |
|
|
|
+| POST | `/api/health/report/body-abnormal` | 登录 | | `getBodyAbnormalIndicators` |
|
|
|
+
|
|
|
+### pages/body-detail/member-body-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+
|
|
|
+### pages/butler/apply (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/butler/apply` | 公开 | | `butlerApply` |
|
|
|
+
|
|
|
+### pages/butler/select (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/butler/available-list` | 公开 | | `getAvailableButlers` |
|
|
|
+| POST | `/api/butler/my-butler` | 公开 | | `getMyButler` |
|
|
|
+| POST | `/api/butler/select` | 公开 | | `selectButler` |
|
|
|
+
|
|
|
+### pages/child/rewards (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/verify-password` | 公开 | | `verifyPassword` |
|
|
|
+| POST | `/api/points/balance` | 登录 | | `getPointsBalance` |
|
|
|
+| POST | `/api/rewards/wishlist` | 登录 | | `getWishlist` |
|
|
|
+| POST | `/api/user/switch-back-to-parent` | 登录 | | `switchBackToParent` |
|
|
|
+
|
|
|
+### pages/child/tasks (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/verify-password` | 公开 | | `verifyPassword` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+| POST | `/api/user/switch-back-to-parent` | 登录 | | `switchBackToParent` |
|
|
|
+
|
|
|
+### pages/cognitive-hall (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/child` | 登录 | | `getCognitiveChildScores` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/cognitive-test/language-test (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/self-test` | 登录 | | `submitCognitiveSelfTest` |
|
|
|
+
|
|
|
+### pages/cognitive-test/logic-test (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/self-test` | 登录 | | `submitCognitiveSelfTest` |
|
|
|
+
|
|
|
+### pages/cognitive-test/memory-test (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/self-test` | 登录 | | `submitCognitiveSelfTest` |
|
|
|
+
|
|
|
+### pages/cognitive-test/perception-test (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/self-test` | 登录 | | `submitCognitiveSelfTest` |
|
|
|
+
|
|
|
+### pages/cognitive-test/spatial-test (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/self-test` | 登录 | | `submitCognitiveSelfTest` |
|
|
|
+
|
|
|
+### pages/cognitive-test/speed-test (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/self-test` | 登录 | | `submitCognitiveSelfTest` |
|
|
|
+
|
|
|
+### pages/dan-assessment/comparison (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-report/compare` | 登录 | | `compareDanReports` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/dan-assessment/report-result (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-report/'/:var, 'POST', {})
|
|
|
+// DAN 报告列表(对比页:某成员的所有上传)
|
|
|
+export const getDanReportList = (params) => request('/api/dan-report/list` | 登录 | ✓ | `getDanReportDetail` |
|
|
|
+
|
|
|
+### pages/diet/index (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/diet/ingredients/add` | 登录 | | `addDietIngredient` |
|
|
|
+| POST | `/api/diet/ingredients/recommend` | 登录 | | `refreshDietIngredients` |
|
|
|
+| POST | `/api/diet/ingredients/remove` | 登录 | | `removeDietIngredient` |
|
|
|
+| POST | `/api/diet/ingredients/search` | 登录 | | `searchDietFoods` |
|
|
|
+| POST | `/api/diet/ingredients/suggest` | 登录 | | `getDietIngredients` |
|
|
|
+| POST | `/api/diet/meals/config` | 登录 | | `getMealConfig` |
|
|
|
+| POST | `/api/diet/recommendation/generate` | 登录 | | `generateDietRecommendation` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+
|
|
|
+### pages/diet/meal-config (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/diet/meals/config` | 登录 | | `getMealConfig` |
|
|
|
+| POST | `/api/diet/meals/config/save` | 公开 | | `saveMealConfig` |
|
|
|
+
|
|
|
+### pages/diet/preferences (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/diet/preferences/current-member` | 登录 | | `getDietPreferences` |
|
|
|
+| POST | `/api/diet/preferences/save` | 登录 | | `saveDietPreferences` |
|
|
|
+
|
|
|
+### pages/diet/recommendation (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/diet/recommendation/complete` | 登录 | | `completeDietRecommendation` |
|
|
|
+| POST | `/api/diet/recommendation/generate` | 登录 | | `generateDietRecommendation` |
|
|
|
+| POST | `/api/diet/recommendation/regenerate` | 登录 | | `regenerateDietRecommendation` |
|
|
|
+| POST | `/api/diet/recommendation/today` | 登录 | | `getDietRecommendation` |
|
|
|
+
|
|
|
+### pages/diet/record-detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/diet/record/daily` | 登录 | | `getDietDailyRecords` |
|
|
|
+
|
|
|
+### pages/diet/records (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/food/recommendation/members` | 登录 | | `getCautionFamilyMembers` |
|
|
|
+| POST | `/api/health/meal/alerts` | 登录 | | `getMealAlerts` |
|
|
|
+| POST | `/api/health/meal/daily` | 登录 | | `getMealDaily` |
|
|
|
+| POST | `/api/health/meal/weekly` | 登录 | | `getMealWeekly` |
|
|
|
+
|
|
|
+### pages/discover-detail/product-detail/product-detail (7 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cart/add` | 登录 | | `cartAdd` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/product/detail` | 公开 | | `productDetail` |
|
|
|
+| POST | `/api/product/order/pay` | 公开 | | `productOrderPay` |
|
|
|
+| POST | `/api/product/spec/map` | 公开 | | `productSpecMap` |
|
|
|
+| POST | `/api/share/qrcode` | 登录 | | `getShareQrCode` |
|
|
|
+| POST | `/api/special-price/info` | 登录 | | `getSpecialPriceInfo` |
|
|
|
+
|
|
|
+### pages/discover/circle-feed (7 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/circle/comment/add` | 登录 | | `addCircleComment` |
|
|
|
+| POST | `/api/circle/comment/list` | 登录 | | `getCircleComments` |
|
|
|
+| POST | `/api/circle/feed` | 公开 | | `getCircleFeed` |
|
|
|
+| POST | `/api/circle/members` | 登录 | | `getCircleMembers` |
|
|
|
+| POST | `/api/circle/post/create` | 登录 | | `createCirclePost` |
|
|
|
+| POST | `/api/circle/post/delete` | 登录 | | `deleteCirclePost` |
|
|
|
+| POST | `/api/circle/post/like` | 登录 | | `toggleCircleLike` |
|
|
|
+
|
|
|
+### pages/discover/circles (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/circle/approve` | 登录 | | `approveCircleMember` |
|
|
|
+| POST | `/api/circle/discover` | 登录 | | `discoverCircles` |
|
|
|
+| POST | `/api/circle/join` | 登录 | | `joinGeneralCircle` |
|
|
|
+| POST | `/api/circle/leave` | 登录 | | `leaveGeneralCircle` |
|
|
|
+| POST | `/api/circle/my-circles` | 登录 | | `getMyCircles` |
|
|
|
+| POST | `/api/circle/pending-members` | 登录 | | `getPendingCircleMembers` |
|
|
|
+| POST | `/api/circle/update` | 登录 | | `updateCircle` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+
|
|
|
+### pages/discover/create-circle (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/circle/create` | 登录 | | `createGeneralCircle` |
|
|
|
+
|
|
|
+### pages/discover/index (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/featured` | 公开 | | `getFeaturedArticles` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/product/list` | 公开 | | `productList` |
|
|
|
+
|
|
|
+### pages/energy/detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/logs` | 登录 | | `getEnergyLogs` |
|
|
|
+
|
|
|
+### pages/energy/index (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/family/add-member (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/check-phone` | 公开 | | `checkPhone` |
|
|
|
+| POST | `/api/consent/record` | 登录 | | `recordConsent` |
|
|
|
+| POST | `/api/family/member/add` | 登录 | | `addFamilyMember` |
|
|
|
+| POST | `/api/family/member/update` | 登录 | | `updateFamilyMember` |
|
|
|
+
|
|
|
+### pages/family/manual-score-entry (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/manual-score/submit` | 登录 | | `submitManualScore` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/family/mbti-entry (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/family/mbti-profile (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/mbti/profile` | 登录 | | `getMbtiProfile` |
|
|
|
+
|
|
|
+### pages/family/mbti-result (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/mbti/latest` | 登录 | | `getMbtiLatest` |
|
|
|
+
|
|
|
+### pages/family/mbti-test (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/mbti/questions` | 登录 | | `getMbtiQuestions` |
|
|
|
+| POST | `/api/family/mbti/submit` | 登录 | | `submitMbti` |
|
|
|
+
|
|
|
+### pages/family/self-check (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/self-check/submit` | 登录 | | `submitSelfCheck` |
|
|
|
+
|
|
|
+### pages/family/self-check-ai (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/self-check/submit` | 登录 | | `submitSelfCheck` |
|
|
|
+
|
|
|
+### pages/family/self-check-entry (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/self-check/ignore` | 登录 | | `ignoreSelfCheck` |
|
|
|
+| POST | `/api/family/self-check/status` | 登录 | | `getSelfCheckStatus` |
|
|
|
+| POST | `/api/family/self-check/trend-analysis` | 登录 | | `getSelfCheckTrendAnalysis` |
|
|
|
+
|
|
|
+### pages/family/self-check-result (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/self-check/generate-plan` | 登录 | | `generateSelfCheckPlan` |
|
|
|
+| POST | `/api/family/self-check/history` | 登录 | | `getSelfCheckHistory` |
|
|
|
+| POST | `/api/family/self-check/latest` | 登录 | | `getSelfCheckLatest` |
|
|
|
+| POST | `/api/micro-action/complete` | 登录 | | `microActionComplete` |
|
|
|
+| POST | `/api/micro-action/today` | 登录 | | `microActionToday` |
|
|
|
+
|
|
|
+### pages/games/1a2b (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/mini-game/complete` | 登录 | | `completeMiniGame` |
|
|
|
+
|
|
|
+### pages/games/list (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/mini-game/list` | 登录 | | `getMiniGameList` |
|
|
|
+
|
|
|
+### pages/games/records (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/game/history` | 登录 | | `getGameHistory` |
|
|
|
+
|
|
|
+### pages/games/schulte (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/mini-game/complete` | 登录 | | `completeMiniGame` |
|
|
|
+
|
|
|
+### pages/games/stats (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/game/best` | 登录 | | `getGameBestScores` |
|
|
|
+| POST | `/api/game/leaderboard` | 登录 | | `getGameLeaderboard` |
|
|
|
+| POST | `/api/game/stats` | 登录 | | `getGameStats` |
|
|
|
+
|
|
|
+### pages/games/sudoku (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/mini-game/complete` | 登录 | | `completeMiniGame` |
|
|
|
+
|
|
|
+### pages/growth-main/index (10 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/food/recommendation/caution` | 登录 | | `getFoodCautionList` |
|
|
|
+| POST | `/api/growth/recommendations` | 登录 | | `getGrowthRecommendations` |
|
|
|
+| POST | `/api/health/checkin/list` | 登录 | | `healthCheckinList` |
|
|
|
+| POST | `/api/health/exercise/list` | 登录 | | `getExerciseRecords` |
|
|
|
+| POST | `/api/health/meal/list` | 登录 | | `getHealthMealList` |
|
|
|
+| POST | `/api/health/sleep/list` | 登录 | | `getSleepRecords` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/mind/checkin/list` | 登录 | | `getEmotionCheckinList` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+| POST | `/api/wealth/checkin/list` | 登录 | | `getCheckinList` |
|
|
|
+
|
|
|
+### pages/growth/assessment-result (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-assessment/result/'/:var, 'POST')
|
|
|
+}
|
|
|
+
|
|
|
+// 创建测评预约
|
|
|
+export const createAssessmentAppointment = (data) => {
|
|
|
+ return request('/api/dan-assessment/appointment/create` | 公开 | ✓ | `getAssessmentResult` |
|
|
|
+
|
|
|
+### pages/growth/caution-detail (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/food/recommendation/caution` | 登录 | | `getFoodCautionList` |
|
|
|
+| POST | `/api/food/recommendation/members` | 登录 | | `getCautionFamilyMembers` |
|
|
|
+| POST | `/api/food/recommendation/trend` | 登录 | | `getFoodCautionTrend` |
|
|
|
+| POST | `/api/health/knowledge/v3/section` | 登录 | | `getKnowledgeSection` |
|
|
|
+
|
|
|
+### pages/growth/challenge-progress (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/purchase/challenge/progress` | 登录 | | `getChallengeProgress` |
|
|
|
+
|
|
|
+### pages/growth/create (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/growth/record/create` | 登录 | | `createGrowthRecord` |
|
|
|
+| POST | `/api/growth/record/create-with-order` | 登录 | | `createGrowthRecord` |
|
|
|
+
|
|
|
+### pages/growth/detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/growth/record/'/:var + '/supplements` | 登录 | ✓ | `getGrowthSupplements` |
|
|
|
+
|
|
|
+### pages/growth/diet-checkin (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/ai/transcribe` | 登录 | | `sttTranscribe` |
|
|
|
+| POST | `/api/basic-quota/status/all` | 登录 | | `getAllQuotaStatus` |
|
|
|
+
|
|
|
+### pages/growth/exercise-checkin (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/ai/transcribe` | 登录 | | `sttTranscribe` |
|
|
|
+
|
|
|
+### pages/growth/supplement (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/growth/record/supplement` | 登录 | | `createGrowthSupplement` |
|
|
|
+| POST | `/api/growth/record/upload-and-parse` | 登录 | | `uploadAndParseReport` |
|
|
|
+
|
|
|
+### pages/growth/upload (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/growth/record/child/'/:var, 'POST')
|
|
|
+}
|
|
|
+export const getGrowthRecordDetail = (id) => {
|
|
|
+ return request('/api/growth/record/'/:var, 'POST')
|
|
|
+}
|
|
|
+export const deleteGrowthRecord = (id) => {
|
|
|
+ return request('/api/growth/record/'/:var + '/delete` | 登录 | ✓ | `getChildRecords` |
|
|
|
+| POST | `/api/growth/record/create-from-upload` | 登录 | | `createGrowthRecordFromUpload` |
|
|
|
+| POST | `/api/growth/record/upload-and-parse` | 登录 | | `uploadAndParseReport` |
|
|
|
+| POST | `/api/product/list` | 公开 | | `productList` |
|
|
|
+
|
|
|
+### pages/guide/activities/detail (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/activities/create` | 登录 | | `createActivity` |
|
|
|
+| POST | `/api/guide/activities/detail` | 登录 | | `getGuideActivityDetail` |
|
|
|
+| POST | `/api/guide/activities/publish` | 登录 | | `publishActivity` |
|
|
|
+| POST | `/api/guide/activities/update` | 登录 | | `updateActivity` |
|
|
|
+
|
|
|
+### pages/guide/activities/index (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/activities/cancel` | 登录 | | `cancelActivity` |
|
|
|
+| POST | `/api/guide/activities/delete` | 登录 | | `deleteActivity` |
|
|
|
+| POST | `/api/guide/activities/list` | 登录 | | `getGuideActivityList` |
|
|
|
+| POST | `/api/guide/activities/publish` | 登录 | | `publishActivity` |
|
|
|
+
|
|
|
+### pages/guide/bind/invite (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/common/qrcode` | 登录 | | `generateQrCodeFromText` |
|
|
|
+| POST | `/api/guide/bind/confirm` | 登录 | | `confirmBind` |
|
|
|
+| POST | `/api/guide/bind/invite` | 登录 | | `generateBindInvite` |
|
|
|
+
|
|
|
+### pages/guide/hierarchy/index (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/all-child-guides` | 登录 | | `getAllChildGuides` |
|
|
|
+| POST | `/api/guide/child-guides` | 登录 | | `getChildGuides` |
|
|
|
+| POST | `/api/guide/parent-guide` | 登录 | | `getParentGuide` |
|
|
|
+
|
|
|
+### pages/guide/packages/create (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/packages` | 登录 | | `createPackage` |
|
|
|
+
|
|
|
+### pages/guide/packages/detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/packages//:var/items` | 登录 | ✓ | `addPackageItem` |
|
|
|
+| POST | `/api/packages/items/'/:var, 'POST', { _method: 'PUT' }, data)
|
|
|
+}
|
|
|
+
|
|
|
+// 删除任务项
|
|
|
+export const deletePackageItem = (itemId) => {
|
|
|
+ return request('/api/packages/items/'/:var, 'POST', { _method: 'DELETE' })
|
|
|
+}
|
|
|
+
|
|
|
+// 获取任务模板任务项
|
|
|
+export const getPackageItems = (packageId) => {
|
|
|
+ return request(`/api/packages//:var/items`, 'POST')
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+// 获取我的任务计划
|
|
|
+export const getMyPlans = () => {
|
|
|
+ return request('/api/market/plans` | 公开 | ✓ | `updatePackageItem` |
|
|
|
+
|
|
|
+### pages/guide/packages/index (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/packages//:var/publish` | 登录 | ✓ | `publishPackage` |
|
|
|
+| POST | `/api/packages//:var/submit` | 登录 | ✓ | `submitPackageForReview` |
|
|
|
+
|
|
|
+### pages/guide/register/index (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/invite-code/validate` | 公开 | | `validateInviteCode` |
|
|
|
+| POST | `/api/guide/register` | 公开 | | `registerGuide` |
|
|
|
+
|
|
|
+### pages/health-main/index (10 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/featured` | 公开 | | `getFeaturedArticles` |
|
|
|
+| POST | `/api/cognitive/child` | 登录 | | `getCognitiveChildScores` |
|
|
|
+| POST | `/api/cognitive/family` | 登录 | | `getCognitiveFamilyScores` |
|
|
|
+| POST | `/api/dimension/overview` | 登录 | | `getDimensionOverview` |
|
|
|
+| POST | `/api/emireport/latest` | 登录 | | `getEmiReport` |
|
|
|
+| POST | `/api/energy/wealth-detail` | 登录 | | `getWealthDetail` |
|
|
|
+| POST | `/api/family/relationship/scores` | 登录 | | `getRelationshipScores` |
|
|
|
+| POST | `/api/health/plan/list` | 登录 | | `getHealthPlanList` |
|
|
|
+| POST | `/api/health/report/list` | 登录 | | `getReportList` |
|
|
|
+| POST | `/api/survey/status` | 登录 | | `getSurveyStatus` |
|
|
|
+
|
|
|
+### pages/health/bodyfat-confirm (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/report/bodyfat-save` | 登录 | | `saveBodyFatMetrics` |
|
|
|
+
|
|
|
+### pages/health/challenge-manage (7 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/challenge/create` | 登录 | | `createChallenge` |
|
|
|
+| POST | `/api/health/challenge/history` | 登录 | | `getChallengeHistory` |
|
|
|
+| POST | `/api/health/challenge/list` | 登录 | | `getChallengeList` |
|
|
|
+| POST | `/api/health/challenge/respond` | 登录 | | `respondChallenge` |
|
|
|
+| POST | `/api/health/challenge/update/'/:var, 'POST', data)
|
|
|
+export const deleteChallenge = (id) => request('/api/health/challenge/delete/'/:var, 'POST', data)
|
|
|
+export const getChallengeTemplates = () => request('/api/health/challenge/templates` | 登录 | ✓ | `updateChallenge` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/health/components/MemberChipPicker (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/health/components/feedback-popup (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/feedback/submit` | 公开 | | `submitFeedback` |
|
|
|
+
|
|
|
+### pages/health/doa-index (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/doa/overview` | 登录 | | `getDoaOverview` |
|
|
|
+
|
|
|
+### pages/health/doa-stage-create (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/doa/stage/create` | 登录 | | `createDoaStage` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/health/doa-stage-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/doa/stage/cancel` | 登录 | | `cancelDoaStage` |
|
|
|
+| POST | `/api/doa/stage/detail` | 登录 | | `getDoaStageDetail` |
|
|
|
+
|
|
|
+### pages/health/doa-week-edit (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/doa/stage/detail` | 登录 | | `getDoaStageDetail` |
|
|
|
+| POST | `/api/doa/week/plan` | 登录 | | `submitDoaWeekPlan` |
|
|
|
+| POST | `/api/doa/week/review` | 登录 | | `submitDoaWeekReview` |
|
|
|
+
|
|
|
+### pages/health/gut-flora-detail (13 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/add` | 登录 | | `addFamilyMember` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/food/recommendation/caution` | 登录 | | `getFoodCautionList` |
|
|
|
+| POST | `/api/health/foods` | 登录 | | `getHealthFoods` |
|
|
|
+| POST | `/api/health/knowledge/query` | 登录 | | `queryKnowledgeBase` |
|
|
|
+| POST | `/api/health/knowledge/v3/indicator/query` | 登录 | | `queryIndicatorKnowledge` |
|
|
|
+| POST | `/api/health/report/confirm` | 登录 | | `confirmReportPreview` |
|
|
|
+| POST | `/api/health/report/detail` | 登录 | | `getReportDetail` |
|
|
|
+| POST | `/api/health/report/discard` | 登录 | | `discardReportDraft` |
|
|
|
+| POST | `/api/health/report/edit` | 登录 | | `editHealthReport` |
|
|
|
+| POST | `/api/health/report/parse` | 登录 | | `parseReportDraft` |
|
|
|
+| POST | `/api/indicator/change-ranking` | 登录 | | `getIndicatorChangeRanking` |
|
|
|
+| POST | `/api/nutrition/beijing/analysis` | 登录 | | `getGutFloraAnalysis` |
|
|
|
+
|
|
|
+### pages/health/gut-flora-foods-detail (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/food/recommendation/members` | 登录 | | `getCautionFamilyMembers` |
|
|
|
+| POST | `/api/food/recommendation/trend` | 登录 | | `getFoodCautionTrend` |
|
|
|
+| POST | `/api/health/foods` | 登录 | | `getHealthFoods` |
|
|
|
+| POST | `/api/health/knowledge/v3/food/query` | 登录 | | `queryFoodKnowledge` |
|
|
|
+| POST | `/api/health/report/edit` | 登录 | | `editHealthReport` |
|
|
|
+
|
|
|
+### pages/health/gut-flora-risks-detail (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/knowledge/query` | 登录 | | `queryKnowledgeBase` |
|
|
|
+| POST | `/api/health/knowledge/unified/disease/query` | 登录 | | `queryDiseaseKnowledge` |
|
|
|
+| POST | `/api/health/knowledge/v3/indicator/query` | 登录 | | `queryIndicatorKnowledge` |
|
|
|
+| POST | `/api/health/report/detail` | 登录 | | `getReportDetail` |
|
|
|
+| POST | `/api/health/report/edit` | 登录 | | `editHealthReport` |
|
|
|
+
|
|
|
+### pages/health/gut-flora-species-detail (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/knowledge/query` | 登录 | | `queryKnowledgeBase` |
|
|
|
+| POST | `/api/health/knowledge/v3/bacteria/query` | 登录 | | `queryBacteriaKnowledge` |
|
|
|
+| POST | `/api/health/report/detail` | 登录 | | `getReportDetail` |
|
|
|
+| POST | `/api/health/report/edit` | 登录 | | `editHealthReport` |
|
|
|
+
|
|
|
+### pages/health/health-plan-summary (11 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/diet/preferences/current-member` | 登录 | | `getDietPreferences` |
|
|
|
+| POST | `/api/diet/preferences/save` | 登录 | | `saveDietPreferences` |
|
|
|
+| POST | `/api/health-status/get` | 登录 | | `getHealthStatus` |
|
|
|
+| POST | `/api/health-status/save` | 登录 | | `saveHealthStatus` |
|
|
|
+| POST | `/api/health-status/signature` | 登录 | | `saveHealthSignature` |
|
|
|
+| POST | `/api/health/plan/confirm` | 登录 | | `confirmPlan` |
|
|
|
+| POST | `/api/health/plan/detail` | 登录 | | `getHealthPlanDetail` |
|
|
|
+| POST | `/api/health/plan/generate` | 登录 | | `generateHealthPlan` |
|
|
|
+| POST | `/api/health/plan/regenerate-section` | 登录 | | `regenerateSection` |
|
|
|
+| POST | `/api/health/plan/save` | 登录 | | `saveHealthPlan` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/health/health-status-form (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health-status/get` | 登录 | | `getHealthStatus` |
|
|
|
+| POST | `/api/health-status/save` | 登录 | | `saveHealthStatus` |
|
|
|
+
|
|
|
+### pages/health/health-survey (6 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/diet/preferences/current-member` | 登录 | | `getDietPreferences` |
|
|
|
+| POST | `/api/diet/preferences/save` | 登录 | | `saveDietPreferences` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health-status/get` | 登录 | | `getHealthStatus` |
|
|
|
+| POST | `/api/health-status/save` | 登录 | | `saveHealthStatus` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/health/indicator-curve (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/indicator/change-ranking` | 登录 | | `getIndicatorChangeRanking` |
|
|
|
+| POST | `/api/indicator/trend` | 登录 | | `getIndicatorTrend` |
|
|
|
+
|
|
|
+### pages/health/indicator-quicklook (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/indicator/quick-lookup` | 登录 | | `getIndicatorQuickLookup` |
|
|
|
+
|
|
|
+### pages/health/my-feedback (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/feedback/list` | 公开 | | `getMyReportFeedbacks` |
|
|
|
+
|
|
|
+### pages/health/nutrition-profile (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/nutrition/deficiency` | 登录 | | `getDeficiencyAnalysis` |
|
|
|
+| POST | `/api/health/nutrition/profile` | 登录 | | `getChildNutritionProfile` |
|
|
|
+
|
|
|
+### pages/health/physical-exam-detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/report/detail` | 登录 | | `getReportDetail` |
|
|
|
+
|
|
|
+### pages/health/plan-list (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/plan/delete` | 登录 | | `deleteHealthPlan` |
|
|
|
+| POST | `/api/health/plan/list` | 登录 | | `getHealthPlanList` |
|
|
|
+
|
|
|
+### pages/health/report-confirm (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/add` | 登录 | | `addFamilyMember` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/report/parse` | 登录 | | `parseReportDraft` |
|
|
|
+
|
|
|
+### pages/health/report-detail (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/add` | 登录 | | `addFamilyMember` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/report/edit` | 登录 | | `editHealthReport` |
|
|
|
+| POST | `/api/health/report/parse` | 登录 | | `parseReportDraft` |
|
|
|
+| POST | `/api/health/report/payload` | 登录 | | `getReportPayload` |
|
|
|
+
|
|
|
+### pages/health/report-list (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/report/collecting-list` | 登录 | | `getCollectingReports` |
|
|
|
+| POST | `/api/health/report/delete` | 登录 | | `deleteReport` |
|
|
|
+| POST | `/api/health/report/list` | 登录 | | `getReportList` |
|
|
|
+| POST | `/api/health/report/reassign` | 登录 | | `reassignReport` |
|
|
|
+| POST | `/api/health/report/transfer/approve` | 登录 | | `approveReportTransfer` |
|
|
|
+| POST | `/api/health/report/transfer/deny` | 登录 | | `denyReportTransfer` |
|
|
|
+| POST | `/api/health/report/transfer/list` | 登录 | | `getReportTransferList` |
|
|
|
+
|
|
|
+### pages/health/report-survey (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/survey/create` | 登录 | | `createReportSurvey` |
|
|
|
+| POST | `/api/health/survey/submit` | 登录 | | `submitReportSurvey` |
|
|
|
+| POST | `/api/survey/status` | 登录 | | `getSurveyStatus` |
|
|
|
+
|
|
|
+### pages/health/report-upload (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/report/collect/status` | 登录 | | `getReportCollectStatus` |
|
|
|
+| POST | `/api/health/report/transfer/request` | 登录 | | `requestReportTransfer` |
|
|
|
+| POST | `/api/health/report/upload-only` | 登录 | | `uploadReportOnly` |
|
|
|
+
|
|
|
+### pages/health/survey-history (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/survey/history` | 登录 | | `getSurveyHistory` |
|
|
|
+| POST | `/api/survey/template/active` | 登录 | | `getActiveTemplates` |
|
|
|
+
|
|
|
+### pages/health/survey-questionnaire (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/survey/submit` | 登录 | | `submitSurvey` |
|
|
|
+| POST | `/api/survey/template/active` | 登录 | | `getActiveTemplates` |
|
|
|
+
|
|
|
+### pages/health/teacher-service (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health-plan/available-teachers` | 登录 | | `getAvailableTeachers` |
|
|
|
+
|
|
|
+### pages/home-pages/child-index (11 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/list` | 公开 | | `getActivityList` |
|
|
|
+| POST | `/api/energy/logs` | 登录 | | `getEnergyLogs` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/guide-config/current` | 登录 | | `getGuideConfig` |
|
|
|
+| POST | `/api/guide/popup/consume` | 登录 | | `consumeGuidePopup` |
|
|
|
+| POST | `/api/guide/popup/list` | 登录 | | `getGuidePopupList` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+| POST | `/api/unlock/status` | 登录 | | `getUnlockStatus` |
|
|
|
+| POST | `/api/user/switch-mode` | 登录 | | `switchMode` |
|
|
|
+
|
|
|
+### pages/home-pages/components/AdBanner (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/home-banner/list` | 登录 | | `getHomeBanners` |
|
|
|
+
|
|
|
+### pages/home-pages/components/ContactImport (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/contact/import-phone` | 登录 | | `importPhoneContact` |
|
|
|
+
|
|
|
+### pages/home-pages/components/DailySummary (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/feedback/read` | 公开 | | `markFeedbackRead` |
|
|
|
+| POST | `/api/feedback/today` | 公开 | | `getTodayFeedback` |
|
|
|
+
|
|
|
+### pages/home-pages/components/MicroActionCard (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/micro-action/complete` | 登录 | | `microActionComplete` |
|
|
|
+| POST | `/api/micro-action/today` | 登录 | | `microActionToday` |
|
|
|
+
|
|
|
+### pages/home-pages/member-home-detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+
|
|
|
+### pages/home-pages/parent-index (23 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/list` | 公开 | | `getActivityList` |
|
|
|
+| POST | `/api/articles/featured` | 公开 | | `getFeaturedArticles` |
|
|
|
+| POST | `/api/contact/list` | 登录 | | `getContactList` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/member/switch` | 登录 | | `switchToFamilyMember` |
|
|
|
+| POST | `/api/family/self-check/status` | 登录 | | `getSelfCheckStatus` |
|
|
|
+| POST | `/api/health/alert/dismiss` | 登录 | | `dismissAlert` |
|
|
|
+| POST | `/api/health/alert/list` | 登录 | | `getActiveAlerts` |
|
|
|
+| POST | `/api/health/challenge/list` | 登录 | | `getChallengeList` |
|
|
|
+| POST | `/api/health/circle/list` | 登录 | | `getCircleList` |
|
|
|
+| POST | `/api/health/circle/ranking` | 登录 | | `getCircleRanking` |
|
|
|
+| POST | `/api/health/family/ranking` | 登录 | | `getFamilyRanking` |
|
|
|
+| POST | `/api/invite/qrcode` | 登录 | | `getInviteQrCode` |
|
|
|
+| POST | `/api/parent/dashboard` | 登录 | | `getParentDashboard` |
|
|
|
+| POST | `/api/stats/child-completion` | 登录 | | `getChildCompletionStats` |
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `approveTask` |
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `rejectTask` |
|
|
|
+| POST | `/api/tasks/pending-review` | 登录 | | `getPendingReviewTasks` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+| POST | `/api/unlock/status` | 登录 | | `getUnlockStatus` |
|
|
|
+| POST | `/api/wishes/pending` | 登录 | | `getPendingWishes` |
|
|
|
+
|
|
|
+### pages/home/app-library (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/home/app-library` | 登录 | | `getAppLibrary` |
|
|
|
+| POST | `/api/home/shortcut/reset` | 登录 | | `resetShortcutConfig` |
|
|
|
+| POST | `/api/home/shortcut/save` | 登录 | | `saveShortcutConfig` |
|
|
|
+
|
|
|
+### pages/index-home/index (28 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/list` | 公开 | | `getActivityList` |
|
|
|
+| POST | `/api/admin/notices/all` | 登录 | | `getNotices` |
|
|
|
+| POST | `/api/articles/featured` | 公开 | | `getFeaturedArticles` |
|
|
|
+| POST | `/api/commission/cf/list` | 登录 | | `getCfList` |
|
|
|
+| POST | `/api/commission/cf/summary` | 登录 | | `getCfSummary` |
|
|
|
+| POST | `/api/energy/logs` | 登录 | | `getEnergyLogs` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/member/switch` | 登录 | | `switchToFamilyMember` |
|
|
|
+| POST | `/api/family/self-check/status` | 登录 | | `getSelfCheckStatus` |
|
|
|
+| POST | `/api/guide-config/current` | 登录 | | `getGuideConfig` |
|
|
|
+| POST | `/api/guide/parent-invite/accept` | 登录 | | `acceptParentInvite` |
|
|
|
+| POST | `/api/guide/popup/consume` | 登录 | | `consumeGuidePopup` |
|
|
|
+| POST | `/api/guide/popup/list` | 登录 | | `getGuidePopupList` |
|
|
|
+| POST | `/api/health/challenge/list` | 登录 | | `getChallengeList` |
|
|
|
+| POST | `/api/health/challenge/progress` | 登录 | | `updateChallengeProgress` |
|
|
|
+| POST | `/api/health/challenge/respond` | 登录 | | `respondChallenge` |
|
|
|
+| POST | `/api/home/app-library` | 登录 | | `getAppLibrary` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/notification/list` | 登录 | | `getNotificationList` |
|
|
|
+| POST | `/api/notification/read` | 登录 | | `readNotification` |
|
|
|
+| POST | `/api/points/logs` | 登录 | | `getPointsLogs` |
|
|
|
+| POST | `/api/survey/status` | 登录 | | `getSurveyStatus` |
|
|
|
+| POST | `/api/tasks/history` | 登录 | | `getTaskHistory` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+
|
|
|
+### pages/invite/join (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/invite/check-family` | 公开 | | `checkUserFamily` |
|
|
|
+| POST | `/api/family/invite/validate` | 公开 | | `validateInvitation` |
|
|
|
+| POST | `/api/family/invite/validate-family-code` | 公开 | | `validateFamilyCode` |
|
|
|
+| POST | `/api/invite/bind` | 登录 | | `bindReferral` |
|
|
|
+
|
|
|
+### pages/invite/join-form (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/invite/request-join-by-code` | 公开 | | `requestJoinByCode` |
|
|
|
+| POST | `/api/user/update` | 登录 | | `updateUserInfo` |
|
|
|
+
|
|
|
+### pages/login/scan-login (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/wechat-web/scan` | 公开 | | `wechatWebScan` |
|
|
|
+
|
|
|
+### pages/match/street-match (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/admin/families/count` | 登录 | | `countFamiliesByStreetIds` |
|
|
|
+| POST | `/api/admin/teachers/count` | 登录 | | `countTeachersByStreetIds` |
|
|
|
+| POST | `/api/streets//:var/match`)
|
|
|
+}
|
|
|
+
|
|
|
+// 按区域统计
|
|
|
+export const getStreetStats = (level = 4) => {
|
|
|
+ return request('/api/streets/stats', 'POST', { level })
|
|
|
+}
|
|
|
+
|
|
|
+// 获取家庭详情(含地址信息)
|
|
|
+export const getFamilyDetail = (id) => {
|
|
|
+ return request(`/api/admin/families//:var`)
|
|
|
+}
|
|
|
+
|
|
|
+// 更新家庭地址
|
|
|
+export const updateFamilyAddress = (data) => {
|
|
|
+ return request(`/api/admin/families/update` | 公开 | ✓ | `matchByStreet` |
|
|
|
+
|
|
|
+### pages/meal/log (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/meal/log` | 登录 | | `logMeal` |
|
|
|
+| POST | `/api/meal/logs` | 登录 | | `getMealLogs` |
|
|
|
+| POST | `/api/meal/nutrition-summary` | 登录 | | `getNutritionSummary` |
|
|
|
+
|
|
|
+### pages/meal/preference (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/nutrition/profile/get` | 登录 | | `getNutritionProfile` |
|
|
|
+| POST | `/api/nutrition/profile/save` | 登录 | | `saveNutritionProfile` |
|
|
|
+
|
|
|
+### pages/meal/recommend (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/meal/recommend` | 登录 | | `getMealRecommend` |
|
|
|
+| POST | `/api/meal/replace` | 登录 | | `replaceFood` |
|
|
|
+
|
|
|
+### pages/member-detail/components/member-detail-sections/action-section (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/list` | 公开 | | `getActivityList` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasksByCategory` |
|
|
|
+| POST | `/api/wealth/checkin/stats` | 登录 | | `getCheckinStats` |
|
|
|
+
|
|
|
+### pages/member-detail/components/member-detail-sections/body-section (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dimension/overview` | 登录 | | `getDimensionOverview` |
|
|
|
+| POST | `/api/health/analysis` | 登录 | | `getHealthAnalysis` |
|
|
|
+| POST | `/api/wealth/checkin/list` | 登录 | | `getCheckinList` |
|
|
|
+
|
|
|
+### pages/member-detail/components/member-detail-sections/mind-section (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/contact/list` | 登录 | | `getContactList` |
|
|
|
+| POST | `/api/family/relationship/health-alerts` | 登录 | | `getHealthAlerts` |
|
|
|
+| POST | `/api/family/relationship/milestones` | 登录 | | `getMilestones` |
|
|
|
+| POST | `/api/family/relationship/scores` | 登录 | | `getRelationshipScores` |
|
|
|
+
|
|
|
+### pages/member-detail/components/member-detail-sections/wisdom-section (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/assessment/history` | 登录 | | `getAssessmentHistory` |
|
|
|
+| POST | `/api/assessment/latest-result` | 登录 | | `getAssessmentLatestResult` |
|
|
|
+
|
|
|
+### pages/member-detail/member-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/activity/list` | 公开 | | `getActivityList` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+
|
|
|
+### pages/member-detail/report-detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/report/detail` | 登录 | | `getReportDetail` |
|
|
|
+
|
|
|
+### pages/membership/benefits (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/membership/benefits` | 登录 | | `getMembershipBenefits` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/membership/index (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/butler/my-butler` | 公开 | | `getMyButler` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/membership/benefits` | 登录 | | `getMembershipBenefits` |
|
|
|
+| POST | `/api/membership/compare` | 登录 | | `getMembershipCompare` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/membership/pay (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/coupon/list` | 登录 | | `getCouponList` |
|
|
|
+| POST | `/api/membership/orders` | 登录 | | `createOrder` |
|
|
|
+| POST | `/api/membership/orders/continue` | 登录 | | `nextOrder` |
|
|
|
+| POST | `/api/membership/plans` | 登录 | | `getMembershipPlans` |
|
|
|
+
|
|
|
+### pages/membership/result (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/coupon/join-rules` | 登录 | | `getJoinCouponRules` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/membership/orders/continue` | 登录 | | `nextOrder` |
|
|
|
+
|
|
|
+### pages/membership/upgrade (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/coupon/join-rules` | 登录 | | `getJoinCouponRules` |
|
|
|
+| POST | `/api/membership/compare` | 登录 | | `getMembershipCompare` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/membership/plans` | 登录 | | `getMembershipPlans` |
|
|
|
+| POST | `/api/membership/upgrade-records` | 登录 | | `getUpgradeRecords` |
|
|
|
+
|
|
|
+### pages/mind-detail/articles (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/articles/categories` | 公开 | | `getArticleCategories` |
|
|
|
+| POST | `/api/articles/list` | 公开 | | `getArticleList` |
|
|
|
+
|
|
|
+### pages/mind-detail/components/PsychCrisisBanner (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/alert/dismiss` | 登录 | | `dismissAlert` |
|
|
|
+
|
|
|
+### pages/mind-detail/emotion-report (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/emireport/latest` | 登录 | | `getEmiReport` |
|
|
|
+
|
|
|
+### pages/mind-detail/family-dashboard (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/mind/fortune` | 登录 | | `getFamilyFortune` |
|
|
|
+| POST | `/api/mind/fortune/month` | 登录 | | `getMonthFortune` |
|
|
|
+| POST | `/api/mind/fortune/reports` | 登录 | | `getFortuneReports` |
|
|
|
+| POST | `/api/mind/fortune/week` | 登录 | | `getWeekFortune` |
|
|
|
+
|
|
|
+### pages/mind-detail/index (14 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/contact/list` | 登录 | | `getContactList` |
|
|
|
+| POST | `/api/content-sections/visible` | 登录 | | `getVisibleSections` |
|
|
|
+| POST | `/api/dan-assessment/report/child` | 登录 | | `getDanReportByChild` |
|
|
|
+| POST | `/api/dimension/radar-data` | 登录 | | `getRadarData` |
|
|
|
+| POST | `/api/emireport/latest` | 登录 | | `getEmiReport` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+| POST | `/api/family/member/kick` | 登录 | | `kickFamilyMemberById` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/relationship/health-alerts` | 登录 | | `getHealthAlerts` |
|
|
|
+| POST | `/api/family/relationship/milestones` | 登录 | | `getMilestones` |
|
|
|
+| POST | `/api/health/indicators` | 登录 | | `getLatestIndicators` |
|
|
|
+| POST | `/api/mind/fortune` | 登录 | | `getFamilyFortune` |
|
|
|
+
|
|
|
+### pages/mind-detail/innate-portrait (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/mind/innate/reading` | 登录 | | `getInnateReading` |
|
|
|
+
|
|
|
+### pages/mind-detail/innate-trajectory (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/mind/innate/trajectory` | 登录 | | `getInnateTrajectory` |
|
|
|
+
|
|
|
+### pages/mind-detail/member-mind-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+
|
|
|
+### pages/mind-detail/training (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/game/stats` | 登录 | | `getGameStats` |
|
|
|
+
|
|
|
+### pages/notification/index (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/notification/list` | 登录 | | `getNotificationList` |
|
|
|
+| POST | `/api/notification/read` | 登录 | | `readNotification` |
|
|
|
+
|
|
|
+### pages/nutritionist/apply (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/nutritionist/apply` | 公开 | | `nutritionistApply` |
|
|
|
+
|
|
|
+### pages/orchestration/editor (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/admin/task-templates` | 登录 | | `getNodeTemplateList` |
|
|
|
+| POST | `/api/orchestration/flow/detail` | 登录 | | `getOrchestrationFlowDetail` |
|
|
|
+| POST | `/api/orchestration/flow/publish` | 登录 | | `publishOrchestrationFlow` |
|
|
|
+| POST | `/api/orchestration/flow/save` | 登录 | | `saveOrchestrationFlow` |
|
|
|
+
|
|
|
+### pages/orchestration/index (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/orchestration/flow/archive` | 登录 | | `archiveOrchestrationFlow` |
|
|
|
+| POST | `/api/orchestration/flow/delete` | 登录 | | `deleteOrchestrationFlow` |
|
|
|
+| POST | `/api/orchestration/flow/list` | 登录 | | `getOrchestrationFlowList` |
|
|
|
+| POST | `/api/orchestration/flow/publish` | 登录 | | `publishOrchestrationFlow` |
|
|
|
+
|
|
|
+### pages/orchestration/node-edit (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/parent/appointments (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/dan-assessment/appointment/cancel` | 登录 | | `cancelAppointment` |
|
|
|
+| POST | `/api/dan-assessment/appointment/user` | 登录 | | `getMyAppointments` |
|
|
|
+
|
|
|
+### pages/parent/child-detail (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/tasks/pending-review` | 登录 | | `getPendingReviewTasks` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+| POST | `/api/wishes/pending` | 登录 | | `getPendingWishes` |
|
|
|
+
|
|
|
+### pages/parent/plans/detail (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/plans/detail` | 登录 | | `getGuidePlanDetail` |
|
|
|
+
|
|
|
+### pages/parent/plans/index (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/plans/family-list` | 登录 | | `listFamilyPlans` |
|
|
|
+
|
|
|
+### pages/parent/wishes/index (6 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/wishes//:var/approve-exchange` | 登录 | ✓ | `approveWishExchange` |
|
|
|
+| POST | `/api/wishes//:var/fulfill` | 登录 | ✓ | `markWishFulfilled` |
|
|
|
+| POST | `/api/wishes//:var/price` | 登录 | ✓ | `setWishPrice` |
|
|
|
+| POST | `/api/wishes//:var/reject` | 登录 | ✓ | `rejectWish` |
|
|
|
+| POST | `/api/wishes/list` | 登录 | | `getWishes` |
|
|
|
+| POST | `/api/wishes/pending` | 登录 | | `getPendingWishes` |
|
|
|
+
|
|
|
+### pages/pearl-reminders/index (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/pearl/interaction/add` | 登录 | | `addPearlInteraction` |
|
|
|
+| POST | `/api/pearl/reminder/list` | 登录 | | `getPearlReminders` |
|
|
|
+
|
|
|
+### pages/profile-extra/coupons (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/coupon/claim` | 登录 | | `claimCoupon` |
|
|
|
+| POST | `/api/coupon/exchangeable` | 登录 | | `getExchangeableCoupons` |
|
|
|
+| POST | `/api/coupon/my` | 登录 | | `getMyCoupons` |
|
|
|
+| POST | `/api/family-platform/exchange-coupon` | 登录 | | `exchangeCouponByCf` |
|
|
|
+
|
|
|
+### pages/profile-extra/family-members (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/invite/generate` | 公开 | | `generateFamilyInvite` |
|
|
|
+| POST | `/api/family/invite/pending-requests` | 公开 | | `getPendingJoinRequests` |
|
|
|
+| POST | `/api/family/member/kick` | 登录 | | `kickFamilyMemberById` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/member/switch` | 登录 | | `switchToFamilyMember` |
|
|
|
+| POST | `/api/health/report/member-permission/members/'/:var, 'POST', {})
|
|
|
+
|
|
|
+/** 授权:让指定用户可查看某成员的报告(管理员) */
|
|
|
+export const grantReportMemberPermission = (targetMemberId, granteeUserId) =>
|
|
|
+ request('/api/health/report/member-permission/grant` | 登录 | ✓ | `getMemberGrantedUsers` |
|
|
|
+| POST | `/api/health/report/member-permission/revoke` | 登录 | | `revokeReportMemberPermission` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+
|
|
|
+### pages/profile-extra/gates (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/unlock/status` | 登录 | | `getUnlockStatus` |
|
|
|
+
|
|
|
+### pages/profile-extra/onboarding (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/onboarding/claim` | 登录 | | `claimOnboardingReward` |
|
|
|
+| POST | `/api/onboarding/progress` | 登录 | | `getOnboardingProgress` |
|
|
|
+
|
|
|
+### pages/profile-main/profile (16 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/verify-password` | 公开 | | `verifyPassword` |
|
|
|
+| POST | `/api/cart/count` | 登录 | | `cartCount` |
|
|
|
+| POST | `/api/commission/my-referrer` | 登录 | | `getMyReferrer` |
|
|
|
+| POST | `/api/commission/team/consumption` | 登录 | | `getTeamConsumption` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/challenge/list` | 登录 | | `getChallengeList` |
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/invite/summary` | 登录 | | `getReferralSummary` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/product/order/my/counts` | 公开 | | `getOrderCounts` |
|
|
|
+| POST | `/api/share/qrcode` | 登录 | | `getShareQrCode` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasksByCategory` |
|
|
|
+| POST | `/api/user/info` | 登录 | | `getUserInfo` |
|
|
|
+| POST | `/api/user/profile-stats` | 登录 | | `getProfileStats` |
|
|
|
+| POST | `/api/vendor/status` | 公开 | | `vendorStatus` |
|
|
|
+
|
|
|
+### pages/profile/components/ProfileHeader (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/verify-password` | 公开 | | `verifyPassword` |
|
|
|
+| POST | `/api/family/member/switch` | 登录 | | `switchToFamilyMember` |
|
|
|
+
|
|
|
+### pages/profile/components/ProfileMenu (6 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/set-password` | 公开 | | `setPassword` |
|
|
|
+| POST | `/api/auth/verify-password` | 公开 | | `verifyPassword` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/user/members/update-visibility` | 登录 | | `updateMemberVisibility` |
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/vendor/status` | 公开 | | `vendorStatus` |
|
|
|
+
|
|
|
+### pages/profile/components/ProfileStats (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/user/action-stats` | 登录 | | `getUserActionStats` |
|
|
|
+
|
|
|
+### pages/profile/index (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+
|
|
|
+### pages/profile/message-history (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/commission/cf/list` | 登录 | | `getCfList` |
|
|
|
+| POST | `/api/energy/logs` | 登录 | | `getEnergyLogs` |
|
|
|
+| POST | `/api/notification/list` | 登录 | | `getNotificationList` |
|
|
|
+| POST | `/api/notification/read` | 登录 | | `readNotification` |
|
|
|
+| POST | `/api/points/logs` | 登录 | | `getPointsLogs` |
|
|
|
+
|
|
|
+### pages/profile/portrait-edit (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getEnergySandbox` |
|
|
|
+| POST | `/api/user/portrait/edit` | 登录 | | `editPortrait` |
|
|
|
+| POST | `/api/user/portrait/get` | 登录 | | `getPortrait` |
|
|
|
+
|
|
|
+### pages/profile/report-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/report-summary/detail/'/:var, 'POST', {})
|
|
|
+export const downloadReportSummary = (id) => request('/api/report-summary/download/'/:var, 'POST', {})
|
|
|
+
|
|
|
+// 服务角色统一申请
|
|
|
+export const submitServiceRoleApply = (data) => {
|
|
|
+ return request('/api/service-role/apply` | 登录 | ✓ | `getReportSummaryDetail` |
|
|
|
+
|
|
|
+### pages/profile/report-management (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/report-summary/list` | 登录 | | `getReportSummaryList` |
|
|
|
+
|
|
|
+### pages/profile/service-role-apply (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/service-role/my-apply` | 登录 | | `getMyServiceRoleApply` |
|
|
|
+| POST | `/api/service-role/upload-image` | 登录 | | `uploadServiceRoleImage` |
|
|
|
+
|
|
|
+### pages/promotion/commission (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/commission/cf/list` | 登录 | | `getCfList` |
|
|
|
+| POST | `/api/commission/cf/summary` | 登录 | | `getCfSummary` |
|
|
|
+
|
|
|
+### pages/promotion/index (7 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/commission/cf/summary` | 登录 | | `getCfSummary` |
|
|
|
+| POST | `/api/earnings/admin/distribute` | 登录 | | `distributeToMember` |
|
|
|
+| POST | `/api/earnings/admin/toggle-member` | 登录 | | `toggleMemberBalance` |
|
|
|
+| POST | `/api/earnings/admin/withdraw` | 登录 | | `withdrawFamilyEarnings` |
|
|
|
+| POST | `/api/earnings/family/summary` | 登录 | | `getFamilyEarningsSummary` |
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/invite/summary` | 登录 | | `getReferralSummary` |
|
|
|
+
|
|
|
+### pages/promotion/invite (7 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/invite/bind` | 登录 | | `bindReferral` |
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/invite/list` | 登录 | | `getReferralList` |
|
|
|
+| POST | `/api/invite/milestone/claim` | 登录 | | `claimInviteMilestone` |
|
|
|
+| POST | `/api/invite/milestone/list` | 登录 | | `getInviteMilestones` |
|
|
|
+| POST | `/api/invite/qrcode` | 登录 | | `getInviteQrCode` |
|
|
|
+| POST | `/api/invite/summary` | 登录 | | `getReferralSummary` |
|
|
|
+
|
|
|
+### pages/promotion/leaderboard (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/leaderboard/my-rank` | 登录 | | `getLeaderboardMyRank` |
|
|
|
+| POST | `/api/leaderboard/top` | 登录 | | `getLeaderboardTop` |
|
|
|
+
|
|
|
+### pages/promotion/team (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/commission/cf/rate` | 登录 | | `getCfRate` |
|
|
|
+| POST | `/api/commission/my-referrer` | 登录 | | `getMyReferrer` |
|
|
|
+| POST | `/api/commission/team/consumption` | 登录 | | `getTeamConsumption` |
|
|
|
+| POST | `/api/commission/team/consumption-curve` | 登录 | | `getTeamAllMembersConsumptionCurve` |
|
|
|
+| POST | `/api/commission/team/growth-curve` | 登录 | | `getTeamGrowthCurve` |
|
|
|
+| POST | `/api/commission/team/l1-consumption-curve` | 登录 | | `getTeamL1ConsumptionCurve` |
|
|
|
+| POST | `/api/commission/team/list` | 登录 | | `getTeamList` |
|
|
|
+| POST | `/api/commission/team/tree` | 登录 | | `getTeamTree` |
|
|
|
+
|
|
|
+### pages/promotion/withdraw (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/commission/summary` | 登录 | | `getCommissionSummary` |
|
|
|
+| POST | `/api/withdrawal/apply` | 登录 | | `applyWithdrawal` |
|
|
|
+| POST | `/api/withdrawal/history` | 登录 | | `getWithdrawalHistory` |
|
|
|
+
|
|
|
+### pages/psych-assessment/index (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/child` | 登录 | | `getCognitiveChildScores` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+
|
|
|
+### pages/psych-assessment/quiz (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cognitive/self-test` | 登录 | | `submitCognitiveSelfTest` |
|
|
|
+
|
|
|
+### pages/reminder-config/index (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/task/reminder-config/get` | 登录 | | `getReminderConfig` |
|
|
|
+| POST | `/api/task/reminder-config/save` | 登录 | | `saveReminderConfig` |
|
|
|
+
|
|
|
+### pages/rewards/badge (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/badges/member/list` | 登录 | | `getChildBadges` |
|
|
|
+| POST | `/api/badges/favorite` | 登录 | | `toggleBadgeFavorite` |
|
|
|
+| POST | `/api/badges/list` | 登录 | | `getActiveBadges` |
|
|
|
+| POST | `/api/badges/ranking/family` | 登录 | | `getFamilyBadgeRanking` |
|
|
|
+| POST | `/api/badges/statistics/member` | 登录 | | `getChildBadgeStats` |
|
|
|
+
|
|
|
+### pages/rewards/rewards (9 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/parent/wishlist` | 登录 | | `createParentWishlist` |
|
|
|
+| POST | `/api/parent/wishlist//:var/exchange` | 登录 | ✓ | `exchangeParentWishlist` |
|
|
|
+| POST | `/api/parent/wishlist/list` | 登录 | | `getParentWishlist` |
|
|
|
+| POST | `/api/points/balance` | 登录 | | `getPointsBalance` |
|
|
|
+| POST | `/api/rewards` | 登录 | | `createReward` |
|
|
|
+| POST | `/api/rewards//:var/exchange` | 登录 | ✓ | `exchangeReward` |
|
|
|
+| POST | `/api/rewards/wishlist` | 登录 | | `getWishlist` |
|
|
|
+| POST | `/api/user/info` | 登录 | | `getUserInfo` |
|
|
|
+
|
|
|
+### pages/share/index (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/share/family-footprint` | 登录 | | `getFamilyFootprint` |
|
|
|
+
|
|
|
+### pages/shop/cart/cart (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/membership/gift-membership-progress` | 登录 | | `getGiftMembershipProgress` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/shop/checkout/checkout (12 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/coupon/apply` | 登录 | | `applyCoupon` |
|
|
|
+| POST | `/api/coupon/checkout-list` | 登录 | | `getCouponCheckoutList` |
|
|
|
+| POST | `/api/coupon/list` | 登录 | | `getCouponList` |
|
|
|
+| POST | `/api/family-platform/balance` | 登录 | | `getFamilyPlatformBalance` |
|
|
|
+| POST | `/api/family-platform/exchange-coupon` | 登录 | | `exchangeCouponByCf` |
|
|
|
+| POST | `/api/membership/gift-membership-progress` | 登录 | | `getGiftMembershipProgress` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/product/detail` | 公开 | | `productDetail` |
|
|
|
+| POST | `/api/product/purchase_fields/required` | 公开 | | `getProductRequiredFields` |
|
|
|
+| POST | `/api/shop/discount/calculate` | 公开 | | `shopDiscountCalculate` |
|
|
|
+| POST | `/api/special-price/info` | 登录 | | `getSpecialPriceInfo` |
|
|
|
+| POST | `/api/user/address/list` | 登录 | | `addressList` |
|
|
|
+
|
|
|
+### pages/shop/consignee-edit/consignee-edit (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/consignee/detail` | 登录 | | `consigneeDetail` |
|
|
|
+| POST | `/api/consignee/save` | 登录 | | `consigneeSave` |
|
|
|
+
|
|
|
+### pages/shop/consignee-list/consignee-list (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/consignee/delete` | 登录 | | `consigneeDelete` |
|
|
|
+| POST | `/api/consignee/list` | 登录 | | `consigneeList` |
|
|
|
+
|
|
|
+### pages/shop/index/index (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/cart/count` | 登录 | | `cartCount` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/product/list` | 公开 | | `productList` |
|
|
|
+| POST | `/api/shop/category/tree` | 公开 | | `goodsCategory` |
|
|
|
+
|
|
|
+### pages/shop/order-detail/order-detail (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/product/order/cancel` | 公开 | | `productOrderCancel` |
|
|
|
+| POST | `/api/product/order/confirm` | 公开 | | `productOrderConfirm` |
|
|
|
+| POST | `/api/product/order/detail` | 公开 | | `productOrderDetail` |
|
|
|
+
|
|
|
+### pages/shop/order-list/order-list (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/product/order/cancel` | 公开 | | `productOrderCancel` |
|
|
|
+| POST | `/api/product/order/confirm` | 公开 | | `productOrderConfirm` |
|
|
|
+| POST | `/api/product/order/my` | 公开 | | `productOrderMy` |
|
|
|
+| POST | `/api/product/order/my/counts` | 公开 | | `productOrderCounts` |
|
|
|
+
|
|
|
+### pages/shop/payment/payment (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+
|
|
|
+### pages/shop/search/search (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/product/list` | 公开 | | `productList` |
|
|
|
+
|
|
|
+### pages/stats/completion-rate (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/stats/child-completion` | 登录 | | `getChildCompletionStats` |
|
|
|
+| POST | `/api/stats/family-completion` | 登录 | | `getFamilyCompletionStats` |
|
|
|
+
|
|
|
+### pages/stats/index (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/stats/child/overview` | 登录 | | `getChildOverview` |
|
|
|
+
|
|
|
+### pages/tasks/create-task (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/tasks/create` | 登录 | | `createTask` |
|
|
|
+| POST | `/api/tasks/list` | 登录 | | `getTaskListForPicker` |
|
|
|
+
|
|
|
+### pages/tasks/daily-tasks (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/growth-task/claim` | 登录 | | `claimGrowthTaskReward` |
|
|
|
+| POST | `/api/growth-task/list` | 登录 | | `getGrowthTaskList` |
|
|
|
+
|
|
|
+### pages/tasks/review (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `approveTask` |
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `rejectTask` |
|
|
|
+| POST | `/api/tasks/history` | 登录 | | `getTaskHistory` |
|
|
|
+| POST | `/api/tasks/pending-review` | 登录 | | `getPendingReviewTasks` |
|
|
|
+
|
|
|
+### pages/tasks/tasks (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/tasks//:var/complete` | 登录 | ✓ | `completeTask` |
|
|
|
+| POST | `/api/tasks/accept` | 登录 | | `acceptTask` |
|
|
|
+| POST | `/api/tasks/create` | 登录 | | `createTask` |
|
|
|
+| POST | `/api/tasks/my-pending` | 登录 | | `getMyPendingTasks` |
|
|
|
+| POST | `/api/tasks/today` | 登录 | | `getTodayTasks` |
|
|
|
+
|
|
|
+### pages/teacher/chat (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/messages/list` | 登录 | | `getGuideMessages` |
|
|
|
+
|
|
|
+### pages/teacher/families (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/families` | 登录 | | `getBoundFamilies` |
|
|
|
+
|
|
|
+### pages/teacher/messages (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/messages/list` | 登录 | | `getGuideMessages` |
|
|
|
+
|
|
|
+### pages/teacher/orders (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/orders/list` | 登录 | | `getGuideOrders` |
|
|
|
+| POST | `/api/guide/orders/stats` | 登录 | | `getOrderStats` |
|
|
|
+
|
|
|
+### pages/teacher/plan-create (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/training-plans/create` | 登录 | | `createTrainingPlan` |
|
|
|
+
|
|
|
+### pages/teacher/plan-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/families//:var/plans//:var/update` | 登录 | ✓ | `updateGuidePlanContent` |
|
|
|
+| POST | `/api/guide/families//:var/plans/pending` | 登录 | ✓ | `getGuidePendingPlans` |
|
|
|
+
|
|
|
+### pages/teacher/plan-list (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/training-plans/list` | 登录 | | `getTrainingPlanList` |
|
|
|
+
|
|
|
+### pages/teacher/review-family (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/families//:var/children//:var/pending-review` | 登录 | ✓ | `getGuideChildPendingTasks` |
|
|
|
+| POST | `/api/guide/families//:var/members` | 登录 | ✓ | `getGuideFamilyMembers` |
|
|
|
+| POST | `/api/guide/families//:var/plans/pending` | 登录 | ✓ | `getGuidePendingPlans` |
|
|
|
+| POST | `/api/guide/families//:var/tasks//:var/review` | 登录 | ✓ | `reviewGuideTask` |
|
|
|
+| POST | `/api/tasks//:var/review` | 登录 | ✓ | `reviewTask` |
|
|
|
+
|
|
|
+### pages/teacher/review-workbench (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/families/my-families` | 登录 | | `getGuideMyFamilies` |
|
|
|
+
|
|
|
+### pages/teacher/service-tasks (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/tasks//:var/complete` | 登录 | ✓ | `completeTask` |
|
|
|
+
|
|
|
+### pages/teacher/teacher-profile (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/parent-invite/generate` | 登录 | | `generateParentInvite` |
|
|
|
+| POST | `/api/user/switch-role` | 登录 | | `switchRole` |
|
|
|
+
|
|
|
+### pages/teacher/team (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/guide/invite-code/generate` | 公开 | | `generateInviteCode` |
|
|
|
+| POST | `/api/guide/team/invite-code/generate` | 登录 | | `generateTeamInviteCode` |
|
|
|
+| POST | `/api/guide/team/members` | 登录 | | `getTeamMembers` |
|
|
|
+| POST | `/api/guide/team/stats` | 登录 | | `getTeamStats` |
|
|
|
+
|
|
|
+### pages/user-edit/user-edit (6 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/direct-register` | 公开 | | `directRegister` |
|
|
|
+| POST | `/api/family/invite/request-join-by-code` | 公开 | | `requestJoinByCode` |
|
|
|
+| POST | `/api/family/user/create-family` | 登录 | | `createFamily` |
|
|
|
+| POST | `/api/membership/my` | 登录 | | `getMyMembership` |
|
|
|
+| POST | `/api/user/info` | 登录 | | `getUserInfo` |
|
|
|
+| POST | `/api/user/update` | 登录 | | `updateUserInfo` |
|
|
|
+
|
|
|
+### pages/vendor/apply (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/vendor/apply` | 登录 | | `vendorApply` |
|
|
|
+
|
|
|
+### pages/vendor/center (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/vendor/info` | 公开 | | `vendorInfo` |
|
|
|
+| POST | `/api/vendor/status` | 公开 | | `vendorStatus` |
|
|
|
+
|
|
|
+### pages/vendor/order-review/order-review (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/product/order/detail` | 公开 | | `productOrderDetail` |
|
|
|
+| POST | `/api/product/order/review/update` | 公开 | | `productOrderReviewUpdate` |
|
|
|
+
|
|
|
+### pages/vendor/orders/orders (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/product/order/confirm` | 公开 | | `productOrderConfirm` |
|
|
|
+| POST | `/api/product/order/vendor` | 公开 | | `productOrderVendor` |
|
|
|
+
|
|
|
+### pages/vendor/product-edit/product-edit (3 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/product/create` | 公开 | | `productCreate` |
|
|
|
+| POST | `/api/product/detail` | 公开 | | `productDetail` |
|
|
|
+| POST | `/api/product/update` | 公开 | | `productUpdate` |
|
|
|
+
|
|
|
+### pages/vendor/products/products (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/product/my` | 公开 | | `productMy` |
|
|
|
+| POST | `/api/product/shelve` | 公开 | | `productShelve` |
|
|
|
+
|
|
|
+### pages/vendor/team-customers/team-customers (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/admin/supply-team/customers` | 登录 | | `getTeamCustomers` |
|
|
|
+
|
|
|
+### pages/vendor/team-system/team-system (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/admin/supply-hierarchy/my` | 登录 | | `getVendorHierarchyInfo` |
|
|
|
+| POST | `/api/admin/supply-system/my-system` | 登录 | | `getVendorSystemInfo` |
|
|
|
+| POST | `/api/admin/supply-team/customers` | 登录 | | `getVendorTeamCustomers` |
|
|
|
+| POST | `/api/admin/supply-team/members` | 登录 | | `getVendorTeamMembers` |
|
|
|
+
|
|
|
+### pages/wealth-cf/index (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| GET | `/api/cf/balance` | 登录 | | `getCfBalance` |
|
|
|
+| GET | `/api/cf/family-coupons` | 登录 | | `getFamilyCoupons` |
|
|
|
+| GET | `/api/cf/logs` | 登录 | | `getCfLogs` |
|
|
|
+| POST | `/api/coupon/exchangeable` | 登录 | | `getExchangeableCoupons` |
|
|
|
+| POST | `/api/family-platform/exchange-coupon` | 登录 | | `exchangeCouponByCf` |
|
|
|
+
|
|
|
+### pages/wealth-detail/member-wealth-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+
|
|
|
+### pages/wealth-sub/checkin (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/wealth/checkin/create` | 登录 | | `createCheckin` |
|
|
|
+| POST | `/api/wealth/checkin/delete` | 登录 | | `deleteCheckin` |
|
|
|
+| POST | `/api/wealth/checkin/list` | 登录 | | `getCheckinList` |
|
|
|
+| POST | `/api/wealth/checkin/stats` | 登录 | | `getCheckinStats` |
|
|
|
+
|
|
|
+### pages/wealth-sub/insurance-add (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/wealth/insurance/create` | 公开 | | `createInsurance` |
|
|
|
+| POST | `/api/wealth/insurance/detail` | 公开 | | `getInsuranceDetail` |
|
|
|
+| POST | `/api/wealth/insurance/update` | 公开 | | `updateInsurance` |
|
|
|
+| POST | `/api/wealth/insurance/upload` | 公开 | | `uploadPolicy` |
|
|
|
+
|
|
|
+### pages/wealth-sub/insurance-list (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/wealth/insurance/delete` | 公开 | | `deleteInsurance` |
|
|
|
+| POST | `/api/wealth/insurance/list` | 公开 | | `getInsuranceList` |
|
|
|
+
|
|
|
+### pages/wealth-sub/insurance-planning (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/insurance/planning` | 登录 | | `getInsurancePlanning` |
|
|
|
+
|
|
|
+### pages/wealth/index (12 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/badges/statistics/member` | 登录 | | `getChildBadgeStats` |
|
|
|
+| POST | `/api/commission/summary` | 登录 | | `getCommissionSummary` |
|
|
|
+| POST | `/api/daily-task/overview` | 登录 | | `getDailyTaskOverview` |
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+| POST | `/api/energy/wealth-detail` | 登录 | | `getWealthDetail` |
|
|
|
+| POST | `/api/family/member/kick` | 登录 | | `kickFamilyMemberById` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/invite/summary` | 登录 | | `getReferralSummary` |
|
|
|
+| POST | `/api/product/list` | 公开 | | `productList` |
|
|
|
+| POST | `/api/wealth/insurance/list` | 公开 | | `getInsuranceList` |
|
|
|
+
|
|
|
+### pages/wisdom-detail/cognitive-report (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/assessment/latest-result` | 登录 | | `getAssessmentLatestResult` |
|
|
|
+| POST | `/api/cognitive/norms` | 登录 | | `getCognitiveNorms` |
|
|
|
+| POST | `/api/cognitive/recommendations` | 登录 | | `getCognitiveRecommendations` |
|
|
|
+| POST | `/api/cognitive/recommendations/create-task` | 登录 | | `createTaskFromRecommendation` |
|
|
|
+| POST | `/api/cognitive/trend` | 登录 | | `getCognitiveTrend` |
|
|
|
+
|
|
|
+### pages/wisdom-detail/index (8 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/assessment/latest-result` | 登录 | | `getAssessmentLatestResult` |
|
|
|
+| POST | `/api/content-sections/visible` | 登录 | | `getVisibleSections` |
|
|
|
+| POST | `/api/dan-assessment/report/child` | 登录 | | `getDanReportByChild` |
|
|
|
+| POST | `/api/dimension/radar-data` | 登录 | | `getRadarData` |
|
|
|
+| POST | `/api/family/member/kick` | 登录 | | `kickFamilyMemberById` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/health/indicators` | 登录 | | `getLatestIndicators` |
|
|
|
+| POST | `/api/wisdom/gut-cognition` | 登录 | | `getGutCognitionIndicators` |
|
|
|
+
|
|
|
+### pages/wisdom-detail/member-wisdom-detail (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/energy/overview` | 登录 | | `getEnergyOverview` |
|
|
|
+| POST | `/api/energy/sandbox` | 登录 | | `getFamilyEnergySandbox` |
|
|
|
+
|
|
|
+### pages/wishes/create (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/wishes/create` | 登录 | | `createWish` |
|
|
|
+
|
|
|
+### pages/wishes/detail (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/points/balance` | 登录 | | `getPointsBalance` |
|
|
|
+| POST | `/api/wishes//:var` | 登录 | ✓ | `cancelWish` |
|
|
|
+| POST | `/api/wishes//:var` | 登录 | ✓ | `getWishById` |
|
|
|
+| POST | `/api/wishes//:var/confirm` | 登录 | ✓ | `confirmWishReceived` |
|
|
|
+| POST | `/api/wishes//:var/exchange` | 登录 | ✓ | `requestWishExchange` |
|
|
|
+
|
|
|
+### pages/wishes/index (7 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/home/app/enter` | 登录 | | `reportAppEnter` |
|
|
|
+| POST | `/api/points/balance` | 登录 | | `getPointsBalance` |
|
|
|
+| POST | `/api/wishes//:var` | 登录 | ✓ | `cancelWish` |
|
|
|
+| POST | `/api/wishes//:var/confirm` | 登录 | ✓ | `confirmWishReceived` |
|
|
|
+| POST | `/api/wishes//:var/exchange` | 登录 | ✓ | `requestWishExchange` |
|
|
|
+| POST | `/api/wishes/create` | 登录 | | `createWish` |
|
|
|
+| POST | `/api/wishes/list` | 登录 | | `getWishes` |
|
|
|
+
|
|
|
+### store/health-alert (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/alert/dismiss` | 登录 | | `dismissAlert` |
|
|
|
+| POST | `/api/health/alert/list` | 登录 | | `getActiveAlerts` |
|
|
|
+
|
|
|
+### store/health-score (2 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/health/score/info` | 登录 | | `getHealthScoreInfo` |
|
|
|
+| POST | `/api/health/timeline/list` | 登录 | | `getHealthTimeline` |
|
|
|
+
|
|
|
+### store/index (4 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/family/user/switch-back-verify` | 登录 | | `switchBackVerify` |
|
|
|
+| POST | `/api/user/switch-back-to-parent` | 登录 | | `switchBackToParent` |
|
|
|
+| POST | `/api/user/switch-role` | 登录 | | `switchRole` |
|
|
|
+| POST | `/api/user/switch-to-child` | 登录 | | `switchToChild` |
|
|
|
+
|
|
|
+### store/modules/tianpan (5 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/tianpan/annual-energy` | 公开 | | `tianpanAnnualEnergy` |
|
|
|
+| POST | `/api/tianpan/daily-fortune` | 公开 | | `tianpanDailyFortune` |
|
|
|
+| POST | `/api/tianpan/dashboard` | 公开 | | `tianpanDashboard` |
|
|
|
+| POST | `/api/tianpan/member/'/:var, 'POST', data)
|
|
|
+}
|
|
|
+
|
|
|
+export const tianpanCompatibility = (data) => {
|
|
|
+ return request('/api/tianpan/compatibility` | 公开 | ✓ | `tianpanMemberDetail` |
|
|
|
+| POST | `/api/tianpan/related-items` | 公开 | | `tianpanRelatedItems` |
|
|
|
+
|
|
|
+### utils/api (38 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/admin/activity/list` | 公开 | | `adminListMyActivities` |
|
|
|
+| POST | `/api/admin/task-templates` | 登录 | | `getNodeTemplateList` |
|
|
|
+| POST | `/api/admin/task/reminder-config/get?userId='/:var, 'POST', {})
|
|
|
+}
|
|
|
+
|
|
|
+export function saveReminderConfigByUser(data) {
|
|
|
+ return request('/api/admin/task/reminder-config/save` | 登录 | ✓ | `getReminderConfigByUser` |
|
|
|
+| POST | `/api/auth/silent-login` | 公开 | | `silentLogin` |
|
|
|
+| POST | `/api/badges/member/list` | 登录 | | `getChildBadges` |
|
|
|
+| POST | `/api/butler/available-list` | 公开 | | `getAvailableButlers` |
|
|
|
+| POST | `/api/butler/my-butler` | 公开 | | `getMyButler` |
|
|
|
+| POST | `/api/butler/select` | 公开 | | `selectButler` |
|
|
|
+| POST | `/api/dan-assessment/order/pay` | 登录 | | `payAssessmentOrder` |
|
|
|
+| POST | `/api/family/invite/approve-request` | 公开 | | `approveJoinRequest` |
|
|
|
+| POST | `/api/family/invite/my-request` | 公开 | | `getMyJoinRequest` |
|
|
|
+| POST | `/api/family/invite/pending-requests` | 公开 | | `getPendingJoinRequests` |
|
|
|
+| POST | `/api/family/invite/reject-request` | 公开 | | `rejectJoinRequest` |
|
|
|
+| POST | `/api/family/member/list` | 登录 | | `getFamilyMemberList` |
|
|
|
+| POST | `/api/family/user/create-family` | 登录 | | `createFamily` |
|
|
|
+| POST | `/api/internal/virtual-pay/error-report` | 登录 | | `reportVirtualPayError` |
|
|
|
+| POST | `/api/invite/bind` | 登录 | | `bindReferral` |
|
|
|
+| POST | `/api/invite/code` | 登录 | | `getReferralCode` |
|
|
|
+| POST | `/api/orchestration/execution/detail` | 登录 | | `getOrchestrationExecutionDetail` |
|
|
|
+| POST | `/api/orchestration/execution/start` | 登录 | | `startOrchestrationExecution` |
|
|
|
+| POST | `/api/orchestration/execution/terminate` | 登录 | | `terminateOrchestrationExecution` |
|
|
|
+| POST | `/api/orchestration/flow/archive` | 登录 | | `archiveOrchestrationFlow` |
|
|
|
+| POST | `/api/orchestration/flow/delete` | 登录 | | `deleteOrchestrationFlow` |
|
|
|
+| POST | `/api/orchestration/flow/detail` | 登录 | | `getOrchestrationFlowDetail` |
|
|
|
+| POST | `/api/orchestration/flow/list` | 登录 | | `getOrchestrationFlowList` |
|
|
|
+| POST | `/api/orchestration/flow/publish` | 登录 | | `publishOrchestrationFlow` |
|
|
|
+| POST | `/api/orchestration/flow/save` | 登录 | | `saveOrchestrationFlow` |
|
|
|
+| POST | `/api/product/list` | 公开 | | `productList` |
|
|
|
+| POST | `/api/profile/history` | 登录 | | `getProfileTrend` |
|
|
|
+| POST | `/api/profile/my` | 登录 | | `getMyProfile` |
|
|
|
+| POST | `/api/purchase/challenge/progress` | 登录 | | `getChallengeProgress` |
|
|
|
+| POST | `/api/recommend/list` | 登录 | | `getRecommendList` |
|
|
|
+| POST | `/api/stats/child/overview` | 登录 | | `getChildOverview` |
|
|
|
+| POST | `/api/tasks/history` | 登录 | | `getTaskHistory` |
|
|
|
+| POST | `/api/user/portrait/edit` | 登录 | | `editPortrait` |
|
|
|
+| POST | `/api/user/portrait/generate` | 登录 | | `generatePortrait` |
|
|
|
+| POST | `/api/user/portrait/get` | 登录 | | `getPortrait` |
|
|
|
+| POST | `/api/user/portrait/regenerate` | 登录 | | `regeneratePortrait` |
|
|
|
+
|
|
|
+### utils/profile-backfill (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/user/profile/backfill` | 登录 | | `backfillProfile` |
|
|
|
+
|
|
|
+### utils/sso (1 个接口)
|
|
|
+
|
|
|
+| 方法 | 路径 | 鉴权 | 参数 | 来源函数 |
|
|
|
+|------|------|:----:|:----:|----------|
|
|
|
+| POST | `/api/auth/sso-ticket` | 公开 | | `createSsoTicket` |
|