40 lines
1.5 KiB
Go
40 lines
1.5 KiB
Go
package consts
|
|
|
|
import (
|
|
"hotgo/internal/library/dict"
|
|
"hotgo/internal/model"
|
|
)
|
|
|
|
func init() {
|
|
dict.RegisterEnums("ImNotificationSceneOptions", "IM通知场景选项", ImNotificationSceneOptions)
|
|
dict.RegisterEnums("ImNotificationTemplateStatusOptions", "IM通知模板状态选项", ImNotificationTemplateStatusOptions)
|
|
}
|
|
|
|
const (
|
|
ImNotificationSceneAccountSecurity = "account_security"
|
|
ImNotificationSceneFriendRequest = "friend_request"
|
|
ImNotificationSceneGroupEvent = "group_event"
|
|
ImNotificationSceneFileEvent = "file_event"
|
|
ImNotificationSceneMeetingReminder = "meeting_reminder"
|
|
ImNotificationSceneReportReminder = "report_reminder"
|
|
ImNotificationSceneWorkOrder = "work_order"
|
|
|
|
ImNotificationTemplateEnabled = 1
|
|
ImNotificationTemplateDisabled = 0
|
|
)
|
|
|
|
var ImNotificationSceneOptions = []*model.Option{
|
|
dict.GenPrimaryOption(ImNotificationSceneAccountSecurity, "账号安全"),
|
|
dict.GenInfoOption(ImNotificationSceneFriendRequest, "好友申请"),
|
|
dict.GenInfoOption(ImNotificationSceneGroupEvent, "群事件"),
|
|
dict.GenDefaultOption(ImNotificationSceneFileEvent, "文件事件"),
|
|
dict.GenWarningOption(ImNotificationSceneMeetingReminder, "会议提醒"),
|
|
dict.GenWarningOption(ImNotificationSceneReportReminder, "日报月报提醒"),
|
|
dict.GenErrorOption(ImNotificationSceneWorkOrder, "工单处理"),
|
|
}
|
|
|
|
var ImNotificationTemplateStatusOptions = []*model.Option{
|
|
dict.GenSuccessOption(ImNotificationTemplateEnabled, "启用"),
|
|
dict.GenWarningOption(ImNotificationTemplateDisabled, "禁用"),
|
|
}
|