feat(c1): elder 权限码/错误码/接口资源
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b83c59611c
commit
f3c775cea9
@ -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];
|
||||
|
||||
@ -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' },
|
||||
];
|
||||
|
||||
/** 按钮资源(纯前端按钮,无独立受控接口)。 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user