feat: 完善学生生命周期管理与权限范围并发布 1.4.2
This commit is contained in:
1 parent
6347d1e5aa
commit
24e8dd902b
92 files changed
+6801
-2255
No files matched your search
@@ -2,14 +2,6 @@ import { z } from 'zod';
|
||||
import { currentAcademicYearStart, graduationYearOf } from '@classhelper/shared';
|
||||
import { enrollmentYearSchema } from '../../lib/schemas.js';
|
||||
|
||||
/** 执行毕业归档:按**届别**(入学年份)把整届班级与学生归档 */
|
||||
export const createArchiveSchema = z.object({
|
||||
enrollmentYear: enrollmentYearSchema,
|
||||
/** 毕业年份;留空 = 入学年份 + 默认学制(3 年) */
|
||||
graduationYear: z.coerce.number().int().min(2000).max(2200).optional(),
|
||||
note: z.string().trim().max(200).optional(),
|
||||
});
|
||||
|
||||
/** 届别列表的查询参数 */
|
||||
export const listArchivesQuerySchema = z.object({
|
||||
/** 只看某一届 */
|
||||
|
||||
Reference in new issue
Block a user