Files
RawMark/web/tests/api-response.ts
T
eezd 6b537c03e0 refactor(web): align resource APIs and forms with the starter conventions
Centralize typed resource functions under common/apis and return complete JSON envelopes while preserving raw responses, bearer session isolation, and single-owner errors.

Keep settings state and queues inside the setup store. Use Element Plus forms and dialogs for login, settings, imports, moves, and images; preserve editor interactions and themes. Update callers, tests, generated declarations, and request import constraints together.
2026-10-26 11:53:37 +08:00

5 lines
153 B
TypeScript

/** 测试用真实 JSON 响应外壳。 */
export function apiSuccess<T>(data: T): ApiResponseData<T> {
return { code: 0, data, message: '成功' }
}