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.
7 lines
182 B
TypeScript
7 lines
182 B
TypeScript
/** 普通 JSON 接口的统一响应;文件、下载、事件与 204 使用各自的 HTTP 语义。 */
|
|
interface ApiResponseData<T> {
|
|
code: number
|
|
data: T
|
|
message: string
|
|
}
|