Commit 304c9757 authored by litaolemo's avatar litaolemo

update

parent fd0899b4
# -*- coding:UTF-8 -*-
# @Time : 2020/7/30 13:52
# @File : __init__.py
# @email : litao@igengmei.com
# @author : litao
\ No newline at end of file
__version__ = '7.73.136'
# coding:utf-8
from .utils.enum import Enum
class DocType(Enum):
TRAINSET = (-1, u"训练集数据")
DEFAULT = (0, u"默认(未知)类型")
QUESTION = (1, u"问题")
ANSWER = (2, u"答案")
COMMENT = (3, u"评论")
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class INVITE_TYPE(Enum):
ALL_PEOPLE = 0, '全民分销商'
OFFLINE = 1, '线下分销商'
SECOND = 2, '二级分销商'
@unique
class CHANNEL(Enum):
BEAUTY = 1, '美容'
NAIL = 2, '美甲'
MAKEUP = 3, '化妆品'
DECORATE = 4, '饰品'
BUYER = 5, '代购'
SCHOOL = 6, '校园代理'
CLUB = 7, '社群主'
HOSPITAL = 8, '医院'
@unique
class FLOW_ACTION(Enum):
NEW_ORDER = 'NEW_ORDER', '新订单'
REFUND = 'REFUND', '订单退款'
USE_ORDER = 'USE_ORDER', '订单验证'
ABNORMAL_REFUND = 'ABNORMAL_REFUND', '验证后退款'
SETTLE = 'SETTLE', '收益结算'
WITHDRAWAL = 'WITHDRAWAL', '提现'
OP_SUCCESS = 'OP_SUCCESS', '运营审核通过'
OP_FAIL = 'OP_FAIL', '运营审核驳回'
FIN_SUCCESS = 'FIN_SUCCESS', '财务审核通过'
FIN_FAIL = 'FIN_FAIL', '财务审核驳回'
@unique
class WITHDRAWAL_AUDIT(Enum):
ING = 'ING', '待审核'
PASS = 'PASS', '审核通过'
FAIL = 'FAIL', '审核未通过'
@unique
class SETTLE_STATUS(Enum):
NOT = 'NOT', '待结算'
SETTLED = 'SETTLED', '已结算'
CANNOT = 'CANNOT', '无法结算'
DEDUCT = 'DEDUCT', '已扣除'
@unique
class IMG_TYPE(Enum):
POS = 'POS', '正面'
NEG = 'NEG', '反面'
@unique
class SETTLE_STATUS_FILTER(Enum):
ALL = 'ALL', '全部'
NOT = 'NOT', '未结算'
SETTLED = 'SETTLED', '已结算'
CANNOT = 'CANNOT', '无法结算'
DEDUCT = 'DEDUCT', '已扣除'
@unique
class TRADE_TYPE(Enum):
SYSTEM = 'SYSTEM', '系统授予'
WITHDRAWAL = 'WITHDRAWAL', '提现结算'
@unique
class FILTER_FLOW_ACTION(Enum):
ABNORMAL_REFUND = 'ABNORMAL_REFUND', '返现扣减'
SETTLE = 'SETTLE', '返现收入'
WITHDRAWAL = 'WITHDRAWAL', '待审核'
OP_SUCCESS = 'OP_SUCCESS', '待支付'
OP_FAIL = 'OP_FAIL', '已取消'
FIN_SUCCESS = 'FIN_SUCCESS', '已支付'
FIN_FAIL = 'FIN_FAIL', '已驳回'
@unique
class FIN_PAY_RESULT(Enum):
ING = 'ING', '待支付'
PASS = 'PASS', '支付成功'
FAIL = 'FAIL', '支付失败'
@unique
class AUDIT_STATUS(Enum):
ING = 'ING', '待审核'
PASS = 'PASS', '已通过'
FAIL = 'FAIL', '已驳回'
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class ERROR(int, Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
"""
AUTH_UNAME_PASSWD_MISMATCH = (1, 'username and password mismatch')
ILLEGAL_SESSION = (2, 'illegal session or session not exist')
UNSUPPORT_STRATEGY_TYPE = (220000, 'unsupport strategy type')
LOGIN_REQUIRED = (70000, '请登录后再试')
USER_NOT_FOUND = (70001, '找不到用户')
OVER_AMOUNT = (70002, '余额不够')
USER_CREATE_FAIL = (70003, '用户创建失败')
INVITE_CODE_ERROR = (70004, '邀请码无效')
PASSPHASE_CODE_ERROR = (70005, '口令无效')
USER_IS_EXTRA = (70006, '用户已经存在')
OPERATION_NOT_SUPPORTED = (70007, '非法操作')
WITHDRAW_TOO_MUCH_TIME = (70008, '每周只可提现一次')
WITHDRAW_TIME_EXCEED = (70009, '每月只可提现一次') # 纷享购2期上线后,WITHDRAW_TOO_MUCH_TIME可废弃
BIND_OP_ILLEGAL = (70010, '不能绑定自己') # 分销商不能绑定自己
# coding=utf-8
# create by oldman at 17/3/21
from .types import *
from .error import *
# coding=utf-8
# create by oldman at 17/3/22
from gm_types.utils.enum import Enum, unique
@unique
class ERROR(int, Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
!!! 字符前面一定要记得加 u !!!!!
700000 ~ 700999
"""
NOTFOUND = (700001, u'资源不存在!')
# 广告配置相关
TIME_HAS_BEEN_SET = (7000002, u'广告时间冲突')
ADVERPRODUCT_HAS_ORDER = (7000005, u'广告商品已有订单')
# account 相关
NO_PERMISSION = (7001000, u'没有权限')
STATUS_ILLEGAL = (7001001, u'状态错误')
NO_PAY_ID = (7001002, u'无此支付订单')
PARAM_ERROR = (7001003, u'参数错误')
# 下单相关
PAY_ERROR = (7002000, u'购买错误')
PAY_CITY_SOLD = (7002001, u'地域已被售出')
PAY_KEYWORD_SOLD = (7002002, u'关键词已被售出')
PAY_SERVICE_BTN_SOLD = (7002003, u'按钮已被售出')
PAY_ADVERTISE_OFFLINE = (7002004, u'该商品已经下线了')
PAY_ACCOUNT_LACK = (7002005, u'账号余额不足')
PAY_ADTIME_DEACTIVATIVE = (7002006, u'选择投放排期已下线,请重新选购')
PAY_KEYWORD_EMPTY = (7002007, u'请输入购买的关键词')
PAY_OTHERSETTING_EMPTY = (7002008, u'请选择要购买的按钮')
PAY_CITY_EMPTY = (7002009, u'请选择区域')
PAY_NOT_RESIDUE = (7002010, u'当前剩余城市不可购买')
PAY_RESIDUE_SOLD = (7002011, u'当前剩余城市已售出')
PAY_PRICE_UPDATED = (7002012, u'价格变更了,请刷新页面重新下单')
PAY_ACCOUNT_STATUE_ERROR = (7002013, u'您账号已被冻结,请联系商务')
PAY_CITY_ERROR = (7002014, u'选择城市信息不在配置当中')
PAY_SPECIAL_ERROR = (7002015, u'当前专题已售出')
PAY_ADBDLIST_DEACTIVATIVE = (7002016, u'选择投放榜单已下线,请重新选购')
PAY_SPECIAL_DEACTIVATIVE = (7002017, u'选择投放专题已下线,请重新选购')
PAY_NOT_BUY = (7002018, u'请勿购买同一排期、同一投放地域不同位置')
PAY_SAME_PROVINCE = (7002019, u'请勿同时购买某省份和此省份下任何城市')
# Material
MATERIAL_NEED_SERVICE = (7003001, u'请提交美购物料')
MATERIAL_NEED_DOCTOR = (7003002, u'请提交医生物料')
MATERIAL_SUBMITED = (7003003, u'您已经提交过了')
MATERIAL_NEED_HOSPITAL = (7003004, u'请提交医院物料')
# discountscheme
DISCOUNT_SCHEME_IS_ACTIVITY = (7004001, u'打折方案已经生效!')
DISCOUNT_SCHEME_CONFLICT = (7004002, u'部分商品在本时间段,已经在其他打折方案中了,不能再次添加咯。')
# cashbackratio
CASHBACK_RATIO_RANGE_DEFEAT = (7005001, u'区间有冲突!')
CASHBACK_RATIO_RANGE_START_GT_END = (7005002, u'区间开始值必须小于结束值!')
# cpc_whitelist
HAS_ACCREDIT = (7006001, u'该商户存在尚未结束的相同授权功能类型的记录')
ERROR_MERCHANT = (7006002, u'此商户不存在')
# cpc
HAS_PROMOTE = (7007001, u'已经存在该美购推广')
HAS_PROMOTE_COMMUNITY = (7007002, u'已经存在该日记推广')
HAS_PROMOTE_DOCTOR = (7007003, u'已经存在该医生的推广')
This diff is collapsed.
from .types import *
from .error import *
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author : RobertDing
# E-mail : robertdingx@gmail.com
# Date : 16/08/09 12:04:05
# Desc : 医生后台错误码
#
from ..utils.enum import Enum, unique
@unique
class ERROR(int, Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
!!! 字符前面一定要记得加 u !!!!!
"""
LIST_NO_MORE_DATA = (1, u'没有更多数据了')
ASCLE_ERROR = (300000, u'服务器错误,请稍后再试')
ARG_MISS = (300001, u'缺少参数')
ARG_ERROR = (300002, u'参数错误')
CONTENT_OVERRUN = (300003, u'文字过长')
NOT_FOUND_PHONE = (300004, u'找不到电话号码')
HTTP_METHOD_NOT_ALLOW = (300005, u'该方法未经授权,无法访问')
EMPTY_ITEMS = (300006, u'价格表不能未空')
QUERY_DATE_OUT = (300007, u'查询日期过长')
VALID_SHORT_DESCRIPTION = (300010, u'美购描述中含有非法字符')
PROJECT_NAME_DESCRIPTION = (300011, u'美购项目名中含有非法字符')
# 账号相关
ACCOUNT_OFF_LINE = (310000, u'您的医生账号已下线,无法操作') # 医生下线
ACCOUNT_BLOCK = (310001, u'您的医生账号被拉黑,无法操作') # User入了黑名单
# 美购相关
SECKILL_EXPIRE = (320001, u'秒杀已过期')
# 订单相关
REFUND_REJECT_FAIL = (330001, u'验证码有误,请重新输入或同意退款')
# 商户主动私信
OVER_MESSAGE_COUNT = (340001, u'今日可主动私信用户已达上限')
# 以下是重写gaia.error中的,重定义文案
# 以下是重写gaia.error中的,重定义文案
DIARY_HAS_VOTED = (12902, u'该案例已经赞过')
DIARY_NOT_FOUND = (20009, u'该案例不存在')
MESSAGE_INVALID_TARGET_USER = (21004, u'请确定收信人')
MESSAGE_CONTENT_FILTERED_OUT = (21005, u'对不起,您的回复没有发送成功,为维护社区纯洁性,\
我们建议您在文中避免加入个人联系信息,并建议用户直接拨打APP内医生预留电话与您联系。')
PHONE_PASSWORD_INVALID = (22002, u'用户名或密码错误')
BIND_EXIST_PHONE = (23104, u'该手机号已经注册更美,无法绑定')
STATS_NOT_FOUND = (31001, u'数据统计中,敬请期待!')
LOGIN_FAIL = (70002, u'用户名或者密码错误')
DOCTOR_NOT_FOUND = (30001, u'该医生不存在')
DOCTOR_HAS_APPLIED = (30002, u'医生已经申请审核加入')
DOCTOR_HAS_NOT_APPLIED = (30003, u'医生未申请审核加入')
PERMISSION_NOT_ALLOW = (300009, u'没有权限!')
CONVERSATION_NOT_FOUND = (300012, u'当前商户不存在对应的会话关系')
PROMOTION_PRICE_NOT_ALLOW = (300020, u'价格设置有误')
PROMOTION_INVENTORY_NOT_ALLOW = (300021, u'库存设置有误')
PROMOTION_TAG_NOT_ALLOW = (300022, u'活动标签不匹配')
PROMOTION_NOT_ALLOW = (300023, u'已参与活动')
PROMOTION_TIME_NOT_ALLOW = (300024, u'活动提报时间不匹配')
PROMOTION_RECALL_NOT_ALLOW = (300025, u'该提报不是待审核状态,不支持撤回')
PROMOTION_PRICE_LT_ORIGINAL = (300026, u'活动价格必须小于更美价格')
PROMOTION_PRICE_NOT_ZRO = (300027, u'活动价不可为零')
PROMOTION_COMMODITY_NOT_OFFLINE = (300028, u'不能提报下线商品')
\ No newline at end of file
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author : RobertDing
# E-mail : robertdingx@gmail.com
# Date : 16/08/09 12:05:29
# Desc : 医生后台类型
#
from __future__ import unicode_literals
from ..utils.enum import Enum, unique
# !!! 字符前面一定要记得加 u !!!!!
@unique
class ASCLE_ENV(Enum):
DEV = (0, u'开发环境')
TEST = (1, u'测试环境')
PROD = (2, u'线上环境')
@unique
class LOGIN_METHOD(Enum):
PASSWORD = ('password', u'密码登录')
AUTHCODE = ('authcode', u'验证码登录')
EMAIL = ('email', u'邮箱登录') # 也是密码登录的一种
@unique
class VERIFY_CODE_TYPE(Enum):
CREATE = (0, u'创建用户')
LOGIN = (1, u'登陆')
BIND = (2, u'手机绑定')
UPDATE = (3, u"修改属性")
REGISTER = (4, u"提交注册")
@unique
class ORDER_ORDER_TYPE(Enum):
CREATE_ASC = (0, u'下单时间正序')
CREATE_DESC = (1, u'下单时间倒序')
VALIDATE_ASC = (2, u'验证时间正序')
VALIDATE_DESC = (3, u"验证时间倒序")
ID_ASC = (4, u'ID正序')
ID_DESC = (5, u"ID倒序")
TOTAL_ASC = (6, u'订单总价正序')
TOTAL_DESC = (7, u"订单总价倒序")
PRE_ASC = (8, u'预付款正序')
PRE_DESC = (9, u"预付款倒序")
SETTLE_ASC = (10, u'应结付款正序')
SETTLE_DESC = (11, u"应结付款倒序")
PAY_ASC = (12, u'支付时间正序')
PAY_DESC = (13, u'支付时间倒序')
@unique
class REFUND_ORDER_TYPE(Enum):
CREATE_ASC = (0, u'下单时间正序')
CREATE_DESC = (1, u'下单时间倒序')
APPLY_ASC = (2, u'申请退款时间正序')
APPLY_DESC = (3, u"申请退款时间倒序")
@unique
class STATEMENT_ORDER_TYPE(Enum):
DATE_ASC = (0, u'结算周期升序')
DATE_DESC = (1, u'结算周期倒序')
ORDER_NUM_ASC = (2, u'订单数升序')
ORDER_NUM_DESC = (3, u"订单数降序")
TOTAL_NUM_ASC = (4, u'订单总金额升序')
TOTAL_NUM_DESC = (5, u'订单总金额降序')
SETTLE_NUM_ASC = (6, u'结算金额升序')
SETTLE_NUM_DESC = (7, u'结算金额降序')
STATUS_ASC = (8, u'状态升序')
STATUS_DESC = (9, u'状态降序')
@unique
class SERVICE_ORDER_TYPE(Enum):
DEFAULT = (0, u'默认排序') # order_by('end_time', u'-start_time', u'ordering')
ONLIENE_TIME_ASC = (1, u'上线时间升序')
ONLINE_TIME_DESC = (2, u'上线时间降序')
IS_ONLINE_ASC = (3, u'下线的在前')
IS_ONLINE_DESC = (4, u'上线的在前')
ORDER_NUM_ASC = (5, u'成单量升序')
ORDER_NUM_DESC = (6, u'成单量降序')
USED_NUM_ASC = (7, u'验证订单量升序')
USED_NUM_DESC = (8, u'验证订单量降序')
REFUNDED_NUM_ASC = (9, u'退款订单量升序')
REFUNDED_NUM_DESC = (10, u'退款订单量降序')
@unique
class RESERVATION_OPERATION(Enum):
"""
退款操作 描述 see gaia.ORDER_OPERATION_TYPE
"""
DOCTOR_APPROVE = (9, u'您同意了该用户的退款')
DOCTOR_REJECT = (8, u'您拒绝了该用户的退款')
CANCEL_REFUND = (7, u'该用户取消了您的退款')
REFUNDED = (6, u'该用户完成了您的退款')
APPLY_REFUND = (16, u'该用户申请了您的退款')
REFUND_TIMEOUT = (19, u'您未处理该用户的退款')
@unique
class SERVICE_REGISTER_REVIEW_STATUS(Enum):
UNDER_REVIEW = (0, u'审核中')
PASS_REVIEW = (10, u'已通过审核')
@unique
class UNDER_REVIEW_LIST_TYPES(Enum):
"""
待审核列表的bar类型
"""
NEW_PRODUCT = (0, u'新产品审核')
OLD_PRODUCT = (1, u'产品修改审核')
SPECIAL_APPROVAL = (2, u'特批审核')
@unique
class PASS_SERVICE_REVIEW_LIST_TYPES(Enum):
"""
已审核列表的bar类型,这个和上面的UNDER_REVIEW_LIST_TYPES绝对不能重复,
他们的作用一样,但是需要两个空间
"""
ALL = (10, u'全部')
ONLINE = (11, u'在线')
OFFLINE = (12, u'下线')
@unique
class SERVICE_REVIEW_LIST_TYPES(Enum):
"""
我的美购bar对应的类型
"""
ALL = (0, u'全部')
UNDER_PASS = (1, u'待上线')
ONLINE = (2, u'在线')
OFFLINE = (3, u'下线')
@unique
class HOTFIX_STATUS(Enum):
"""
热修复的状态
"""
DEFAULT = (0, u'默认') # 默认不做任何处理
CLEAR = (1, u'清除') # 清除之前的hotfix, 相当于关闭hotfix
HAVE_PATCH = (2, u'有更新') # 有更新, 需要下载文件
FIXED = (3, u'已修复过') # 本地文件和服务器一样,无须重新下载文件
@unique
class TRFFIC_CHART(Enum):
"""
医生流量分析图标类型
"""
PV = (0, u'页面浏览')
CONSULTING = (1, u'咨询量')
ORDER = (2, u'订单')
PAY = (3, u'支付')
VALIDATE = (4, u'验证订单')
DIARY = (5, u'日记')
@unique
class CHAIN_CHART(Enum):
"""
连锁结构分析图表类型
"""
PV = (0, u'页面浏览')
PHONE = (1, u'咨询量(电话)')
MESSAGE = (2, u'咨询量(私信)')
ORDERNUM = (3, u'订单数')
ORDERAMOUNT = (4, u'订单金额')
PAYNUM = (5, u'支付订单数')
PAYAMOUNT = (6, u'支付订单金额')
VALIDATENUM = (7, u'验证订单数')
VALIDATEAMOUNT = (8, u'验证订单金额')
DIARY = (9, u'日记')
@unique
class HOSPITAL_INFO_REVIEW(Enum):
"""
医院基础信息审核状态
"""
SUBMIT = (0, u'待审核')
PASS = (1, u'审核通过')
REJECT = (2, u'已驳回')
@unique
class HOSPITAL_INFO_IMAGE(Enum):
"""
医院基础信息图片类型
"""
LEVEL = (0, u'医院级别图片')
AREA = (1, u'医院平米数图片')
CITY = (2, u'开设城市图片')
CHAIN = (3, u'连锁医院图片')
OPERATING = (4, u'手术室图片')
INJECTION = (5, u'注射室图片')
LASER = (6, u'激光治疗室图片')
AD_CHECK_IMG = (7, u'医疗广告审查证明')
This diff is collapsed.
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from .utils.enum import Enum
__all__ = ['NOTIFICATION_TYPE', 'DOCTOR_ACTIVITY_STATUS', 'DOCTOR_AREA_TYPE', 'DOCTOR_REGISTER_STATUS',
'DOCTOR_LICENCE_TYPE', 'DOCTOR_INFO_STATUS', 'DOCTOR_ACCOUNT_TYPE', 'COUPON_FILTER_STATUS',
'DOCTOR_ACCOUNT_STATUS',
]
class NOTIFICATION_TYPE(Enum):
RESERVATION = ('1', '预约消息')
TRADE = ('2', '购买验证')
REFUND = ('3', '退款消息')
USERCASE = ('4', '案例消息')
class DOCTOR_ACTIVITY_STATUS(Enum):
DEFAULT = (0, '下线')
WILL_START = (1, '即将开始') # 上线且位于开始时间之前
PROCESSING = (2, '进行中') # 进行中,上线且位于开始时间结束时间之间, 可以报名
OVER = (3, '已结束') # 上线且位于结束时间之后
HAVE_APPLIED = (4, '已经报名') # 进行中,上线且位于开始时间结束时间之间, 已经报名过了
class DOCTOR_AREA_TYPE(Enum):
CISBORDER = (1, u'境内')
ABROAD = (2, u'境外')
class DOCTOR_REGISTER_STATUS(Enum):
DATA_INIT = (0, '初始状态') # 闲置状态
DATA_SUBMITTED = (1, u'已提交注册资料')
DATA_CHECKED = (2, u'资料已审核')
AGREEMENT_CHECKED = (3, u'合同已审核') # 此转态废弃,合同审核通过直接状态FINISHED
FINISHED = (4, u'注册通过了')
DATA_REJECT = (5, u'资料被驳回')
OLD_DATA = (6, u'未生成医生的老注册申请')
CHECK_PENDING = (7, u'已注册合同待审状态')
class DOCTOR_LICENCE_TYPE(Enum):
BUSINESS = (1, u'资格证')
PRACTICE = (2, u'执业许可证')
TITLE = (3, u'职称证书')
HOSPITAL_LEVEL = (4, u'医院等级图片')
RETAIL_LEASE_CONTRACT = (5, u'商铺租赁合同')
SAME_PROVINCE_CHAIN_HOSPITAL = (6, u'同省份机构的营业执照')
INTER_PROVINCE_CHAIN_HOSPITAL = (7, u'跨省份机构的营业执照')
DOCTOR_PERSONALIZED_PHOTO_ALBUM = (8, u'医生个性化照片')
HOSPITAL_HONOR_PICTURE = (9, u'医院荣誉图片')
PERSONAL_PICTURE = (10, u'个人形象照')
class DOCTOR_INFO_STATUS(Enum):
CHECKED = (0, u'审核通过')
APPLY_EDIT = (1, u'申请修改')
REJECT = (2, u'已驳回')
GIVE_UP = (3, u'放弃修改')
CHECK_PENDING = (7, u'已注册合同待审状态')
class DOCTOR_ACCOUNT_TYPE(Enum):
BANK = (0, u'银行')
ALIPAY = (1, u'支付宝')
class DOCTOR_ACCOUNT_STATUS(Enum):
"""
医生账号信息 审核状态
"""
CHECKED = (0, u'审核通过')
SUBMITED = (1, u'提交申请')
REJECT = (2, u'已驳回')
GIVE_UP = (3, u'放弃修改')
class COUPON_FILTER_STATUS(Enum):
""" 用于医生后台刷选 条件"""
ALL = (0, u'全部')
DRAFT = (1, u'未生效')
OPEN = (2, u'领取中')
CLOSED = (3, u'已下线')
ACTIVATED = (4, u'未领取')
EXPIRED = (5, u'已过期')
class DOCTOR_TITLE_TYPE(Enum):
EMPTY = ('0', u'无职称')
RESIDENT = ('1', u'住院医师')
MAIN = ('2', u'主治医师')
VICE = ('3', u'副主任医师')
CHIEF = ('4', u'主任医师')
class DOCTOR_BILL_TYPE(Enum):
GENERAL = (0, u'纸质普通')
SPECIAL = (1, u'纸质专用')
ELECTRONIC = (2, u'电子普通')
class DOCTOR_BILL_CLASS(Enum):
COMMISSION = (0, u'佣金发票')
RECHANGE = (1, u'商桥充值发票')
BUDAN = (2, u'转诊补单发票')
class DOCTOR_BILLAPPLY_STATUS(Enum):
SUCCESS = (0, u'申请成功')
REJECT = (1, u'已驳回')
PENDING = (2, u'待审核')
class DOCTOR_EXPRESS_COMPANY(Enum):
ZHONGTONG = (0, u'中通')
SHENTONG = (1, u'申通')
YUANTONG = (2, u'圆通')
HUITONG = (3, u'百世汇通')
YOUZHENG = (4, u'邮政')
SHUNFENG = (5, u'顺丰')
YUNDA = (6, u'韵达')
DEFAULT = (20, u'')
class BILL_REFUSE_REASON(Enum):
TAX_ID_ERROR = (0, u'税务登记号错误')
BILL_NONE = (1, u'发票已用完,建议合并开发票')
TAX_NAME_ERROR = (2, u'发票抬头错误')
NOT_ONLINE = (3, u'不支持线上开票,请联系商务线下开')
OTHERS = (4, u'其它原因')
class BILL_INFO_TYPE(Enum):
NORMAL = (0, u'商户合同资料中的甲方公司信息')
HANDLER = (1, u'商户合同资料中的甲方代运营公司信息')
class PV_TYPE(Enum):
SERVICE = (1, u'商品详情页')
HOSPITAL = (2, u'机构主页')
DOCTOR = (3, u'医生主页')
class DOCTOR_MESSAGE_TYPE(Enum):
BUDAN = (0, u'补单提醒')
STATEMENT_CONFIRM = (1, u'对账单确认提醒')
STATEMENT_SETTLE = (2, u'对账单结算提醒')
STATEMENT_FAIL = (3, u'对账单打款失败提醒')
SERVICE_ONLINE = (4, u'美购审核上线提醒')
SERVICE_REFUSE = (5, u'美购审核驳回提醒')
SERVICE_OFFLINE = (6, u'美购审核下线提醒')
SERVICE_OFFLINE_REFUSE = (7, u'美购审核下线驳回提醒')
SERVICE_EXPIRE = (8, u'美购到期提醒')
ACTIVITY_SUCCESS = (9, u'活动报名成功提醒')
ACTIVITY_FAIL = (10, u'活动报名失败提醒')
DOCTOR_SUCCESS = (11, u'医生资料审核成功提醒')
DOCTOR_REFUSE = (12, u'医生资料审核驳回提醒')
FINANCE_SUCCESS = (13, u'医生结算信息审核通过提醒')
FINANCE_REFUSE = (14, u'医生结算信息审核驳回提醒')
AD_ARREARAGE = (15, u'商桥欠费提醒')
AD_RECHANGE = (16, u'商桥充值成功提醒')
AD_RECHANGE_FAIL = (17, u'商桥充值驳回提醒')
DOWNSTREAM_REMINDER = (18, u'降流提醒')
DOWNSTREAM_REMINDER_CANCEL = (19, u'取消降流提醒')
DOCTOR_EXAMINE_PASS = (20, u'医生审核通过')
DOCTOR_EXAMINE_REJECT = (21, u'医生审核驳回')
DOCTOR_CASHBACK_EXPIRE = (22, u'医生返点到期提醒')
COUNSELLOR_INFO_AUDIT_PASS = (23, u'面诊师资料审核通过提醒')
COUNSELLOR_INFO_AUDIT_REJECT = (24, u'面诊师资料审核驳回提醒')
CPT_THREE_DAY_REMIND = (25, u'CPT上线前三天提醒消息,未弹窗')
CPT_THREE_DAY_REMIND_POP_UPS = (26, u'CPT上线前三天提醒消息,已弹窗')
CPT_ONLINE_REMIND = (27, u'CPT上线提醒消息,未弹窗')
CPT_ONLINE_REMIND_POP_UPS = (28, u'CPT上线提醒消息,已弹窗')
class DOCTOR_ORDER_MESSAGE_TYPE(Enum):
ORDER = (0, u'订单')
REFUND = (1, u'退款单')
class HOSPITAL_MEDICAL_TYPE(Enum):
MEDICAL_BEAUTY_CLINIC = (0, u'医疗美容诊所')
MEDICAL_BEAUTY_DEPARTMENT = (1, u'医疗美容门诊部')
MEDICAL_BEAUTY_HOSPITAL = (2, u'医疗美容医院')
NONE = (3, u'境外医院无类型')
BEAUTY_OF_LIVE = (4, u'生活美容')
class HOSPITAL_LEVEL(Enum):
ONE_BING = (0, u'医院一级丙等')
ONE_YI = (1, u'医院一级乙等')
ONE_JIA = (2, u'医院一级甲等')
TWO_BING = (3, u'医院二级丙等')
TWO_YI = (4, u'医院二级乙等')
TWO_JIA = (5, u'医院二级甲等')
THREE_BING = (6, u'医院三级丙等')
THREE_YI = (7, u'医院三级乙等')
THREE_JIA = (8, u'医院三级甲等')
THREE_SPECIAL = (9, u'医院三级特等')
NONE = (10, u'无等级')
class HOSPITAL_SCALE(Enum):
NONE = (0, u'')
NATIONAL_CHAIN = (1, u'全国连锁')
REGIONAL_LEADER = (2, u'本地名店')
GOOD_CLINIC = (3, u'精品诊所')
class BUDAN_LURU_STATUS(Enum):
ENTERED = (0, u'已录入')
REVOKED = (1, u'已撤销')
class BUDAN_LURU_TYPE(Enum):
COMMON = (0, u'常规补单')
SPECIAL_FLAT_ACCOUNT = (1, u'特殊平账')
PENALTY = (2, u'罚款')
TRUMPET_ORDER = (3, u'小号拍单')
TEST = (4, u'测试')
KA_FLAT_ACCOUNT = (5, u'KA平账')
class BUDAN_LURU_OPERATE(Enum):
ENTER = (0, u'录入')
UNDO = (1, u'撤销')
class USER_BROWSING_TYPE(Enum):
SERVICE = (1, u'商品详情页')
HOSPITAL = (2, u'机构主页')
DOCTOR = (3, u'医生主页')
class DATE_TYPE(Enum):
THIS_MONTH = (1, u'当月')
NEARLY_THERE_MONTH = (2, u'近三月')
NEARLY_SIX_MONTH = (3, u'近三月')
class AGREEMENT_RECORD_STATUS(Enum):
TODO = (0, u'未审核')
APPROVE = (1, u'已审核')
REJECT = (2, u'已驳回')
class HOSTING_TYPE(Enum):
NONE = (1, u'非代运营')
COMPANY = (2, u'委托代运营公司')
PERSON = (3, u'委托代运营个人')
class AGREEMENT_TYPE(Enum):
PUBLIC = (1, u'公立')
PRIVATE = (2, u'私营')
KA = (3, u'KA')
class BUSINESS_TYPE(Enum):
MEDICAL = (1, u'医疗美容')
LIVE = (2, u'生活美容')
class AGREEMENT_IMG_TYPE(Enum):
AGREEMENT = (1, u'合同图片')
HOSTING = (2, u'代运营图片')
class ID_TYPE(Enum):
ID = (1, "身份证")
PASSPORT = (2, "护照")
OFFICER = (3, "军官证")
HONGKONG = (4, "香港居民身份证")
MACAU = (5, "澳门居民身份证")
BACK = (6, "回乡证")
TAIWAN_ID = (7, "台湾身份证")
TAIWAN = (8, "台胞证")
FOREIGNER = (9, "外国人永久居留证")
class GMEI_NAME(Enum):
N1 = ("北京完美创意科技有限公司", "北京完美创意科技有限公司")
N2 = ("北京更美互动信息科技有限公司", "北京更美互动信息科技有限公司")
N3 = ("上海互美信息科技有限公司", "上海互美信息科技有限公司")
N4 = ("北京更美分担科技有限公司", "北京更美分担科技有限公司")
N5 = ("北京完美创意医疗美容诊所有限公司", "北京完美创意医疗美容诊所有限公司")
N6 = ("苏州更美互动信息科技有限公司", "苏州更美互动信息科技有限公司")
N7 = ("完美互动香港有限公司", "完美互动香港有限公司")
class BDTRANSFER_APPLY_STATUS(Enum):
SUCCESS = (0, u'已审核')
REJECT = (1, u'已驳回')
PENDING = (2, u'审核中')
class BDTRANSFER_PIC_TYPE(Enum):
PROOF_OF_PAYMENT = (0, u'支付凭证')
AUTHORIZATION_VOUCHER = (1, u'代付凭证')
COLLECTION_OF_PAYMENTS = (2, u'收款凭证')
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
class STRATEGY_TYPE(Enum):
SERVICE_SEARCH = ('service_search', '搜索智能排序')
DOCTOR_ORDER = ('doctor_order', '医生机构智能排序')
class INTERPOSE_TYPE(Enum):
SERVICE_SEARCH = ('service_search', '美购搜索')
SERVICE_FILTER = ('service_filter', '美购过滤')
DOCTOR_SEARCH = ('doctor_search', '专家搜索')
OFFICER_SEARCH = ('officer_search', '机构管理者(医院)搜索')
DIARY_FILTER = ('diary_filter', '日记本过滤')
DIARY_SEARCH = ('diary_search', '日记本搜索')
DOCTOR_FILTER = ('doctor_filter', '专家过滤')
OFFICER_FILTER = ('officer_filter', '机构过滤')
class Verb(Enum):
USER_CREATE = ('user_craete', '创建用户')
DIARY_CREATE = ('diary_create', '添加日记')
DIARY_REPLY = ('diary_reply', '评论日记')
QUESTION_ASK = ('question_ask', '提问')
QUESTION_ANSWER = ('quetion_answer', '回答问题')
class PUSH_EVENT_TYPE(Enum):
SEARCH = ('search', "搜索")
EXPLORE_TOPIC = ("explore_topic", "看贴")
EXPLORE_SERVICE = ("explore_service", "看美购")
CONVERSATION = ("send_message", "私信")
class CARD_TYPE(Enum):
DIARY = ('diary', '日记本')
QUESTION = ('question', '问答贴')
ANSWER = ("answer", '回答贴')
ARTICLE = ("article", "专栏贴")
USERTOPIC = ("usertopic", '用户帖子')
DOCTORTOPIC = ('doctortopic', '医生帖子')
ENCYCLOPEDIA = ('encyclopedia', '百科')
ICON = ('icon', '首页图标')
QA = ('qa', '问答')
GROUP = ("group", "小组")
GUESS = ("guess", "猜你喜欢")
GROUPTOPIC = ("grouptopic", "小组话题")
SINGLE_GROUP = ("single_group", "单个小组")
SINGLE_TOPIC = ("group_topic", "单个话题")
class ARTICLE_SORT_TYPE(Enum):
DEFAULT = ("0", "默认排序")
RECOMMEND = ('1', "推荐")
class ANSWER_SORT_TYPE(Enum):
DEFAULT = ("0", "默认排序")
RECOMMEND = ('1', "推荐")
LASTEST_CREATE = ('2', "回答最新创建在前")
class RANK_MODE(Enum):
DEFAULT = ("0", "默认")
CPC = ("1", "CPC模式")
class MIND_TYPE(Enum):
UNKNOWN = ("unknown", "未知")
USER = ("user", "用户")
AREA = ("area", "地区")
DOCTOR = ("doctor", "医生")
HOSPITAL = ("hospital", "医院")
BRAND = ("brand", "品牌")
PROJECT = ("project", "项目")
FACE = ("face", "魔镜")
FREE_FACE = ("free_face", "免费整形")
class CONTENT_AGGRE_SORT(Enum):
DEFAULT = ("0", "默认排序")
LASTEST_CREATE = ('1', "最新")
HOT = ('2', "热度")
AI_LOOK_FACE = ("3", "AI看脸")
class CONTENT_AGGRE_CARD_TYPE(Enum):
DIARY = (1, "日记")
TRACTATE = (2, "帖子")
QA = (3, "问答")
ANSWER = (4, "回答")
ARTICLE = (5, "专栏")
class SEARCH_CONTENT_CARD_TYPE(Enum):
HOSPITAL = (1, "医院")
DOCTOR = (2, "医生")
TAG = (3, "标签")
class KYC_USER_PORTRAIT_TAG_ATTR(Enum):
INTEREST_TAG = (1, '兴趣标签')
EXPERIENCE_TAG = (2, '经验标签')
class FEED_MERFE_DATA_TYPE(Enum):
SAMECITY_CTR = ("samecity_ctr", "同城优先CTR预估")
SAMECITY_CVR = ("samecity_cvr", "同城优先CVR预估")
CTR = ("ctr", "CTR预估")
CVR = ("cvr", "CVR预估")
CTCVR = ("ctcvr", "CTRCVR预估")
CPC = ("cpc", "CPC推荐")
SMR = ("smr", "smart_rank排序")
NEWDATA = ("newdata", "保量内容")
PGC = ("pgc", "新人冷启动")
HOTSPOT_FEED = ("hotspot_feed", "首页feed全推热点数据")
HOTSPOT = ("hotspot", "热点数据")
class QUERY_COMPRE_CONTENT_TYPE(Enum):
ANSWER = (1, "回答")
DIARY = (2, "日记")
TRACTATE = (3, "帖子")
QA = (4, "问题")
ARTICLE = (5, "专栏")
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class ERROR(int, Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
"""
AUTH_UNAME_PASSWD_MISMATCH = (1, 'username and password mismatch')
ILLEGAL_SESSION = (2, 'illegal session or session not exist')
UNSUPPORT_STRATEGY_TYPE = (220000, 'unsupport strategy type')
This diff is collapsed.
# coding=utf-8
from __future__ import absolute_import, unicode_literals
import six
from ..utils.enum import Enum, unique
@unique
class SIMULATE_EYELID_TYPE(int, Enum):
KAI_SHAN = (1, u"开扇型双眼皮")
PING_XING = (2, u"平行式双眼皮")
XIN_YUE = (3, u"新月型双眼皮")
OU_SHI = (4, u"欧式双眼皮")
@unique
class PLASTIC_TAG(int, Enum):
SUODUANYANJU = (994, u"缩短眼距")
QUANGUNEITUI = (986, u"颧骨内推")
SUOXIAHEJIAO = (985, u"缩下颌角")
RENZHONGSUODUAN = (983, u"人中缩短")
SUOXIABA = (984, u"缩短下巴")
XIAYANLIANXIAZHI = (992, u"下眼睑下至")
SHANGYANLIANTISHENG = (991, u"上眼睑提升")
SUOBIYI = (599, u"缩鼻翼")
BIBUSUODUAN = (979, u"鼻部缩短")
FENGCHUN = (538, u"丰唇")
BOCHUN = (548, u"薄唇")
DIANXIABA = (340, u"垫下巴")
SHOULIAN = (584, u"瘦脸")
ZUIJIAOSAHNGYANG = (978, u"嘴角上扬")
QUHEIYANQUAN = (460, u"祛黑眼圈")
CHUFALINGWEN = (356, u"除法令纹")
BIBUJIACHANG = (1011, u"鼻部加长")
@unique
class PLASTIC_PARAMETER(int, Enum):
SHOULIAN = (1, u"瘦脸")
ZHAILIAN = (2, u"窄脸")
XIAOLIAN = (3, u"小脸")
DAYAN = (4, u"大眼")
YANJIAODU = (5, u"眼角度")
SHOUQUANGU = (6, u"瘦颧骨")
SHOUXIAHEGU = (7, u"瘦下颌骨")
SHOUBI = (8, u"瘦鼻")
CHANGBI = (9, u"长鼻")
XIABA = (10, u"下巴")
ETOU = (11, u"额头")
ZUIXING = (12, u"嘴型")
WEIXIAO = (13, u"微笑")
YANJU = (14, u"眼距")
YANYIDONG = (15, u"眼移动")
SUORENZHONG = (16, u"缩人中")
HEIYANQUAN = (17, u"黑眼圈")
FALINGWEN = (18, u"法令纹")
@unique
class PLASTIC_TAG_TYPE(int, Enum):
SUODUANYANJU = (1, u"缩眼距")
QUANGUNEITUI = (2, u"颧骨内推")
SUOXIAHEJIAO = (3, u"缩下颌角")
RENZHONGSUODUAN = (4, u"人中缩短")
SUOXIABA = (5, u"缩短下巴")
XIAYANLIANXIAZHI = (6, u"下眼睑下至")
SHANGYANLIANTISHENG = (7, u"上眼睑提升")
SUOBIYI = (8, u"缩鼻翼")
BIBUSUODUAN = (9, u"鼻部缩短")
FENGCHUN = (10, u"丰唇")
BOCHUN = (11, u"薄唇")
DIANXIABA = (12, u"垫下巴")
SHOULIAN = (13, u"瘦脸")
ZUIJIAOSAHNGYANG = (14, u"嘴角上扬")
QUHEIYANQUAN = (15, u"祛黑眼圈")
CHUFALINGWEN = (16, u"祛法令纹")
BIBUJIACHANG = (17, u"鼻中隔延长")
XIAHEYUANTISHENG = (18, u"下颌缘提升")
MEIBAINENFU = (19, u"美白")
KAIYANJIAO = (20, u"开眼角")
DAYANJING = (21, u"大眼睛")
KONGYOU = (22, u"控油")
QUYANDAI = (23, u"祛眼袋")
QUDOU = (24, u"祛痘")
SHUANGYANPI = (25, u"双眼皮")
CHUTAITOUWEN = (26, u"祛抬头纹")
CHUYUWEIWEN = (27, u"除鱼尾纹")
CHUMEIJIANWEN = (28, u"祛眉间纹")
QUHEITOU = (29, u"祛黑头")
SUOMAOKONG = (30, u"缩毛孔")
QUBAN = (31, u"祛斑")
QUZHI = (32, u"祛痣")
FENGTAIYANXUE = (33, u"丰太阳穴")
MCHUN = (34, u"M唇")
XIUMEI = (35, u"修眉")
SUOZHAIXIABA = (36, u"缩窄下巴")
QUYANWEN = (37, u"祛眼纹")
BUSHUI = (38, u"补水")
class KYC_FACE_SHAPE(Enum):
WAWAFACE = (1, '娃娃脸')
EDANGFACE = (2, '鹅蛋脸')
FANGFACE = (3, '方脸')
LIXINGFACE = (4, '梨形脸')
GUAZIFACE = (5, '瓜子脸')
ZHUANGSHIFACE = (6, '钻石脸')
CHANGFACE = (7, '长脸')
class KYC_FACE_FEATURE(Enum):
TAOHUAEYE = (1, '桃花眼')
XIFENFEYE = (2, '细凤眼')
XIAOGOUEYE = (3, '小狗眼')
XIAOLUEYE = (4, '小鹿眼')
XINGEYE = (5, '杏眼')
KUANGBIYI = (6, '宽鼻翼')
ZAIBIYI = (7, '窄鼻翼')
ZHENGCHANGBIYI = (8, '正常鼻翼')
BAOCHUN = (9, '薄唇')
HOUCHUN = (10, '厚唇')
TAIDUCHUN = (11, '态度唇')
WEIXIAOCHUN = (12, '微笑唇')
CHUMEI = (13, '粗眉')
LIUYEMEI = (14, '柳叶眉')
TIAOMEI = (15, '挑眉')
YESHENGMEI = (16, '野生眉')
YIZIMEI = (17, '一字眉')
class KYC_FACE_STYLE(Enum):
CHULIANFACE = (1, '初恋脸')
YOUCHIFACE = (2, '幼齿脸')
RIXIFACE = (3, '日系脸')
HANGXIFACE = (4, '韩系脸')
WUMEIFACE = (5, '妩媚脸')
GUDIANFACE = (6, '古典脸')
ZHIXINGFACE = (7, '知性脸')
XIAOLUFACE = (8, '小鹿脸')
BIAOZHUNFACE = (9, '美人脸')
class PointLocationType(Enum):
"""点位类型"""
X_P = (1, '(x, -), x已知,不变;y变')
P_Y = (2, '(-, y), x变,y已知,不变')
X_Y = (3, '(x, y), x, y为已知两点')
class IncludedAngleType(Enum):
"""夹角类型"""
GREATER_THAN_90 = (1, '大于90度')
LESS_THAN_90 = (2, '小于等于90度')
class GoldValueDefineType(Enum):
"""黄金值定义类型"""
ANGLE = (1, "角度")
PERCENT = (2, "比值")
SKIN = (3, "肤质")
class PointValueUnit(Enum):
"""值的单位"""
CENTIMETRE = (1, "CM 厘米")
ANGLE = (2, "度 角度")
SKIN = (3, "肤质")
class GoldSkinValue(Enum):
"""黄金肤质"""
skin_color = (1, "肤色")
dark_circle = (2, "黑眼圈")
eye_pouch = (3, "眼袋")
forehead_wrinkle = (4, "抬头纹")
crows_feet = (5, "鱼尾纹")
eye_finelines = (6, "眼部细纹")
glabella_wrinkle = (7, "眉间纹")
nasolabial_fold = (8, "法令纹")
skin_type1 = (9, "出油度")
skin_type2 = (10, "含水度")
pore = (11, "毛孔")
blackhead = (12, "黑头")
acne = (13, "痘痘")
mole = (14, "痣")
skin_spot = (15, "斑点")
class RatioCombination(Enum):
"""脸型比例组合"""
COMBINATION_A = ('a', "0.62<下颌颧宽比<=0.77 且 0.9<中下庭比<=1.18;")
COMBINATION_B = ('b', "0.62<下颌颧宽比<=0.77 且 中下庭比<=0.9;")
COMBINATION_C = ('c', "0.62<下颌颧宽比<=0.77 且 1.18<中下庭;")
COMBINATION_D = ('d', "下颌颧宽比<=0.62 且 0.9<中下庭比<=1.18;")
COMBINATION_E = ('e', "下颌颧宽比<=0.62 且 中下庭比<=0.9;")
COMBINATION_F = ('f', "下颌颧宽比<=0.62 且 1.18<中下庭比;")
COMBINATION_G = ('g', "0.77<下颌颧宽比 且 0.9<中下庭比<=1.18")
COMBINATION_H = ('h', "0.77<下颌颧宽比 且 中下庭比<=0.9")
COMBINATION_I = ('i', "0.77<下颌颧宽比 且 1.18<中下庭比")
class CheekStyleSort(Enum):
"""脸型比例组合"""
RANK = (1, "按模板排序")
FEASIBILITY = (2, "按可行性排序")
class PLASTIC_V4_TAGS(int, Enum):
BIBUSUODUAN = (1, u"鼻部缩短")
BIBUJIACHANG = (2, u"鼻中隔延长")
RENZHONGSUODUAN = (3, u"人中缩短")
SUOXIABA = (4, u"缩短下巴")
DIANXIABA = (5, u"垫下巴")
FENGCHUN = (6, u"丰唇")
BAOCHUN = (7, u'薄唇')
SUODUANYANJU = (8, u"缩眼距")
FENGTAIYANXUE = (9, u"丰太阳穴")
KAIYANJIAO = (10, u"开眼角")
SHUANGYANPI = (11, u"双眼皮")
SHOULIAN = (12, u"瘦脸")
SUOXIAHEJIAO = (13, u"缩下颌角")
SUOBIYI = (14, u"缩鼻翼")
SUOBIBEI = (15, u"缩鼻背")
XIUMEI = (16, u"修眉")
SUOZHAIXIABA = (17, u"缩窄下巴")
MCHUN = (18, u"M唇")
XIAYANLIANXIAZHI = (19, u"下眼睑下至")
MEIBAINENFU = (20, u"美白")
QUHEIYANQUAN = (21, u"祛黑眼圈")
QUYANDAI = (22, u"祛眼袋")
CHUTAITOUWEN = (23, u"祛抬头纹")
QUYANWEN = (24, u"祛眼纹")
CHUMEIJIANWEN = (25, u"祛眉间纹")
CHUFALINGWEN = (26, u"祛法令纹")
KONGYOU = (27, u"控油")
BUSHUI = (28, u"补水")
SUOMAOKONG = (29, u"缩毛孔")
QUHEITOU = (30, u"祛黑头")
QUDOU = (31, u"祛痘")
QUZHI = (32, u"祛痣")
QUBAN = (33, u"祛斑")
SHANGYANLIANTISHENG = (34, u"上眼睑提升")
QUANGUNEITUI = (35, u"颧骨内推")
This diff is collapsed.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Author : RobertDing
# E-mail : robertdingx@gmail.com
# Date : 17/12/08 14:46:36
# Desc : hera 配置项
#
from .utils.enum import Enum, unique
@unique
class CONFIG(Enum):
POINT_1 = 'point_1', u'美分商城第1位置'
POINT_2 = 'point_2', u'美分商城第2位置'
POINT_3 = 'point_3', u'美分商城第3位置'
POINT_4 = 'point_4', u'美分商城第4位置'
@unique
class ORDER_STATUS(Enum):
CLOSED = '0', u'即将开始'
ON = '1', u'正在进行'
NOT_START = '2', u'已经结束'
@unique
class ADVERTISE_MANAGEMENT_POSITIONS(Enum):
SERVICE_HOME_RECOMMEND = '0', u'美购首页推荐'
SERVICE_LIST = '1', u'美购列表页'
SERVICE_HOME_BANNER = '2', u'美购品类模块'
SREACH_RESULT = '3', u'搜索结果页'
@unique
class BUSINESS_TYPE(Enum):
""" 业务类型 社区,广告,运营等 """
COMMUNITY = 'community', '社区'
ADVERTISE = 'advertise', '广告'
OPERATING = 'operating', '运营'
@unique
class ONLINE(Enum):
FALSE = False, '下线'
TRUE = True, '上线'
@unique
class MONTH_RANGE(Enum):
CURRENT = 'current', '当月'
MONTH3 = 'month3', '近3个月'
MONTH6 = 'month6', '近6个月'
from .types import *
from .error import *
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class ERROR(int, Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
"""
ENTRY_DOSE_NOT_EXIST = (200000, '客服分组不存在')
ENTRY_EXIST = (200001, '客服分组已存在')
ENTRY_NAME_COLLISION = (200002, '客服分组名字已存在')
ENTRY_NAME_INVALID = (200003, '客服分组名字不合法')
OBJECT_NOT_EXIST = (210001, '对象不存在')
LOGIN_REQUIRED = (210002, '需要登陆')
PERM_REQUIRED = (210003, '没有权限')
OBJECT_EXIST = (210004, '对象已存在')
STAFF_DELETED = (210005, '该员工被禁止登陆')
ARG_MISS = (210006, '参数缺少')
ARG_ERROR = (210007, '参数错误')
TICKET_EXISTS = (210008, '存在活跃会话')
ENTRY_CAN_NOT_DELETE = (210009, '该分组不允许删除')
# coding=utf-8
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class KEFU_STATUS(Enum):
OFFLINE = (0, '离线')
ONLINE = (1, '在线')
LEAVE = (2, '离开')
@unique
class THREAD_SOURCE(Enum):
NEW = (1, '新创建')
TRANSFER = (2, '转接')
@unique
class THREAD_RESULT(Enum):
STAFF_FINISH = (0, '客服完成')
USER_TIMEOUT = (1, '用户超时')
STAFF_TIMEOUT = (2, '客服超时')
TRANSFER = (3, '转接')
STAFF_TRANSFER_GROUP = (4, '客服转接分组')
USER_TRANSFER = (5, '用户重新选择分组')
@unique
class THREAD_STATUS(Enum):
FINISHED = (0, '服务完成')
SERVING = (1, '服务中')
@unique
class TICKET_RESULT(Enum):
STAFF_FINISH = (0, '客服完成')
USER_TIMEOUT = (1, '用户超时')
STAFF_TIMEOUT = (2, '客服超时')
STAFF_TRANSFER_GROUP = (4, '客服转接分组')
USER_TRANSFER = (5, '用户重新选择分组')
@unique
class MESSAGE_TYPE(Enum):
CONTENT = (0, '对话消息')
CONTROL = (1, '控制消息')
@unique
class MESSAGE_ROLE(Enum):
STAFF = (1, '客服')
USER = (2, '用户')
@unique
class POLL_EVENT_TYPE(Enum):
MESSAGE = (1, '消息')
USER = (2, '用户')
@unique
class CONVERSATION_STATUS(Enum):
FINISH = (0, '已结束')
IN_QUEUE = (1, '排队中')
PROCESSING = (2, '进行中')
@unique
class WEBSOCKET_TYPE(Enum):
NEW_MESSAGE = (1, '新消息')
NEW_USER = (2, '新用户')
CONTROL = (3, '控制消息')
NEW_COMMENT = (4, '新留言')
@unique
class PUSH_CODE(Enum):
START = (1, '开始会话')
FINISH = (2, '客服完成会话')
TIMEOUT = (3, '超时提示')
USER_OFFLINE = (4, '用户超时下线')
WAIT_OFFLINE = (5, '排队超时下线')
SYS_MSG = (6, '下发系统消息')
@unique
class KEFU_RESPONSE(Enum):
WAITING = (1, '排队提示')
KEFU_ACCESS = (2, '客服接入')
WAITING_TIMEOUT = (3, '排队超时')
WELCOME = (4, '客服欢迎语')
USER_TIMEOUT = (5, '用户超时提示')
KEFU_TIMEOUT = (6, '客服超时提示')
TIMEOUT_OFFLINE = (7, '用户超时下线')
KEFU_FINISH = (8, '客服标记会话结束')
MESSAGE_RECEIVED = (9, '客服收到留言')
NO_KEFU = (10, '客服离线回复')
TRANSFER = (11, '转接提示语')
CHANGE_ENTRY = (12, '用户主动切换组')
@unique
class ALERT_TYPE(Enum):
ALERT = (1, '系统提示')
CONVERSATION = (2, '对话消息')
@unique
class CUSTOMER_LINK_RECORD_OPREATE_TYPE(Enum):
ALLOT = (1, '分配')
TRANSFER = (2, '转接')
GET_MESSAGE = (3, '获取消息')
FINISH_THREAD = (4, '完成对话')
@unique
class CUSTOMER_LINK_RECORD_OPREATOR_TYPE(Enum):
SYSTEM = (1, '系统')
STAFF = (2, '客服')
# -*- coding: utf-8 -*-
""" 项目库. """
from gm_types.utils.enum import Enum
class FEED_CARD_TYPE(Enum):
""" 项目库Feed 卡片类型 """
PLAN = ("plan", '价格')
HOSPITAL = ("hospital", '医院')
DOCTOR = ("doctor", '医生')
DIARY = ("diary", '评价')
class PLAN_CARD_CONSULT_TYPE(Enum):
""" 项目库Feed 卡片咨询类型 """
MESSAGE = ("message", '私信')
SALES_LEAD = ("sales_lead", '私信线索触发')
class PLAN_TYPE(Enum):
""" 方案类型. """
LEVEL_ONE = (1, "一级方案")
LEVEL_TWO = (2, "二级方案")
class PLAN_ATTR_TYPE(Enum):
""" 属性类型 """
SINGLE_CHOICE = (1, '单选')
MULTIPLE_CHOICE = (2, '多选')
TEXT = (3, '文字')
class PLAN_MATERIAL_TYPE(Enum):
""" 物料类型 """
DRUGS = (1, '药品')
INSTRUMENT = (2, '仪器')
MATERIAL = (3, '材料')
class PRICE_AGGRE_TYPE(Enum):
""" 最低/最高价聚合维度类型. """
ONE_LEVEL_PLAN = (1, '一级方案')
TWO_LEVEL_PLAN = (2, '二级方案')
ONE_LEVEL_PLAN_HOSPITAL = (3, '一级方案下医院')
ONE_LEVEL_PLAN_DOCTOR = (4, '一级方案下医生')
TWO_LEVEL_PLAN_HOSPITAL = (5, '二级方案医院')
TWO_LEVEL_PLAN_DOCTOR = (6, '二级方案医生')
PLAN = (7, '一级/二级方案')
class REQ_AUDIT_STATUS(Enum):
""" 请求参数中的报价审核状态 """
ALL = (1, '全部')
NEW_PENDING = (2, '新增待审核')
UPDATE_PENDING = (3, '修改待审核')
PASSED = (4, '审核通过')
REJECTED = (5, '审核不通过')
class PLAN_QUOTATION_TYPE(Enum):
""" 报价类型 """
NEW = (1, '新增')
UPDATE = (2, '修改')
class PLAN_QUOTATION_STATUS(Enum):
""" 报价状态 """
PENDING = (1, '待审核')
PASSED = (2, '已通过')
REJECTED = (3, '已驳回')
class AUDIT_OPERATION(Enum):
""" 审核操作 """
PASS = (1, '通过')
REJECT = (2, '驳回')
class PLAN_OPERATION(Enum):
""" 方案操作 """
ENABLE = (1, '启用')
DISABLE = (2, '禁用')
# -*- coding: utf-8 -*-
""" 商家-线索通相关枚举 """
from gm_types.utils.enum import Enum
class SALES_LEAD_NOTI_TYPE(Enum):
""" 线索通站内授权通知类型 """
HOSPITAL_PHONE_AUTHORIZE = (1, '机构电话授权')
class VP_AVAILABLE_STATUS(Enum):
""" 可用状态 """
AVAILABLE = (1, "可用")
UNAVAILABLE = (2, "不可用")
class VP_UNBIND_REASON(Enum):
""" 解绑原因. """
EXPIRE = (1, "过期解绑")
BAD = (2, "号码异常解绑")
class VP_TALK_MODE(Enum):
""" 通话模式. """
AXB = (1, "AXB")
XB = (2, "XB")
AXN = (3, "AXN")
class VP_PLATFORM(Enum):
TENCENT = ("TENCENT", "腾讯云")
HUAWEI = ("HUAWEI", "华为云")
ALIYUN = ("ALIYUN", '阿里云')
class VP_UNAVAILABLE_REASON(Enum):
""" 虚拟号码不可用原因. """
REF_NUM_FULLED = (1, "绑定已满")
class VP_NPP_CALL_END_STATUS(Enum):
""" 腾讯云 呼叫最后状态 """
SUCCESS = (1, "通话成功")
BUSSY = (2, "被叫忙")
NO_ANSWER = (3, "被叫无应答")
REFUSED = (4, "被叫拒接")
HANG_UP = (5, "主叫提前挂机")
SPACE_NUMBER = (6, "空号")
CLOSED = (7, "关机")
TEMPORY_CANT_ANSWER = (8, "暂时无法接听")
SUSPEND = (9, "停机")
NO_BOUND = (12, "无绑定关系")
NETWORK_LIMIT = (15, "网络限制")
OTHER_FAILED = (16, "其他失败情形")
NO_RIGHT = (17, "无权呼叫")
class SALES_LEAD_TRIGGLE_TYPE(Enum):
""" 线索触发类型. """
PRIVATE_DOMAIN_MESSAGE = (1, '私域私信线索触发')
PUBLIC_DOMAIN_MESSAGE = (2, '公域私信线索触发')
PRIVATE_DOMAIN_PHONE_AUTHORIZE = (3, '私域电话线索触发')
PUBLIC_DOMAIN_PHONE_AUTHORIZE = (4, '公域电话线索触发')
class USER_ACTION_TYPE(Enum):
""" 用户触发行为 """
USER_FIRST_MESSAGE = (1, '用户首次私信商家')
MESSAGE_QUESTION = (2, '用户私信提问')
CORE_PAGE_STAY_LONG = (3, '核心页面停留超过时长')
CORE_PAGE_SKIP = (4, '核心页面间跳转浏览')
PLAN_DOCTOR_NEGOTIATED_PRICE = (5, '方案库医生商议议价')
PLAN_HOSPITAL_NEGOTIATED_PRICE = (6, '方案库医院商议议价')
PLAN_PLAN_NEGOTIATED_PRICE = (7, '方案库方案商议议价')
CONSULT_APPOINTMENT = (8, '面诊预约卡')
class USER_ACTION_TRIGGLE_STATUS(Enum):
""" 用户行为触发返回结果状态 """
PENDING = (0, '触发线索任务处理中')
FAILED = (1, '触发线索任务失败')
SUCCESS = (2, '触发线索任务成功')
class LEAD_TASK_SOURCE(Enum):
""" 线索任务来源 """
MESSAGE = (1, '私信用户')
PHONE = (2, '用户行为电话授权')
PROACTIVE = (3, '主动私信')
class LEAD_PHONE_AUTHORIZE_TYPE(Enum):
""" 电话授权来源页面 """
SERVICE_HOME_PAGE = (1, '商品详情页停留/跳转')
HOSPITAL_HOME_PAGE = (2, '机构主页停留/跳转')
DOCTOR_HOME_PAGE = (3, '医生主页停留/跳转')
DIARY_HOME_PAGE = (4, '日记详情页停留/跳转')
PLAN_DOCTOR_NEGOTIATED_PRICE = (5, '方案库医生商议议价')
PLAN_HOSPITAL_NEGOTIATED_PRICE = (6, '方案库医院商议议价')
PLAN_PLAN_NEGOTIATED_PRICE = (7, '方案库方案商议议价')
CONSULT_APPOINTMENT = (8, '面诊预约卡')
class STATION_NOTICE_NOTI_TYPE(Enum):
""" 站内通知 通知类型 """
SALES_LEAD_PHONE_AUTHORIZE = (1, '线索通电话授权')
# -*- coding: utf-8 -*-
""" 号码保护相关枚举 """
from gm_types.utils.enum import Enum
class ALI_NPP_API_CODE(Enum):
"""阿里号码保护api错误码"""
OK = (0, 'OK')
ISP_RAM_PERMISSION_DENY = (1 , 'RAM权限DENY')
ISV_OUT_OF_SERVICE = (2, '业务停机')
ISV_PRODUCT_UN_SUBSCRIPT = (3, '未开通云通信产品的阿里云客户')
ISV_ACCOUNT_NOT_EXISTS = (4, '账户不存在')
ISV_ACCOUNT_ABNORMAL = (5, '账户异常')
ISP_SYSTEM_ERROR = (6, '系统异常')
ISP_UNKNOWN_ERR_CODE = (7, '运营商未知错误')
ISV_PARTNER_NOT_EXIST = (8, '未知合作伙伴')
ISV_NO_NOT_EXIST = (9, '号码不存在')
ISV_ILLEGAL_ARGUMENT = (10, '参数错误')
ISP_DAO_EXCEPTION = (11, '数据库异常')
ISV_NO_AVAILABLE_NUMBER = (12, '无可用号码')
ISP_VENDOR_UNAVAILABLE = (13, '运营商降级')
ISV_FLOW_LIMIT = (14, '业务流控')
ISV_PARTNER_IS_CLOSED = (15, 'partner被关停')
ISV_FORBIDDEN_ACTION = (16, '无权操作')
ISV_NO_USED_BY_OTHERS = (17, '号码被其他业务方占用')
ISV_VENDOR_BIND_FAILED = (18, '运营商绑定失败')
ISV_EXPIRE_DATE_ILLEGAL = (19, '过期时间非法')
ISV_MOBILE_NUMBER_ILLEGAL = (20, '号码格式非法')
ISV_BIND_CONFLICT = (21, '绑定冲突')
SDK_INVALID_REGION_ID = (22, 'sdk中regionid错误')
SDK_SERVER_UNREACHABLE = (23, '服务器不可达')
SDK_INVALID_REQUEST = (24, '请求不合法')
SDK_MISSING_ENDPOINTS_FILER = (25, 'sdk中缺失endpoint操作')
SDK_UNKNOWN_SERVER_ERROR = (26, 'sdk未知阿里服务器错误')
SDK_INVALID_CREDENTIAL = (27, 'sdk证书错误')
SDK_INVALID_SESSION_EXPIRATION = (28, 'sdk中session错误')
SDK_GET_SESSION_CREDENTIAL_FAILED = (29, 'sdk获取session证书错误')
SDK_INVALID_PARAMS = (30, 'sdk参数错误')
SDK_NOT_SUPPORT = (31, 'sdk不支持')
SDK_ENDPOINT_RESOLVING_ERROR = (32, 'endpoint处理错误')
SDK_ENDPOINT_TESTABILITY = (33, 'SDK.EndpointTestability')
SDK_HTTP_ERROR = (34, 'http错误')
SDK_INVALID_PARAMETER = (35, 'sdk无效参数')
SUBS_NOT_EXIST = (36, '绑定关系不存在')
POOLKEY_NOT_EXIST = (37, 'pool_key错误')
UNKNOWN_ALI_CODE = (400, '未知code')
class VIRTUAL_PHONE_STATUS(Enum):
"""
阿里虚拟号码绑定状态
"""
NORMAL = (1, '呼叫正常')
ANOMAL_GIVE_X = (2, '当前绑定关系呼叫状态异常,平台重新分配了一个临时可用的X号码用于呼叫')
ANOMAL_GIVE_X_FAIL = (3, '当前绑定呼叫异常,且分配临时号码失败。建议用户降级为透传真实的被叫号码来继续呼叫。')
OVERDUE = (4, '绑定关系已经过期')
class CALL_DISPLAY_TYPE(Enum):
DISPLAY_X = (1, '主被叫显示中间号码X')
DISPLAY_B = (2, 'B/N侧号码呼叫时,给A侧号码显示B/N的真实号码')
DISPLAY_A = (3, 'A侧号码呼叫时,给B/N侧号码显示真实号码。')
class VIRTUAL_CALL_RELEASE_CAUSE(Enum):
UN_BIND_NUM = (1, '未分配的号码')
UN_ROUTE_SWITCH = (2, '无路由到指定的转接网')
UN_ROUT_DESTINATION = (3, '无路由到目的地')
SEND_DEDICATED_MESSAGE_TONE = (4, '发送专用信息音')
NORMAL_CALL_UNWINDING = (16, '正常的呼叫拆线')
USER_BUSY = (17, '用户忙')
NOT_RESPONDING = (18, '用户未响应')
NOT_ANSWER = (19, '用户未应答')
ABSENCE = (20, '用户缺席')
CALL_REJECT = (21, '呼叫拒收')
NUM_CHANGED = (22, '号码改变')
UNREACH_DESTINATION = (27, '目的地不可达')
INVALID_NUM_FORMAT = (28, '无效的号码格式(地址不全)')
PERFORMANCE_REJECT = (29, '性能拒绝')
NORMAL_UNSPEZIFIZIERT = (31, '正常—未指定')
NOT_SCHALTUNGEN = (34, '无电路 / 通路可用')
SWITCH_DEVICE__BLOCK = (42, '交换设备拥塞')
REQUEST_PERFORMANCE_NOT_PREDETERMINED = (50, '所请求的性能未预定')
CUG_RESTRAINT_TO_CALL = (53, 'CUG中限制去呼叫')
CUG_RESTRAINT_CALLED = (55, 'CUG中限制来呼叫')
NO_COMPETENCE_IN_CARRYING_CAPACITY = (57, '承载能力无权')
UNAVAILABLE_CARRYING_CAPACITY = (58, '承载能力目前不可用')
UNREACHED_CARRYING_CAPACITY = (65, '承载能力未实现')
UNREACHED_PERFORMANCE = (69, '所请求的性能未实现')
CALLED_USER_NOT_MEMBER_OF_CUG = (87, '被叫用户不是CUG的成员')
INCOMPATIBLE_DESTINATION = (88, '不兼容的目的地')
NOT_EXIST_CUG = (90, '不存在的CUG')
INVALID_TRANSFER_CHOICE = (91, '无效的转接网选择')
INVALID_MESSAGE = (95, '无效的消息,未指定')
INVALID_MESSAGE_TYPE = (97, '消息类型不存在或未实现')
INVALID_PARAM = (99, '参数不存在或未实现')
RESUME_TIMER = (102, '定时器终了时恢复')
INVALID_PARAM_TRANSFER = (103, '参数不存在或未实现—传递')
MESSAGE_HAVE_UNDIFINED_PARAM = (110, '消息带有未被识别的参数—舍弃')
WRONG_PROCOTOL = (111, '协议错误,未指定')
INTEROPERABLE = (127, '互通,未指定')
class UNBIND_REASON(Enum):
AUTO = (1, '自动过期解绑')
MANUAL = (2, '手动解绑')
ERROR = (3, '异常解绑')
class CALL_TYPE(Enum):
A_TO_B = (0, 'A打给B')
B_TO_A = (1, 'B打给A')
SEND_MESSAGE = (2, '短信发送')
RECIEVE_MESSAGE = (3, '短信接受')
CALL_INTERDICT = (4, '呼叫拦截')
MESSAGE_INTERDICT = (5, '短信收发拦截')
class RELEASE_DIR(Enum):
PLATFORM = (0, '平台释放')
CALL_RELEASE = (1, '主叫挂断')
CALLED_RELEASE = (2, '被叫挂断')
\ No newline at end of file
from .qa import *
from .tractate import *
from .enum import *
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
class COMMUNITY_DISPERSE_SORT_TYPE(Enum):
"""
社区数据散排类型
"""
LIVE = (1, u"直播")
ACTIVITY = (2, u"免费招募")
LIVE_NOTICE = (3, u"直播预告")
DOCTOR_VIDEO_POST = (4, u"医生视频帖")
DOCTOR_TEXT_POST = (5, u"医生文本帖")
ARTICLE = (6, u"专栏")
class MEDIA_IMAGE_URL_SOURCE(Enum):
"""
图片地址来源
"""
CREATE = ("1", "创建")
RICH_TEXT = ("2", "富文本")
HEAD = ("3", "头图")
@unique
class COMMON_REPLY_TYPE(Enum):
ANSWER = ('1', '回答')
TOPIC = ('2', '日记帖')
ARTICLE = ('3', '专栏')
TRACTATE = ('4', '用户帖')
QUALITY = ('5', '回答异行评论')
DOCTOR_TRACTATE = ('6', '医生帖')
@unique
class ATTENTION_NOTIFY_TYPE(Enum):
"""
关注用户的动态 类型
"""
UNDEFINED = ('1', '全部类型')
QUESTION = ('2', '问题')
DIARY = ('3', '日记本')
TRACTATE = ('4', '帖子(用户)')
LIVE = ('5', '直播')
@unique
class VIDEO_IMMERSE_DATA_TYPE(Enum):
"""
视频沉浸式,数据类型
"""
DIARY = ("diary", "日记本")
TRACTATE = ("user_post", "用户帖")
QUESTION = ("question", "问题")
ANSWER = ("answer", "回答")
@unique
class VIDEO_IMMERSE_FROM_TYPE(Enum):
"""
视频沉浸式,入口来源
"""
INDEX = ("index", "首页")
SEARCH = ("search", "搜索")
CONTENT_AGGRE = ("content_aggre", "内容聚合")
CATEGORY_AGGRE = ("category_aggre", "品类聚合")
PLASTIC_FEEDS = ("plastic_feeds", "模拟整形feeds")
class VOTE_TASK_TYPE(Enum):
"""
点赞灌水业务类型
"""
TOPIC = ('1', '日记帖')
TRACTATE = ('2', '用户帖')
QUESTION = ('3', '问题')
DIARY = ('4', '日记本')
class IMAGE_TYPE(Enum):
"""
图片类型
"""
OTHER = (1, '其他图片')
GIF = (2, "GIF动图")
JPG = (3, "JPG图片")
JPEG = (4, "JPEG图片")
PNG = (5, "PNG图片")
BMP = (6, "BMP位图")
WEBP = (7, "WEBP图片类型")
TIFF = (8, "TIFF图片类型")
class TOPIC_PLATFORM_TYPE(Enum):
"""
帖子来源类型
"""
DEFAULT = (0, '默认')
XIAOHONGSHU = (1, '小红书')
WEIBO = (2, '微博')
class PUSH_ACTION_TYPE(Enum):
"""
推送行为、具体类型划分
"""
ANSWER_RECV_VOTE = (1, "回答被点赞")
ANSWER_RECV_REPLY = (2, "回答下发评论")
ANSWER_CREATE_PUSH_TO_QUESTION_AUTHOR = (3, "创建回答, 推送给问题作者")
ANSWER_CREATE_PUSH_TO_FANS = (4, "创建回答, 推送给粉丝")
USER_RECV_FOLLOW = (11, "用户加关注")
class INTEREST_CONTENT_TYPE(Enum):
"""
感兴趣内容类型
"""
DIARY = (1, '日记本')
TOPIC = (2, '日记帖')
QUESTION = (3, '问题')
ANSWER = (4, '回答')
TRACTATE = (5, '用户帖')
SERVICE = (6, '美购')
COUPON = (7, '美券')
MARK = (8, '打卡内容卡片')
class DELAY_PUSH_TYPE(Enum):
"""
防干扰推送
"""
INTEREST = (1, '感兴趣')
ANSWER_REPLY_VOTE = (2, '回答评论点赞')
class QUALITY_QUESTION_CLASSIFY_TYPE(Enum):
"""
追问问题类型
"""
COMMON = (1, '普通问题')
TAG = (2, '标签绑定问题')
TAG_GROUP = (3, '标签大组绑定问题')
class GROUP_TOPIC_SORT_TYPE(Enum):
"""小组、话题排序规则"""
ALL = (1, '全部')
DYNAMIC = (2, '动态规则')
class QUICK_SEARCH_CONTENT_DIVISION(Enum):
"""
文本内部快速搜索内容划分
"""
TOPIC = ("topic", u"日记帖")
QUESTION = ("question", u"问题")
ANSWER = ("answer", u"回答")
TRACTATE = ("tractate", u"用户帖")
ARTICLE = ("article", u"专栏")
class FAKE_REPLY_BAND_TYPE(Enum):
"""
灌水评论配置类型
"""
TAG = (1, '标签绑定')
TAG_GROUP = (2, '标签大组绑定')
# TAG_ATTR = (3, '属性标签') # v7.29.0标签调整,注释属性标签
class COMMUNITY_CONTENT_TYPE(Enum):
"""社区内容类型"""
TOPIC = ('topic', '日记帖')
ANSWER = ('answer', '回答')
TRACTATE = ('tractate', '用户帖')
class FAKE_TYPE(Enum):
"""灌水类型"""
COMMENT = ('comment', '评论')
VOTE = ('vote', '点赞')
QUALITY = ('quality', '追问')
FOLLOW = ('follow', '关注')
class COMMUNITY_OTHER_ACTIVITY_CREATION_TYPES(Enum):
"""
社区其他活动创建内容类型
"""
DAILY_CHECK = ("daily_check", "打卡")
VARIETY_SHOW_YOUNG = ("variety_show_young", "选秀节目(少年之名)打榜活动")
GROUP_DETAIL = ("group", "普通小组详情页")
GROUP_TOPIC_DETAIL = ("group_topic", "普通小组话题详情页")
class TRACATE_VIDEO_URL_SOURCE(Enum):
"""
帖子视频地址来源
"""
HEAD = ("1", "头部")
RICH_TEXT = ("2", "富文本")
class NOTICATION_LIST_CATEGORY(Enum):
"""
消息列表类型
"""
VOTE = (0, '赞列表')
FAVOR = (1, '收藏列表')
\ No newline at end of file
# coding=utf-8
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class CONTENT_CLASS(Enum):
UNAUDITED = (0, '未分级')
ILLEGAL = (1, '不合规')
BAD = (2, '差')
GENERAL = (3, '一般')
FINE = (4, '良好')
EXCELLENT = (5, '优秀')
OUTSTANDING = (6, '特别优秀')
@unique
class SPAM_LABEL(Enum):
NORMAL = (0, '正常')
SPAM = (1, '疑似垃圾')
EROTICISM = (2, '色情')
ADVERTISE = (3, '广告')
PROHIBIT = (4, '违禁')
ABUSE = (5, '谩骂')
WATERING = (6, '灌水')
@unique
class GRABBING_PLATFORM(Enum):
ZHIHU = ('0', '知乎')
WEIXIN = ('1', '微信')
WEIBO = ('2', '微博')
HERA = ('3', 'hera后台')
#WANGYI = ('4', '网易女人')
#TENCENT = ('5', '腾讯网')
#HEADLINE = ('6', '今日头条')
INSHEADLINE = ('7', '趣头条')
KYC = ('8', 'kyc流程创建')
GM = ('99', '更美内部') # 7675后版本增加用户上传图文混排
@unique
class QUESTION_SOURCE(Enum):
INVITATION = ("0", "邀请回答")
RECOMMEND = ("1", "推荐回答")
@unique
class ASSESSMENT_TYPE(Enum):
ANSWER = ("0", "回答")
SPECIALCOLUMN = ("1", "专栏")
@unique
class QUESTION_TYPE(Enum):
TRADE = (0, '交易')
GOSSIP = (1, '八卦')
EMOTION = (2, '情感')
BEAUTY_SKILL = (3, '变美技巧')
STAR_PRETTY = (4, '明星颜值')
PRODUCT_TEST = (5, '美妆产品评测')
STAR_SHARE = (6, '明星变美分享')
@unique
class SEND_ANSWER_STATUS(Enum):
WAITTING = (0, '未发送')
SUCCESS = (1, '发送成功')
FAILE = (2, '发送失败')
@unique
class QA_CONTENT_TYPE(Enum):
ORDINARY = ('0', '普通问答')
VIDEO = ('1', '视频问答')
@unique
class VIDEO_SOURCE_TYPE(Enum):
DIARY = (0, '日记贴视频')
QUESTION = (1, '问题视频')
ANSWER = (2, '回答视频')
ARTICLE = (3, '专栏视频')
@unique
class COMMENT_DIFF_TYPE(Enum):
GENERAL = (0, '普通评论')
QUALITY = (1, '异形评论')
@unique
class QUALITY_QUESTION_REPLY_TYPE(Enum):
ANSWER = (2, '异形回复')
REPLY = (3, '异形评论')
\ No newline at end of file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
class TRACTATE_STATUS(Enum):
"""
新帖子审核状态
"""
TEMPORARY_STORAGE = ("1", u"暂存")
UNAUDITED = ("2", u"未审核")
AUDIT_SUCCESS = ("3", u"审核通过")
AUDIT_REJECT = ("4", u"审核拒绝")
class TRACTATE_PLATFORM(Enum):
"""
新帖子发布来源
"""
GM = ("1", u"更美")
HERA = ("2", u"HERA后台")
DOCTOR = ("3", u"医生端")
XIAOHONGSHU = ("4", u"小红书")
WEIBO = ("5", u"微博")
SOYOUNG = ("6", u"新氧")
MARK = ("7", u"站内打卡活动")
VARIETY_SHOW_YOUNG = ("8", "选秀节目(少年之名)打榜活动")
GROUP_DETAIL = ("9", "普通小组")
GROUP_TOPIC_DETAIL = ("10", "普通小组话题")
class TRACTATE_CONTENT_LEVEL(Enum):
"""
新帖子内容等级
"""
NULL = ("0", u"未评级")
BAD = ('2', u'差')
GENERAL = ('3', u'一般')
FINE = ('4', u'良好')
EXCELLENT = ('5', u'优秀')
OUTSTANDING = ('6', u'特别优秀')
class TRACTATE_REPLY_SOURCE(Enum):
"""
新帖子评论,数据来源
"""
GM = ("1", u"更美")
HERA = ("2", u"HERA后台")
class TRACTATE_ID_SOURCE(Enum):
"""
新帖子,数据类型,目前应用于举报
"""
TRACTATE = ('1', u'新帖子')
TRACTATE_REPLY = ('2', u'新帖子评论')
class TRACTATE_REPORT_TYPE(Enum):
"""
举报类型
"""
TRACTATE = ('1', "举报帖子")
IMAGE = ('2', u'举报图片')
VIDEO = ('3', u'举报视频')
REPLY = ('4', u'举报回复')
class TRACTATE_REPORT_ACTION(Enum):
"""
举报处理
"""
UNHANDLED = ('0', '未处理')
USER_MISTAKE = ('6', '用户误点')
class TRACTATE_REPLY_STATUS(Enum):
"""
Hera后台回复状态
"""
NOT_REPLY = ('0', '回复')
HAS_REPLY = ('1', '已回复')
class TRACTATE_REPLY_HIGHLIGHT(Enum):
"""
高亮状态
"""
DARK = (0, '不高亮')
LIGHT = (1, '高亮')
MORE_LIGHT = (2, '查看更多高亮')
class SOFT_ARTICLE_RELATION_TYPE(Enum):
"""
医生后台 关联相关内容类型
"""
TAG = (1, '标签')
SERVICE = (2, '美购')
DIARY = (3, '日记本')
class SOFT_ARTICLE_TYPE(Enum):
"""
医生后台 帖子类型
"""
ORDINARY = (1, '普通帖子')
VIDEO = (2, '视频帖子')
class SOFT_ARTICLE_ORDER(Enum):
"""
医生后台 帖子顺序
"""
UNSET = (999, '未设置置顶')
IN_TOP = (1, '置顶1')
IN_SECOND = (2, '置顶2')
IN_THIRD = (3, '置顶3')
class TRACTATE_DATA_TYPE(Enum):
"""
帖子数据类型,用于区分是医生帖 和 用户帖
"""
USER = ("user_post", "用户帖")
DOCTOR = ("doctor_post", "医生帖")
class TRACTATE_SORT_TYPE(Enum):
"""
帖子数据排序方式,用于微信小程序 帖子列表的最热和最新
"""
HOTEST = (1, "最热")
NEWEST = (2, "最新")
class APPLET_PAGE_FROM(Enum):
"""
小程序进入页面的来源
"""
CARD = (100, "订阅消息卡片")
class APPLET_SUBSCRIBE_MSG_TYPE(Enum):
"""
小程序订阅消息类型
"""
COMMENT = (1, "评论")
VOTE = (2, "点赞")
NEW_COMMENT = (3, "新增评论")
RELATED_CONTENT = (4, "相关内容")
class PGC_TYPE(Enum):
"""
增加pgc类别:无,社区,新媒体,美学专家,默认是无
"""
DDEFAULT = (0, "无")
COMMUNITY = (1, "热点")
NEW_MEDIA = (2, "科普")
AESTHETIC_EXPERT = (3, "转化")
# -*- coding: UTF-8 -*-
\ No newline at end of file
# -*- coding: UTF-8 -*-
from ..utils.enum import Enum, unique
@unique
class DBMWEndPoints(Enum):
GAIA_TAG = "dbmw/gaia/tag", "Gaia服务Tag数据同步事件"
QUESTION_TRIGGER = "dbmw/trigger/question", "用来触发question同步"
TOPIC_TRIGGER = "dbmw/trigger/topic", "用来触发topic同步"
PUNISHMENT_TRIGGER = "dbmw/trigger/punishment", "罚单数据,处罚医生信息同步"
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class MESSAGE_TYPE(Enum):
TEXT = ('0', '文字')
AUDIO = ('1', '语音')
IMAGE = ('2', '图片')
SERVICE = ('3', '美购详情')
DOCTOR_TOPIC = ('4', '医生发布帖子')
TEXT_WITH_URL = ('5', '文字+链接')
CUSTOMER_SRV_CTRL = ('6', '客服控制消息')
DIARY = ('8', "日记本")
GIFT = ('9', "美券礼包")
CONSULTATION_COUNSEL_REPLAY = ('10', "视频面诊回放")
CONSULTATION_COUNSEL_REPORT = ('11', "面诊报告")
APPOINTMENT_CARD = ('12', "预约卡片")
@unique
class CONVERSATION_TYPE(Enum):
MESSAGE = (1, '普通私信会话')
CUSTOMER_SRV = (2, '客服私信会话')
CONSULTANT = (3, '更美咨询师会话')
TRANSFER_CONSULTANT = (4, '转诊咨询师会话')
AI_QA_MESSAGE = (5, 'ai问答消息会话') # add in 7.30.0
@unique
class MESSAGE_RECEIVER_TYPE(Enum):
ONE_TO_ONE = (1, '1对1单聊')
GROUP = (2, '群聊')
class MESSAGE_GROUP_TYPE(Enum):
NORMAL_GROUP = (1, '普通群')
CUSTOMER_SERVICE_GROUP = (2, '转诊咨询群')
class MESSAGE_GROUP_USER_ROLE(Enum):
NORMAL = (1, '普通用户')
CUSTOMER_SERVICE = (2, '转诊咨询用户')
class TRANSFER_CONSULTANT_SWITCH_TYPE(Enum):
BE_ACTIVATE = (1, '被激活与用户的会话')
BE_REMOVED = (2, '被剔除与用户的会话')
class TRANSFER_CONSULTANT_LEVEL(Enum):
ONE = (1, '一级转诊咨询师')
TWO = (2, '二级转诊咨询师')
@unique
class CONVERSATION_ORDER(Enum):
LAST_REPLY_TIME = (1, '最后对话时间')
UNREAD = (2, '未读+最后对话时间')
@unique
class MessageTraceEventType(Enum):
""" 私信链路事件追踪 """
TRACE_BACKEND_PRIVATE_SEND = "GM.Message.TRACE_BACKEND_PRIVATE_SEND"
TRACE_BACKEND_PRIVATE_SEND_SUCCESS = "GM.Message.TRACE_BACKEND_PRIVATE_SEND_SUCCESS"
TRACE_BACKEND_PRIVATE_SEND_FAILED = "GM.Message.TRACE_BACKEND_PRIVATE_SEND_FAILED"
TRACE_GAIA_RPC_CALLED = "GM.Message.TRACE_GAIA_RPC_CALLED"
TRACE_GAIA_RPC_SUCCESSED = "GM.Message.TRACE_GAIA_RPC_SUCCESSED"
TRACE_GAIA_RPC_FAILED = "GM.Message.TRACE_GAIA_RPC_FAILED"
TRACE_GAIA_RPC_ERROR = "GM.Message.TRACE_GAIA_RPC_ERROR"
TRACE_GAIA_WRITE_TO_MYSQL = "GM.Message.TRACE_GAIA_WRITE_TO_MYSQL"
TRACE_GAIA_WRITE_TO_ES = "GM.Message.TRACE_GAIA_WRITE_TO_ES"
TRACE_GAIA_MESSAGE_JPUSH_TASK_SENDED = "GM.Message.TRACE_GAIA_MESSAGE_JPUSH_TASK_SENDED"
TRACE_GAIA_MESSAGE_JPUSH_TASK_RECIVED = "GM.Message.TRACE_GAIA_MESSAGE_JPUSH_TASK_RECIVED"
TRACE_GAIA_MESSAGE_JPUSH_TO_USER = "GM.Message.TRACE_GAIA_MESSAGE_JPUSH_TO_USER"
TRACE_GAIA_MESSAGE_JPUSH_TO_DOCTOR = "GM.Message.TRACE_GAIA_MESSAGE_JPUSH_TO_DOCTOR"
TRACE_GAIA_MESSAGE_JIM_TASK_SENDED = "GM.Message.TRACE_GAIA_MESSAGE_JIM_TASK_SENDED"
TRACE_GAIA_MESSAGE_JIM_TASK_RECIVED = "GM.Message.TRACE_GAIA_MESSAGE_JIM_TASK_RECIVED"
TRACE_GAIA_MESSAGE_JIM_TO_USER = "GM.Message.TRACE_GAIA_MESSAGE_JIM_TO_USER"
TRACE_GAIA_NOTI_POLL = "GM.Message.TRACE_GAIA_NOTI_POLL"
TRACE_POLL_PUB_EMPTY_ADDR = "GM.Message.TRACE_POLL_PUBLISH_EMPTY_ADDR"
TRACE_POLL_PUB_TO_ADDR = "GM.Message.TRACE_POLL_PUBLISH_TO_ADDR"
TRACE_POLL_SUB_FROM_ADDR = "GM.Message.TRACE_POLL_SUB_FROM_ADDR"
\ No newline at end of file
# -*- coding: utf-8 -*-
from .utils.enum import Enum, unique
@unique
class NETEASEIM_SIGNAL_INVITE_TYPE(Enum):
"""
网易云信信令服务,邀请加入房间信息的类型定义。
由于客户端/Web端等多端可能同时在线,但是部分邀请消息只有部分端才需要处理,因此定义这个类型
所有邀请的Ext信息都是一个JSON,一定会带有一个type字段,type里面的值由这个枚举定义。
接收方先根据type判断自己能否处理,再按照对应的JSON格式进行动态解析。
"""
CONSULTATION_COUNSEL_ONE2ONE = (1, '视频1V1邀请医生/面诊师加入面诊')
USER_SEND_MESSAGE_TO_DOCTOR = (2, '用户发送私信时通知医生')
CONSULTATION_COUNSEL_DISPATCH = (3, '视频派单邀请用户加入面诊')
CALL_CENTER_SEND_MESSAGE = (4, '呼叫中心发送消息')
\ No newline at end of file
from .enum import *
from .error import ERROR
\ No newline at end of file
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class USER_INFO_DETAIL_LEVEL(Enum):
BASIC = (0, '基本')
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class ERROR(int, Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
"""
AUTH_UNAME_PASSWD_MISMATCH = (1, 'username and password mismatch')
ILLEGAL_SESSION = (2, 'illegal session or session not exist')
INVALID_PURPOSE_OR_PROOFS = (800003, 'invalid purpose or proofs')
#!/usr/bin/env python
# encoding: utf-8
from .union import *
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class ERROR(Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
"""
NOT_SUPPORT_CHANNEL = (803100, u'不支持的渠道')
NOT_SUPPORT_METHOD = (803101, u'不支持的方法')
PARAM_INCOMPLETE = (803102, u'参数不完整')
PARAM_ERROR = (803103, u'参数错误')
PAYMENT_NOT_FOUND = (803104, u'支付单不存在')
PREPAY_NOT_FOUND = (803106, u'预支付不存在')
PAYMENT_ALREAD_FINISH = (803105, u'支付已完成')
CALL_WECHAT_ERROR = (803300, u'调用微信API失败')
WECHAT_ERROR = (803301, u"微信业务失败")
WECHAT_VERIFY_SIGN_FAIL = (803302, u'验证微信签名失败')
CALL_ALI_ERROR = (803501, u'调用支付宝错误')
ALI_VERIFY_SIGN_FAIL = (803502, u'验证支付宝签名失败')
ALI_NOTIFY_STATUS_ERROR = (803503, u'支付宝通知状态错误')
CALL_LIANLIAN_ERROR = (803601, u'连连支付业务失败')
LIANLIAN_VERIFY_FAIL = (803602, u'连连签名验证失败')
# 废弃,设计问题
@unique
class PAY_ERROR(Enum):
NOT_SUPPORT_CHANNEL = (100, u'不支持的渠道')
NOT_SUPPORT_METHOD = (101, u'不支持的方法')
PARAM_INCOMPLETE = (102, u'参数不完整')
PARAM_ERROR = (103, u'参数错误')
PAYMENT_NOT_FOUND = (104, u'支付单不存在')
PREPAY_NOT_FOUND = (106, u'预支付不存在')
PAYMENT_ALREAD_FINISH = (105, u'支付已完成')
CALL_WECHAT_ERROR = (300, u'调用微信API失败')
WECHAT_ERROR = (301, u"微信业务失败")
WECHAT_VERIFY_SIGN_FAIL = (302, u'验证微信签名失败')
CALL_ALI_ERROR = (501, u'调用支付宝错误')
ALI_VERIFY_SIGN_FAIL = (502, u'验证支付宝签名失败')
ALI_NOTIFY_STATUS_ERROR = (503, u'支付宝通知状态错误')
CALL_LIANLIAN_ERROR = (601, u'连连支付业务失败')
LIANLIAN_VERIFY_FAIL = (602, u'连连签名验证失败')
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class NOTIFY_APP_STATUS(Enum):
NOT_START = (0, u'支付没有成功, 不通知')
START = (1, u'支付成功, 通知中')
SUCCESS = (2, u'APP成功返回')
CLOSED = (3, u'失败,不再发送通知')
@unique
class REFUND_STATUS(Enum):
NOT_START = (0, u'未开始')
PENDING = (1, u'退款处理中')
SUCCESS = (2, u'退款成功')
FAIL = (3, u'退款失败')
# FAIL 现在包含未知失败原因和已知失败原因,之后部分失败可能会直接转入 ”人工退款处理中“
@unique
class REFUND_FAIL_REASON(Enum):
NONE = (0, u'无') # 退款处理中等等没有明确结论时候的默认状态
UNKNOWN = (1, u'未知错误') # 预留,此时需要人工介入
TRADE_OVERDUE = (2, u'超过退款期限') # 支付宝、微信都有的常见情况,连连呢?
NOT_ENOUGH = (3, u'账户余额不足') # 卖家账户余额不足,支付宝和微信都有,连连也有
@unique
class CHANNEL(Enum):
WECHAT = (u'wechat', u'微信')
ALIPAY = (u'alipay', u'支付宝')
LIANLIAN = (u'lianlian', u'连连支付')
@unique
class METHOD(Enum):
APP = (u'app', u'客户端')
MWEB = (u'm', u'手机网站')
WEB = (u'web', u'电脑网站')
ALI_OLD_WEB = (u'old_web', u'阿里旧网页支付')
ALI_OLD_APP = (u'old_app', u'阿里旧客户端支付')
ALI_NEW_APP = (u'new_app', u'阿里新客户端支付')
ALI_USING_APP = (u'ali_using', u'阿里当前支付')
WECHAT_JSAPI = (u'wechat_jsapi', u'公众号支付')
WECHAT_USING = (u'wechat_using', u'微信当前支付')
WECHAT_JSAPI_USING = (u'wechat_jsapi_using', u'公众号当前支付')
QRCODE = (u'qrcode', u'扫码支付')
@unique
class PAYMENT_ORDER_STATUS(Enum):
NOT_PAID = (u'0', u'未付款')
PAID = (u'1', u'已付款')
CANCEL = (u'2', u'已取消')
@unique
class APP_TYPE(Enum):
SPECIAL = (u'0', u'美购')
MAIDAN = (u'1', u'买单')
HOSPITAL_PAYMENT = (u'2', u'到院支付')
HOSPITAL_PAYMENT_REFUND = (u'3', u'到院支付退款')
CONSULTATION = (u'4', u'面诊订单支付')
CONSULTATION_REFUND = (u'5', u'面诊订单退款')
@unique
class PREPAY_STATUS(Enum):
NOT_PAY = (u'0', u'未支付')
PAID = (u'1', u'已支付')
CLOSED = (u'2', u'已完结')
@unique
class SUFPAY_STATUS(Enum):
"""
尾款支付状态
"""
UNCREATED = (u'-1', u'未创建尾款单')
PAYING = (u'0', u'尾款支付中')
PAID = (u'1', u'已支付尾款')
REFUNDING = (u'2', u'尾款退款中')
REFUNDED = (u'3', u'退款成功')
FAILURE = (u'4', u'退款失败')
@unique
class SUFPAY_CHANNEL(Enum):
HUABEI = (u'1', u'蚂蚁花呗')
@unique
class INSTALLMENT_PERIOD(Enum):
"""
分期付款 付款周期
"""
QUARTER = (u'0', u'3个月')
HALF = (u'1', u'6个月')
YEAR = (u'2', u'12个月')
@unique
class REFUND_CODE(Enum):
PENDING = ('-1', u'网络请求出错')
SUCCESS = ('0', u'退款成功')
FAIL = ('1', u'退款失败')
CLOSED = ('2', u'该交易已完结,不允许进行退款')
\ No newline at end of file
from .enum import *
from .error import *
from .rm_type import *
from .zhongan import *
from .insurance import *
from .installment import *
from .offline import *
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class BJD_MARRIAGE(Enum):
MARRIED = 1, '已婚'
UNMARRIED = 2, '未婚'
DIVORCED = 3, '离异'
WIDOWED = 4, '丧偶'
@unique
class BJD_EDUCATION(Enum):
UNDER_SENIOR = 1, '高中以下'
SENIOR = 2, '高中/中专'
SPECIALTY = 3, '大专'
BECHELOR = 4, '本科'
MASTER = 5, '硕士研究生'
DOCTOR = 6, '博士研究生'
POST_DOCTOR = 7, '博士后'
@unique
class BJD_RELATION(Enum):
SPOUSE = 1, '配偶'
PARENTS = 2, '父母'
CHILD = 3, '子女'
OTHER_FAMLIY = 4, '其它亲属'
CLASSMATE = 5, '同学'
COLLEAGUE = 6, '同事'
FRIEND = 7, '朋友'
@unique
class BJD_IDENTITY(Enum):
STUDENT = 1, '学生'
WORKER = 2, '职工'
ENTREPRENEUR = 3, '企业主'
@unique
class BJD_BANK(Enum):
ICBC = 'ICBC', '工商银行'
BOC = 'BOC', '中国银行'
CCB = 'CCB', '建设银行'
PSBC = 'PSBC', '邮政储蓄'
ECITIC = 'ECITIC', '中信银行'
CEB = 'CEB', '光大银行'
CIB = 'CIB', '兴业银行'
HX = 'HX', '华夏银行'
SPDB = 'SPDB', '浦发银行'
SZPA = 'SZPA', '平安银行'
CMBC = 'CMBC', '民生银行'
GDB = 'GDB', '广发银行'
BCCB = 'BCCB', '北京银行'
ABC = 'ABC', '农业银行'
SHB = 'SHB', '上海银行'
CMBCHINA = 'CMBCHINA', '招商银行'
BOCO = 'BOCO', '交通银行'
@unique
class BJD_REPAY_STATUS(Enum):
UNPAY = '1', '待还款'
PAYED = '2', '已还款'
OVERDUE = '3', '已逾期'
@unique
class BJD_AUT_TYPE(Enum):
ZHIMA = '1001', '芝麻信用'
YUNYING = '1002', '运营商'
JD = '1004', '京东'
CARD = '1005', '信用卡'
@unique
class BJD_AUT_RESULT(Enum):
UNAUT = '0', '未认证'
AUT = '1', '已认证'
FAIL = '5', '认证失败'
AUTING = '3', '认证中'
@unique
class BJD_PAYRESOULT_CODE(Enum):
PASS = '0000', '审核通过'
REJECT = '4444', '审批拒绝'
SUPPLY = '7777', '打回补充'
AUDIT = '1111', '审批中'
CONFIRM = '2222', '已审批,待用户确认'
@unique
class BJD_BACKCODE(Enum):
BANK = '0001', '银行卡认证不成功'
ZHIMA = '1001', '芝麻信用授信'
YUNYING = '1002', '运营商'
JD = '1004', '京东'
CARD = '1005', '信用卡邮箱'
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class INSTALLMENT_SERVICE(Enum):
RENMAI = (2, u'任买')
YIRENDAI = (3, u'宜人贷')
RENMAI_CREDIT = (4, u'任买白条')
@unique
class MARRAGE_STATUS(Enum):
UNMARRIED = ('10', '未婚')
MARRIED = ('20', '已婚')
OTHER = ('90', '其他')
class SOCIAL_STATUS(Enum):
STUDENT = ('SI01', '学生')
OFFICERS = ('SI02', '在职人员')
FREE = ('SI03', '自由职业')
# 产品文档里面没有
# SUPERINTENDENT = ('SI04', '企业负责人')
# UNEMPLOYED = ('SI05', '无业')
# RETIREMENT = ('SI06', '退休')
class LIVING_STATUS(Enum):
MORTGAGE = ('1', '自置无按揭')
NOMORTGAGE = ('2', '自置有按揭')
RELATIVES = ('3', '亲属楼宇')
DORMITORY = ('4', '集体宿舍')
RENT = ('5', '租房')
OTHER = ('7', '其他')
class IMAGE_TYPE(Enum):
APPLICANT = ('P', '身份证手持照')
POSITIVEIDCARD = ('F', '身份证正面')
OPPOSITEIDCARD = ('R', '身份证背面')
BANKCARD = ('W', '代扣银行卡')
PROVE = ('A', '工作证明或学生证明')
SOCIALSECURITY = ('S', '社保卡')
TRANSACTIONRECORD = ('C', '工资卡及流水')
PROOFOFRESIDENCE = ('L', '居住证明')
ACCOUNTBOOK = ('B', '户口本')
OWNERSHIPCERTIFICATE = ('H', '房产证')
POLICEPHOTO = ('N', '公安照片')
GROUPPHOTO = ('G', '客户与RA合照')
TICKET = ('T', '购货小票')
FACE = ('D', '人脸识别照片')
OTHER = ('Z', '其他')
class EDUCATION_LEVEL(Enum):
UNDERJUNIOR = ('LE11', '初中以下')
JUNIOR = ('LE10', '初中')
SENIOR = ('LE09', '高中\中专\技校')
SPECIALTY = ('LE05', '大学专科\专科学校')
UNDERGRADUATE = ('LE06', '大学本科')
MASTER = ('LE07', '硕士')
DOCTOR = ('LE08', '博士及以上')
class CONTACT_RELATION(Enum):
SPOUSE = ('RF01', ' 配偶')
FATHER = ('RF02', ' 父亲')
MATHER = ('RF03', ' 母亲')
BROTHER = ('RF04', ' 兄弟')
SISTER = ('RF05', ' 姐妹')
CHILDREN = ('RF06', ' 子女')
CLASSMATE = ('R002', ' 同学')
COLLEAGUE = ('R003', ' 同事')
FRIEND = ('R004', ' 朋友')
OTHER = ('R005', ' 其他')
class RM_EDUCATION(Enum):
NONE = (0, '无')
JUNIOR_OR_UNDER = (3, '初中及以下')
SENIOR = (4, '高中')
SECONDARY = (5, '中专')
SPECIALTY = (6, '大专')
BECHELOR = (7, '本科')
MASTER_OR_HIGHER = (8, '研究生及以上')
class RM_MARRIAGE(Enum):
UNMARRIED = (0, '未婚')
MARRIED = (1, '已婚')
DIVORCED = (2, '离异')
WIDOWED = (3, '丧偶')
class RM_CHILDRED(Enum):
NONE = (0, '无子女')
ONE = (1, '一个子女')
TWO = (2, '2个子女及以上')
class RM_HOUSE(Enum):
NONE = (0, '无房')
MORTGAGE = (1, '有房有按揭')
NO_MORTGAGE = (2, '有房无按揭')
class RM_IDENTITY_TYPE(Enum):
WORKER = (0, '上班族')
STUDENT = (1, '学生')
class RM_RELATIONSHIP(Enum):
COLLEAGUE = (0, '同事')
FATHER = (1, '父亲')
MATHER = (2, '母亲')
CHILDREN = (3, '子女')
SPOUSE = (4, '配偶')
SIBLING = (5, '亲兄弟姐妹')
class RM_IMAGE_TYPE(Enum):
FRONT = (0, '身份证正面照')
BACK = (1, '身份证背面照')
HAND = (2, '手持身份证照片')
class RM_STATUS(Enum):
NONE = (0, '无用,默认')
AUDITING = (1, '审核中')
GRANT = (2, '审核通过')
REJECT = (3, '审核拒绝')
REPAY = (4, '还款')
REFUND = (5, '用户放弃')
class MSXF_ORDER_STATUS(Enum):
AUDITING = (0, "待审批") #
AUDITED = (1, "审批通过")
REJECTED = (2, "审批不通过")
CONFIRMED = (3, "合同已确认") # 合同已确认, 待支付, 等待用户放款确认
PAID = (4, "已完成") # 已放款
CANCELED = (5, "已取消") # 超时取消, 风控拒绝
RELINK = (8, "资料重传")
class RM_ORDER_STATUS(Enum):
FORBID = (0, "不能分期")
SUPPORT = (1, "尾款分期")
AUDITING = (2, '分期审核中')
GRANT = (3, '查看详情')
REJECT = (4, '分期失败')
REPAY = (5, '还款信息')
@unique
class YRD_CREDIT_STATUS(Enum):
# 个人额度状态, 包括任买
DEFAULT = (0, '默认,无用')
PASS = (1, '通过授信')
DENY = (2, '审核拒绝')
NO_APPLY = (3, '未申请')
OUT = (4, '额度超时')
AUDIT = (5, '审核中')
INFO_MISS = (6, '信息不符')
CANCEL = (7, '信审取消') # 任买信审取消
REJECT_OUT = (8, '据贷状态失效') # 据贷后一段时间又能申请
@unique
class REPAY_STATUS(Enum):
UNPAIED = (1, '未还款')
PAIED = (2, '已还款')
OVERDUE = (3, '逾期')
PAYING = (4, '还款中')
This diff is collapsed.
# coding=utf-8
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class INSTALLMENT_SOURCE(Enum):
ORDER = (1, '美购订单')
MAIDAN = (2, '买单订单')
@unique
class CREDIT_STATUS(Enum):
# 个人额度状态
DEFAULT = (0, '默认,无用')
PASS = (1, '通过授信')
DENY = (2, '审核拒绝')
NO_APPLY = (3, '未申请')
OUT = (4, '额度超时')
AUDIT = (5, '审核中')
INFO_MISS = (6, '信息不符')
CANCEL = (7, '信审取消') # 任买信审取消
REJECT_OUT = (8, '据贷状态失效') # 据贷后一段时间又能申请
@unique
class INSTALLMENT_STATUS(Enum):
# 分期单状态
NONE = (0, '无用,默认')
AUDITING = (1, '审核中')
GRANT = (2, '审核通过')
REJECT = (3, '分期失败')
REPAY = (4, '还款')
REFUND = (5, '用户放弃')
CANCEL = (6, '已取消') # 任买单方面取消
LOANING = (7, '放款中')
FINISH = (13, '完结')
OUT = (14, '超时') # 分期单超时未使用
@unique
class INSTALLMENT_EDUCATION(Enum):
JUNIOR_OR_UNDER = (3, '初中及以下')
SENIOR = (4, '高中')
SECONDARY = (5, '中专')
SPECIALTY = (6, '专科')
BECHELOR = (7, '本科')
MASTER = (8, '硕士研究生')
DOCTOR = (10, '博士研究生')
@unique
class USER_IDENTITY(Enum):
WORKER = (0, '上班族')
STUDENT = (1, '学生')
INDIVADUAL = (3, '个体经营者')
FREELANCE = (4, '自由职业者')
OTHER = (5, '其他')
# coding=utf-8
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class INSURANCE_STATUS(Enum):
CREATED = (1, '已创建')
PAID = (2, '已付款')
ACTIVATED = (3, '已激活')
LOSE_EFFICACY = (4, '取消')
@unique
class INSURANCE_TYPE(Enum):
N = (0, '美购不卖保险标志')
YINUO = (1, '一诺保险')
ZHONGAN = (2, '众安保险')
@unique
class CARD_STATUS(Enum):
UNUSE = 'unuse', '未使用'
USED = 'used', '已使用'
This diff is collapsed.
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
class RM_EDUCATION(Enum):
JUNIOR_OR_UNDER = (3, '初中及以下')
SENIOR = (4, '高中')
SECONDARY = (5, '中专')
SPECIALTY = (6, '专科')
BECHELOR = (7, '本科')
MASTER = (8, '硕士研究生')
DOCTOR = (10, '博士研究生')
class RM_MARRIAGE(Enum):
UNMARRIED = (0, '未婚')
MARRIED = (1, '已婚')
DIVORCED = (2, '离异')
WIDOWED = (3, '丧偶')
class RM_CHILDRED(Enum):
NONE = (0, '无子女')
ONE = (1, '一个子女')
TWO = (2, '2个子女及以上')
class RM_HOUSE(Enum):
NONE = (0, '无房')
MORTGAGE = (1, '有房有按揭')
NO_MORTGAGE = (2, '有房无按揭')
class RM_IDENTITY_TYPE(Enum):
WORKER = (0, '上班族')
STUDENT = (1, '学生')
class IDENTITY_TYPE(Enum):
WORKER = (0, '上班族')
STUDENT = (1, '学生')
INDIVADUAL = (3, '个体经营者')
FREELANCE = (4, '自由职业者')
OTHER = (5, '其他')
class RM_RELATIONSHIP(Enum):
COLLEAGUE = (0, '同事')
FATHER = (1, '父亲')
MOTHER = (2, '母亲')
CHILDREN = (3, '子女')
SPOUSE = (4, '配偶')
SIBLING = (5, '亲兄弟姐妹')
class RM_STUDENT_FIRST(Enum):
FATHER = (1, '父亲')
MOTHER = (2, '母亲')
class RM_STUDENT_SECOND(Enum):
FATHER = (1, '父亲')
MOTHER = (2, '母亲')
CHILDREN = (3, '子女')
SPOUSE = (4, '配偶')
SIBLING = (5, '亲兄弟姐妹')
class RM_STUDENT_THIRD(Enum):
COLLEAGUE = (0, '同学')
class RM_WORKER_FIRST(Enum):
FATHER = (1, '父亲')
MOTHER = (2, '母亲')
CHILDREN = (3, '子女')
SPOUSE = (4, '配偶')
SIBLING = (5, '亲兄弟姐妹')
class RM_WORKER_SECOND(Enum):
FATHER = (1, '父亲')
MOTHER = (2, '母亲')
CHILDREN = (3, '子女')
SPOUSE = (4, '配偶')
SIBLING = (5, '亲兄弟姐妹')
class RM_WORKER_THIRD(Enum):
COLLEAGUE = (0, '同事')
class RM_CREDIT_FIRST_SECOND(Enum):
FATHER = (1, '父亲')
MOTHER = (2, '母亲')
CHILDREN = (3, '子女')
SPOUSE = (4, '配偶')
SIBLING = (5, '亲兄弟姐妹')
class RM_CREDIT_THIRD(Enum):
FATHER = (0, '同事')
MOTHER = (7, '同学')
CHILDREN = (8, '朋友')
SPOUSE = (9, '非直系亲属')
class RM_IMAGE_TYPE(Enum):
FRONT = (0, '身份证正面照')
BACK = (1, '身份证背面照')
HAND = (2, '手持身份证照片')
class RM_STATUS(Enum):
NONE = (0, '无用,默认')
AUDITING = (1, '审核中')
GRANT = (2, '审核通过')
REJECT = (3, '分期失败')
REPAY = (4, '还款')
REFUND = (5, '用户放弃')
CANCEL = (6, '已取消') # 任买单方面取消
LOANING = (7, '放款中')
FINISH = (13, '完结')
OUT = (14, '超时')
class PARSE_STATUS(Enum):
SUCCESS = (1, '解析成功')
PARSING = (2, '解析中')
FAIL = (3, '解析失败')
class RM_GRAB(Enum):
PHONE = (1, '手机运营商')
BANK_BILL = (2, '银行流水')
CREDIT_EMAIL = (3, '信用卡邮箱')
CREDIT_REPORT = (4, '征信报告')
class RM_CERT_STATUS(Enum):
NOT = (1, '未认证')
ING = (2, '认证中')
DONE = (3, '已认证')
This diff is collapsed.
# coding=utf-8
from __future__ import unicode_literals, absolute_import
from ..utils.enum import Enum, unique
@unique
class ZHONGAN_STATUS(Enum):
CREATED = (1, '已创建')
PAID = (2, '已付款')
ACTIVATED = (3, '已激活')
This diff is collapsed.
# coding=utf-8
from __future__ import absolute_import, unicode_literals
from ..utils.enum import Enum, unique
@unique
class ERROR(int, Enum):
"""
分配错误码时请参考、维护代码库根目录下的文件 ERROR_CODE_REGION.txt
"""
POINT_ACTIVITY_NOT_EXIST = (802001, '活动不存在')
POINT_ACTIVITY_EXPIRE = (802002, '活动已过期')
POINT_ACTIVITY_NOT_START = (802003, '活动未开始')
POINT_ACTIVITY_GOODS_NOT_EXIST = (802004, '礼品不存在')
from .enum import *
from .visual import *
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
from .enum import *
\ No newline at end of file
This diff is collapsed.
from .enum import *
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment