"""投诉工单常量。"""

# 投诉类型
TYPE_ORDER = 1          # 订单投诉（需订单 OrderID）
TYPE_RECHARGE = 2       # 充值投诉（需 Czjilu.dingdan_id）
TYPE_PENALTY = 3        # 罚款投诉（需罚单 Penalty.id）
TYPE_GUANSHI = 4        # 管事投诉
TYPE_FRAUD = 5          # 被骗投诉

TYPE_CHOICES = (
    (TYPE_ORDER, '订单投诉'),
    (TYPE_RECHARGE, '充值投诉'),
    (TYPE_PENALTY, '罚款投诉'),
    (TYPE_GUANSHI, '管事投诉'),
    (TYPE_FRAUD, '被骗投诉'),
)

TYPE_LABELS = dict(TYPE_CHOICES)

# 状态：1处理中 2已处理 3不满意（可升级）4已关闭
STATUS_PROCESSING = 1
STATUS_DONE = 2
STATUS_DISSATISFIED = 3
STATUS_CLOSED = 4

STATUS_CHOICES = (
    (STATUS_PROCESSING, '处理中'),
    (STATUS_DONE, '已处理'),
    (STATUS_DISSATISFIED, '不满意'),
    (STATUS_CLOSED, '已关闭'),
)

STATUS_LABELS = dict(STATUS_CHOICES)

MAX_IMAGES = 9
MAX_SHUOMING_LEN = 500
MAX_SHENGJI_TIMES = 5
OSS_PREFIX = 'gongdan'

# 权限码
PERM_VIEW = 'gdck666'      # 查看工单
PERM_HANDLE = 'gdcl666'    # 处理工单
