refactor: adapt to api changes of web service

This commit is contained in:
2025-11-12 11:35:31 +08:00
parent 86ad54cccb
commit c61a106373
4 changed files with 37 additions and 6 deletions

View File

@@ -10,8 +10,11 @@ export const API_CONFIG = {
// API 端点
export const API_ENDPOINTS = {
INPUT: '/input',
INPUT_IMAGE: '/input_image',
INPUT: '/recognition/input',
INPUT_IMAGE: '/recognition/image',
// 人员列表查询仍为 /peoples
PEOPLES: '/peoples',
PEOPLE_BY_ID: (id: string) => `/peoples/${id}`,
// 新增单个资源路径 /people
PEOPLE: '/people',
PEOPLE_BY_ID: (id: string) => `/people/${id}`,
} as const;