- 新增 orval.config.ts:从 OpenAPI spec 自动生成 TypeScript 代码 - 新增 src/api/request.ts:orval mutator,复用现有 axios 实例 - 新增 src/api/generated/:自动生成的 API 函数和类型定义(106个接口,155个类型) - 新增 api-spec.json:后端 OpenAPI 规范快照 - package.json 新增脚本:api:fetch / api:gen / api:update Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
477 B
TypeScript
24 lines
477 B
TypeScript
/**
|
|
* Generated by orval v7.13.2 🍺
|
|
* Do not edit manually.
|
|
* Reading Platform API
|
|
* Reading Platform Backend Service API Documentation
|
|
* OpenAPI spec version: 1.0.0
|
|
*/
|
|
|
|
export interface Notification {
|
|
id?: number;
|
|
tenantId?: number;
|
|
title?: string;
|
|
content?: string;
|
|
type?: string;
|
|
senderId?: number;
|
|
senderRole?: string;
|
|
recipientType?: string;
|
|
recipientId?: number;
|
|
isRead?: number;
|
|
readAt?: string;
|
|
createdAt?: string;
|
|
deleted?: number;
|
|
}
|