review:主子表的示例代码

This commit is contained in:
YunaiV
2025-04-19 11:57:38 +08:00
parent 7622e9a666
commit 4ccda9a5a1
9 changed files with 29 additions and 28 deletions

View File

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