Files
Django/jituan/constants.py

28 lines
813 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""集团多俱乐部常量。"""
CLUB_ID_DEFAULT = 'xq'
CLUB_HEADER = 'X-Club-Id'
CLUB_SCOPE_HEADER = 'X-Club-Scope'
DATA_SCOPE_ALL = 'ALL_CLUBS'
DATA_SCOPE_SINGLE = 'SINGLE_CLUB'
# 管理任职角色码(数据范围 / 集团 vs 子公司)
ADMIN_ROLE_LABELS = {
'GROUP_OWNER': '集团总负责人',
'GROUP_SUPER_ADMIN': '集团超管',
'GROUP_AFTER_SALES': '集团售后',
'GROUP_FINANCE': '集团财务',
'GROUP_CONFIG': '集团配置',
'CLUB_OWNER': '俱乐部总负责人',
'CLUB_ADMIN': '俱乐部管理员',
'CLUB_AFTER_SALES': '俱乐部售后',
'CLUB_FINANCE': '俱乐部财务',
'CLUB_OPERATOR': '俱乐部运营',
}
# 功能权限仍走 gvsdsdk Permission.perm_code如 caiwu、dingdan、000001
ADMIN_SCOPE_GROUP = 'GROUP'
ADMIN_SCOPE_CLUB = 'CLUB'