
# 登陆后存储在session中的用户
LOGIN_SESSION_ID = 'user_id'


"""系统模块-轮播图设置"""
SLIDER_TYPE_INDEX = 11

SLIDER_TYPES_CHOICES = (
    (SLIDER_TYPE_INDEX, '首页'),    # 需要加逗号，必须是元组
)


"""系统模块-新闻通知"""
NEWS_TYPE_NEW = 11
NEWS_TYPE_NOTICE = 12

NEWS_TYPE_CHOICE = (
    (NEWS_TYPE_NEW,'新闻'),
    (NEWS_TYPE_NOTICE,'通知'),
)


"""商品模块-商品类型"""
PRODUCT_TYPE_ACTUAL = 11
PRODUCT_TYPE_VIRTUAL = 12

PRODUCT_TYPE_CHOICES = (
    (PRODUCT_TYPE_ACTUAL,'实物商品'),
    (PRODUCT_TYPE_VIRTUAL,'虚拟商品'),
)


"""商品模块-商品状态"""
PRODUCT_STATUS_SELL = 11
PRODUCT_STATUS_LOST = 12
PRODUCT_STATUS_OFF = 13
PRODUCT_STATUS_CHOICES = (
    (PRODUCT_STATUS_SELL,'销售中'),
    (PRODUCT_STATUS_LOST,'已售完'),
    (PRODUCT_STATUS_OFF,'已下架'),
)

"""商品模块-订单状态"""
ORDER_STATUS_INIT = 10
ORDER_STATUS_SUBMIT = 11
ORDER_STATUS_PAIED = 12
ORDER_STATUS_SENT = 13
ORDER_STATUS_DONE = 14
ORDER_STATUS_DELETED = 15
ORDER_STATUS_CHOICES = (
    (ORDER_STATUS_INIT,'购物车'),
    (ORDER_STATUS_SUBMIT,'已提交'),
    (ORDER_STATUS_PAIED,'已支付'),
    (ORDER_STATUS_SENT,'已发货'),
    (ORDER_STATUS_DONE,'已完成'),
    (ORDER_STATUS_DELETED,'已删除'),
)

