refactor: 重新生成单表代码生成预览

This commit is contained in:
puhui999
2025-04-22 14:57:11 +08:00
parent 062111502f
commit 6ca22ff155
4 changed files with 19 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ export namespace Demo03StudentApi {
name?: string; // 名字
score?: number; // 分数
}
// TODO @puhui999要不要每个 interface 之间,有个空行
/** 学生班级信息 */
export interface Demo03Grade {
id: number; // 编号
@@ -18,6 +18,7 @@ export namespace Demo03StudentApi {
name?: string; // 名字
teacher?: string; // 班主任
}
/** 学生信息 */
export interface Demo03Student {
id: number; // 编号
@@ -61,7 +62,7 @@ export function exportDemo03Student(params: any) {
}
// ==================== 子表(学生课程) ====================
// TODO @puhui999==================== 后面,加个空行,会更清晰一点
/** 获得学生课程列表 */
export function getDemo03CourseListByStudentId(studentId: number) {
return requestClient.get<Demo03StudentApi.Demo03Course[]>(
@@ -70,6 +71,7 @@ export function getDemo03CourseListByStudentId(studentId: number) {
}
// ==================== 子表(学生班级) ====================
/** 获得学生班级 */
export function getDemo03GradeByStudentId(studentId: number) {
return requestClient.get<Demo03StudentApi.Demo03Grade>(