You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
332 B

from enum import Enum
from collections import namedtuple
ModuleItem = namedtuple('ModuleItem', ('id', 'name', 'rank', 'options'))
class Module(Enum):
USER = ModuleItem(1001, '用户管理', 1, {'下载': 1, '编辑': 9})
ROLE = ModuleItem(1002, '角色管理', 2, {})
TEMPLATE = ModuleItem(1003, '模板管理', 3, {})