You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
887 B
Python
41 lines
887 B
Python
from enum import StrEnum
|
|
|
|
|
|
class UserEvents(StrEnum):
|
|
"""用户事件。"""
|
|
|
|
USER_UPDATED = "user.updated"
|
|
USER_DELETED = "user.deleted"
|
|
USER_LOGGED_IN = "user.logged_in"
|
|
USER_LOGOUT = "user.logout"
|
|
USER_AUTH_REFRESHED = "user.auth.refreshed"
|
|
USER_REGISTERED = "user.registered"
|
|
USER_PASSWORD_UPDATED = "user.password.updated"
|
|
|
|
|
|
class UserRelEvents(StrEnum):
|
|
"""用户关联关系事件。"""
|
|
|
|
USER_ROLES_UPDATED = "user.roles.updated"
|
|
USER_DEPTS_UPDATED = "user.depts.updated"
|
|
|
|
|
|
class RoleEvents(StrEnum):
|
|
"""角色事件。"""
|
|
|
|
ROLE_UPDATED = "role.updated"
|
|
ROLE_DELETED = "role.deleted"
|
|
|
|
|
|
class RoleRelEvents(StrEnum):
|
|
"""角色关联关系事件。"""
|
|
|
|
ROLE_MENUS_UPDATED = "role.menus.updated"
|
|
|
|
|
|
class MenuEvents(StrEnum):
|
|
"""菜单事件。"""
|
|
|
|
MENU_UPDATED = "menu.updated"
|
|
MENU_DELETED = "menu.deleted"
|