# -*- coding: utf-8 -*-

# 唯一标识相关
UUID_LIST = 'uuid:list'  # List，唯一标识列表

# 用户相关
PROFILE_INFO = 'profile:info:%s'  # STRING，用户信息，user_id

# 导游相关
TOUR_GUIDE_GROUP_GEO_INFO = 'tour:guide:group:geo:info:%s'  # ZSET，旅游团地理位置信息，group_id
TOUR_GUIDE_GROUP_GEO_SUBMIT_DT = 'tour:guide:group:geo:submit:dt:%s'  # ZSET，旅游团地理位置最后上传时间，group_id
TOUR_GUIDE_GROUP_CUR_SESSION = 'tour:guide:group:cur:session:%s'  # STRING，旅游团当前Session，group_id，导游设置集合时间的时候更新
TOUR_GUIDE_GROUP_CUR_GATHER_INFO = 'tour:guide:group:cur:gather:info:%s'  # STRING，旅游团当前Session，group_id，导游设置集合时间的时候更新
TOUR_GUIDE_GROUP_USER_GEO_LIST = 'tour:guide:group:user:geo:list:%s:%s:%s'  # LIST，旅游团当前用户地理位置列表，group_id、session_id、user_id

TOUR_GUIDE_GROUP_USER_OWN = 'tour:guide:group:user:own:%s'  # STRING，导游当前拥有的旅行团，user_id，导游创建旅行团的时候更新
TOUR_GUIDE_GROUP_USER_BELONG = 'tour:guide:group:user:belong:%s'  # STRING，用户当前所属旅行团，user_id，用户加入旅行团的时候更新

# 群组相关
GROUP_INFO = 'group:info:%s'  # STRING，群组信息，group_id

# 群组用户相关
GROUP_USERS_INFO = 'group:users:info:%s'  # STRING，群组用户信息，group_id
GROUP_USERS_KV_INFO = 'group:users:kv:info:%s'  # STRING，群组用户信息，group_id
GROUP_USERS_APPLYING_SET = 'group:users:applying:set:%s'  # SET，群组用户申请集合，group_id
GROUP_USERS_PASSED_SET = 'group:users:passed:set:%s'  # SET，群组用户通过集合，group_id
GROUP_USERS_REFUSED_SET = 'group:users:refused:set:%s'  # SET，群组用户拒绝集合，group_id
GROUP_USERS_DELETED_SET = 'group:users:deleted:set:%s'  # SET，群组用户移除集合，group_id
GROUP_USERS_QUIT_SET = 'group:users:quit:set:%s'  # SET，群组用户退出集合，group_id

# 群组照片相关
GROUP_PHOTO_DATA = 'group:photo:data:%s'  # STRING，群组数据记录，group_id
GROUP_PHOTO_THUMB_UP = 'group:photo:thumb:up:%s:%s'  # STRING，群组照片用户点赞记录，photo_id、user_id
GROUP_PHOTO_COMMENT_LIST = 'group:photo:comment:list:%s'  # STRING，群组照片用户评论列表，photo_id
GROUP_PHOTO_THUMB_UP_LIST = 'group:photo:thumb:up:list:%s'  # STRING，群组照片用户点赞列表，photo_id
GROUP_PHOTO_WATCHER_SET = 'group:photo:watcher:set:%s'  # SET，群组照片用户关注集合，photo_id，关注即评论点赞
GROUP_LAST_PHOTO_PK = 'group:last:photo:pk:%s'  # STRING，群组最后一张照片PK，group_id

# 摄影师照片相关
LENSMAN_PHOTO_ORDER_RECORD = 'lensman:photo:order:record:%s:%s'  # STRING，摄影师照片购买记录，photo_id、user_id

# 摄影师简报相关
# 收入
TOTAL_INCOME = 'total:income:%s:%s'  # STRING，总收入，user_id、photo_type
WEEK_INCOME = 'week:income:%s:%s:%s'  # STRING，周收入，user_id、photo_type、Week.thisweek().isoformat()
TODAY_INCOME = 'today:income:%s:%s:%s'  # STRING，日收入，user_id、photo_type、tc.local_string(format='%Y%m%d')
# 上传
TODAY_UPLOAD_PHOTO_AMOUNT = 'today:upload:photo:amount:%s:%s'  # STRING，日上传照片数量，user_id、tc.local_string(format='%Y%m%d')
# 售出
WEEK_SOLD = 'week:sold:%s:%s:%s'  # STRING，周售出，user_id、photo_type、Week.thisweek().isoformat()

# 摄影师定价相关
LENSMAN_PHOTO_PRICE_FIXED = 'lensman:photo:price:fixed:%s'  # STRING，摄影师照片定价(单位:分)，user_id

# 系统消息相关
SYSTEM_MESSAGE_READ_INFO = 'system:message:read:info:%s'  # STRING，系统消息读取信息，user_id
SYSTEM_MESSAGE_DELETED_INFO = 'system:message:deleted:info:%s'  # STRING，系统消息删除信息，user_id

# 游客入口相关
GUEST_ENTRANCE_CONTROL_INFO = 'guest:entrance:control:info:%s'  # STRING，游客入口控制信息，src

# APP 相关
LATEST_APP_INFO = 'latest:app:info:%s'  # STRING，最新 APP 信息，src
APP_SETTINGS_INFO = 'app:settings:info:%s:%s:%s'  # STRING，APP 设置信息，platform、channel、version
APP_PATCH_INFO = 'app:patch:info:%s:%s:%s'  # STRING，APP 补丁信息，platform、version、src

# BOX 相关
BOX_PROGRAM_VERSION_INFO = 'box:program:version:info'  # STRING，BOX 程序版本信息
