feat: add IM org and notification admin
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package consts
|
||||
|
||||
import (
|
||||
"hotgo/internal/library/dict"
|
||||
"hotgo/internal/model"
|
||||
)
|
||||
|
||||
func init() {
|
||||
dict.RegisterEnums("ImOrgDepartmentStateOptions", "IM组织部门状态选项", ImOrgDepartmentStateOptions)
|
||||
dict.RegisterEnums("ImOrgEmploymentStateOptions", "IM组织成员在职状态选项", ImOrgEmploymentStateOptions)
|
||||
dict.RegisterEnums("ImOrgContactableOptions", "IM组织成员可联系选项", ImOrgContactableOptions)
|
||||
}
|
||||
|
||||
const (
|
||||
ImOrgDepartmentStateActive = "active"
|
||||
ImOrgDepartmentStateDisabled = "disabled"
|
||||
|
||||
ImOrgEmploymentStateActive = "active"
|
||||
ImOrgEmploymentStateLeft = "left"
|
||||
|
||||
ImOrgContactableYes = 1
|
||||
ImOrgContactableNo = 0
|
||||
)
|
||||
|
||||
var ImOrgDepartmentStateOptions = []*model.Option{
|
||||
dict.GenSuccessOption(ImOrgDepartmentStateActive, "启用"),
|
||||
dict.GenWarningOption(ImOrgDepartmentStateDisabled, "停用"),
|
||||
}
|
||||
|
||||
var ImOrgEmploymentStateOptions = []*model.Option{
|
||||
dict.GenSuccessOption(ImOrgEmploymentStateActive, "在职"),
|
||||
dict.GenDefaultOption(ImOrgEmploymentStateLeft, "离职"),
|
||||
}
|
||||
|
||||
var ImOrgContactableOptions = []*model.Option{
|
||||
dict.GenSuccessOption(ImOrgContactableYes, "可联系"),
|
||||
dict.GenWarningOption(ImOrgContactableNo, "不可联系"),
|
||||
}
|
||||
Reference in New Issue
Block a user