diff --git a/src/domain/notifyTypes.ts b/src/domain/notifyTypes.ts new file mode 100644 index 0000000..8d1396f --- /dev/null +++ b/src/domain/notifyTypes.ts @@ -0,0 +1,28 @@ +/** Business notify_type strings — kept in app layer (not @authcore/commons). Align with huike-back raw_notify handlers. */ + +export enum NotifyTypes { + TeacherRegister = 'teacher_register', + StudentRegister = 'student_register', + RejectRegister = 'reject_register', + StudentRegisterApproved = 'student_register_success', + TeacherRegisterApproved = 'teacher_register_success', + TeacherCommentPiyue = 'teacher_comment_piyue', + StudentCommentPiyue = 'student_comment_piyue', + JihuaCreate = 'create_jihua', + JihuaUpdate = 'update_jihua', + JihuaDelete = 'delete_jihua', + LianxiCreate = 'create_lianxi', + LianxiDelete = 'delete_lianxi', + PiyueCreate = 'create_piyue', + TeacherCommentJihua = 'teacher_comment_jihua', + StudentCommentJihua = 'student_comment_jihua', + TeacherCommentDaka = 'teacher_comment_daka', + StudentCommentDaka = 'student_comment_daka', + DakaCreate = 'create_daka', + DakaUpdate = 'update_daka', + DakaDelete = 'delete_daka', + ResourceNoteGroupCreate = 'create_resource_note_group', + ClazzCreateOrUpdate = 'create_or_update_clazz', + ClazzDelete = 'delete_clazz', + TeacherCommentClazz = 'teacher_comment_clazz', +} diff --git a/src/types.ts b/src/types.ts index 89680a9..a38c8b0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -37,13 +37,14 @@ export { HtyBaseRoles, HtySuperRoles, TongzhiStatuses, - NotifyTypes, TaskFrom, TaskStatuses, TaskTypes, GroupTypes, } from '@authcore/commons'; +export { NotifyTypes } from './domain/notifyTypes'; + export type { TeacherInfo, StudentInfo } from '@authcore/commons'; export interface HtyUser extends CommonsHtyUser {