!78 refactor: 代码生成预览优化

Merge pull request !78 from puhui999/v-next
This commit is contained in:
芋道源码
2025-04-22 13:18:51 +00:00
committed by Gitee
12 changed files with 120 additions and 150 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>(