- 新增 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>
27 lines
537 B
TypeScript
27 lines
537 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
|
|
*/
|
|
import type { LocalTime } from './localTime';
|
|
|
|
/**
|
|
* Lesson Update Request
|
|
*/
|
|
export interface LessonUpdateRequest {
|
|
/** Lesson title */
|
|
title?: string;
|
|
/** Lesson date */
|
|
lessonDate?: string;
|
|
startTime?: LocalTime;
|
|
endTime?: LocalTime;
|
|
/** Location */
|
|
location?: string;
|
|
/** Status */
|
|
status?: string;
|
|
/** Notes */
|
|
notes?: string;
|
|
}
|