文档
测试

获取名片信息

GET
http://127.0.0.1:8888/card/cardInfo?user_id=1

请求参数

参数名
类型
描述
必填
user_id
int
示例:1 用户id
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
addr
string
示例:陕西省
必填
create_time
string
示例:Thu, 10 Sep 2020 20:09:03 GMT
必填
face_pic
string
示例:head_path
必填
id
int
示例:1
必填
im_id
object
示例:null
必填
is_delete
string
示例:0
必填
is_superadmin
object
示例:null
必填
is_vip
object
示例:null
必填
is_working
object
示例:null
必填
last_time
string
示例:Thu, 10 Sep 2020 20:09:07 GMT
必填
name
string
示例:张三
必填
performances
object
示例:null
必填
phone
string
示例:13800138000
必填
qq_id
object
示例:null
必填
region_id
object
示例:null
必填
sex
string
示例:1
必填
type
string
示例:1
必填
user_workers_id
object
示例:null
必填
wx_openid
object
示例:null
必填
wx_unionid
object
示例:null
必填
list
string
示例:
必填
msg
string
示例:success
必填
status
int
示例:1
必填

说明 / 示例

id = Column(Integer, primary_key=True, ) name = Column(String(255), nullable=False) sex = Column(Enum('0', '1'), nullable=False, comment='0 女 1 男') addr = Column(Text, nullable=False) face_pic = Column(MEDIUMTEXT, comment='头像') create_time = Column(TIMESTAMP, comment='注册时间') last_time = Column(TIMESTAMP, comment='最后登录时间') phone = Column(String(255), comment='电话') region_id = Column(Integer, comment='地区类型') performances = Column(Integer, comment='用户评价') im_id = Column(String(255), comment='im id') wx_unionid = Column(String(255), comment='微信unionid') wx_openid = Column(String(255), comment='微信openid') qq_id = Column(String(255), comment='qq id') pw = Column(String(255), comment='密码') type = Column(Enum('0', '1', '2', '3', '4'), nullable=False, comment='0 客户 1 师傅 2 厂商 3 管理员 4 待审核师傅') is_vip = Column(Integer, comment='0 不是vip 1 是vip') # is_company = Column(Integer, comment='0 不是 1 是 是否厂商') is_superadmin = Column(Enum('0', '1'), default='0', comment='0 不是 1是') is_delete = Column(Enum('0', '1'), default='0', comment='0 未删除 1已删除') is_working = Column(Enum('0', '1'), default='1', comment='师傅当前状态, 1: 接单中, 0: 休息中') user_workers_id = Column(String(255), comment='师傅 id')