chore: export NotifyTypes from src/domain/notifyTypes

Made-with: Cursor
This commit is contained in:
2026-04-24 09:17:36 +08:00
parent d661413a53
commit 7d4170913b
2 changed files with 30 additions and 1 deletions
+28
View File
@@ -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',
}
+2 -1
View File
@@ -37,13 +37,14 @@ export {
HtyBaseRoles, HtyBaseRoles,
HtySuperRoles, HtySuperRoles,
TongzhiStatuses, TongzhiStatuses,
NotifyTypes,
TaskFrom, TaskFrom,
TaskStatuses, TaskStatuses,
TaskTypes, TaskTypes,
GroupTypes, GroupTypes,
} from '@authcore/commons'; } from '@authcore/commons';
export { NotifyTypes } from './domain/notifyTypes';
export type { TeacherInfo, StudentInfo } from '@authcore/commons'; export type { TeacherInfo, StudentInfo } from '@authcore/commons';
export interface HtyUser extends CommonsHtyUser { export interface HtyUser extends CommonsHtyUser {