From f3c775cea920aced134b86933f4f830dc0d6cbe6 Mon Sep 17 00:00:00 2001 From: liuyun Date: Wed, 14 Oct 2026 16:57:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(c1):=20elder=20=E6=9D=83=E9=99=90=E7=A0=81?= =?UTF-8?q?/=E9=94=99=E8=AF=AF=E7=A0=81/=E6=8E=A5=E5=8F=A3=E8=B5=84?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/common/error-codes.ts | 5 +++++ src/common/tenant-template.ts | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/common/error-codes.ts b/src/common/error-codes.ts index ed19f36..5284820 100644 --- a/src/common/error-codes.ts +++ b/src/common/error-codes.ts @@ -39,6 +39,11 @@ export const ErrorCodes = { SVC_LOC_NOT_FOUND: 42001, SVC_ORG_NOT_FOUND: 42002, SVC_LOC_IMMUTABLE: 42003, + // 服务机构端·老人档案(43) + ELDER_NOT_FOUND: 43001, + ELDER_ID_CARD_EXISTS: 43002, + ELDER_STATUS_REASON_REQUIRED: 43003, + ELDER_LEVEL_REQUIRES_EVIDENCE: 43004, } as const; export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes]; diff --git a/src/common/tenant-template.ts b/src/common/tenant-template.ts index 7f0965a..dcbd926 100644 --- a/src/common/tenant-template.ts +++ b/src/common/tenant-template.ts @@ -91,6 +91,13 @@ export const APIS: { code: string; name: string; method: string; path: string; p { code: Permissions.svcOrg.list, name: '机构项目列表', method: 'GET', path: '/api/v1/svc/org/list', parent: 'svc-config-catalog' }, { code: Permissions.svcOrg.config, name: '机构项目配置', method: 'POST', path: '/api/v1/svc/org/config', parent: 'svc-config-catalog' }, { code: Permissions.svcOrg.newNational, name: '国家新增项', method: 'GET', path: '/api/v1/svc/org/new-national', parent: 'svc-config-loc' }, + // 服务机构端·老人档案(C1) + { code: Permissions.elder.list, name: '老人列表', method: 'GET', path: '/api/v1/elder', parent: 'elder' }, + { code: Permissions.elder.create, name: '创建老人', method: 'POST', path: '/api/v1/elder', parent: 'elder' }, + { code: Permissions.elder.detail, name: '老人详情', method: 'GET', path: '/api/v1/elder/:id', parent: 'elder' }, + { code: Permissions.elder.statusChange, name: '变更待遇状态', method: 'POST', path: '/api/v1/elder/:id/status', parent: 'elder' }, + { code: Permissions.elder.detail, name: '状态日志', method: 'GET', path: '/api/v1/elder/:id/status/log', parent: 'elder' }, + { code: Permissions.elder.create, name: '上传评估结论', method: 'POST', path: '/api/v1/elder/assess-evidence', parent: 'elder' }, ]; /** 按钮资源(纯前端按钮,无独立受控接口)。 */