ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 设置会员设置的内容 ~~~[api] post:/member/setmember *string:id=默认值#会员id *title#修改字段name,phone,sex,birthday <<< success { "code": 0, "info": "成功", "data": true } <<< error ~~~ ## 未分配的会员数量 ~~~[api] post:/member/unmember <<< success { "code": 0, "info": "成功", "data": 432 } <<< error ~~~ ## 编辑信息 ~~~[api] post:/member/edit *int:id=1#会员Id int:phone=18864002744#会员手机号 string:member_name= #会员名 string:birthday= 2018-11-11 #会员生日 int:sex= 0 #会员性别 0 未知,1男,2女 int:sn= #身份证号 int:user_id= #销售顾问id int:level= #会员等级id <<< success { "code": 0, "info": "success", "data": { "id": 1 } } ~~~ ## 会员信息 ~~~[api] post:/member/get *int:id=默认值1000#会员Id <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "phone": "", "member_name": "", "member_card": "", "score": 0, "total_score": 0, "join_date": "1970-01-01", "user_id": 1000, "sex": 0, "birthday": "1970-01-01", "set_sex": 0, "set_birthday": "1970-01-01", "set_name": "", "set_sn": "", "set_phone": "", "set_age": 0, "age": 0, "sn": "", "flag": 0, "flag_time": 0, "wechat_user_id": 51, "wechat_card": 0, "state": 1, "level":{ "id": 1, "name": "abc", "url": "abc" }, "balance": 0, "wechat_user":{ "id": 51, "is_follow": 1, "nickname": "再见理想Will", "headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132", "openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo", "create_time": "2018-10-23 16:49:20", "last_time": 1540284560, "active_time": 1540284560, "card_code": "" }, "members_tags":[ { "id": 1, "tag": 1, "member_id": 1 } ], "user":{ "id": 1000, "name": "_ADMIN_NAME", "code": "", "token": "", "phone": "13068685200", "identity": "", "entry_date": "2019-01-01", "leave_date": "2099-01-01", "shop_id": 1, "state": 1, "wechat_user_id": 1 } } } <<< error { "code": 7700, "info": "会员不存在", "data": null } { "code": 401, "info":{ "id": "id必须是数字" }, "data": null } ~~~ ## 会员列表 ~~~[api] post:/member/list *int:page=1#页码 *int:limit=10#每页显示个数 string:key=id#排序字段名 string:order=normal#排序方式 int:level=1#等级id int:wechat=0#状态筛选 0未绑定 1已绑定 int:tag=0#标签id <<< success { "code": 0, "info": "成功", "data":{ "count": 2, "list": [ { "id": 1, "phone": "", "member_name": "", "member_card": "", "score": 0, "total_score": 0, "join_date": "1970-01-01", "user_id": 1000, "sex": 0, "birthday": "1970-01-01", "sn": "", "flag": 0, "flag_time": 0, "wechat_user_id": 51, "wechat_card": 0, "state": 1, "level":{ "id": 1, "name": "abc", "url": "abc" }, "balance": 0, "wechat_user":{ "id": 51, "is_follow": 1, "nickname": "再见理想Will", "headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132", "openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo", "create_time": "2018-10-23 16:49:20", "last_time": 1540284560, "active_time": 1540284560, "card_code": "" }, "members_tags":[ { "id": 1, "tag": 1, "member_id": 1 } ], "user":{ "id": 1000, "name": "_ADMIN_NAME", "code": "", "token": "", "phone": "13068685200", "identity": "", "entry_date": "2019-01-01", "leave_date": "2099-01-01", "shop_id": 1, "state": 1, "wechat_user_id": 1 } } ] } } <<< error ~~~ ## 添加会员 ~~~[api] post:/member/add *string:member_name=张三#会员姓名 string:member_card=123321#手机号、会员卡号,至少填写一个! string:phone=18211112222#联系电话 11位 string:sn=110101199003078195#请输入正确的身份证号 string:join_date=2018-10-22#时间 int:sex=1#0-未知 1-男 2-女 string:birthday=2018-10-22#生日 int:level=0#会员等级 <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "phone": "", "member_name": "", "member_card": "", "score": 0, "total_score": 0, "join_date": "1970-01-01", "user_id": 1000, "sex": 0, "birthday": "1970-01-01", "sn": "", "flag": 0, "flag_time": 0, "wechat_user_id": 51, "wechat_card": 0, "state": 1, "level":{ "id": 1, "name": "abc", "url": "abc" }, "balance": 0, "wechat_user":{ "id": 51, "is_follow": 1, "nickname": "再见理想Will", "headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132", "openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo", "create_time": "2018-10-23 16:49:20", "last_time": 1540284560, "active_time": 1540284560, "card_code": "" }, "members_tags":[ { "id": 1, "tag": 1, "member_id": 1 } ], "user":{ "id": 1000, "name": "_ADMIN_NAME", "code": "", "token": "", "phone": "13068685200", "identity": "", "entry_date": "2019-01-01", "leave_date": "2099-01-01", "shop_id": 1, "state": 1, "wechat_user_id": 1 } } } <<< error ~~~ ## 会员查询--销售下单 ~~~[api] post:/member/fetch *string:phone=13311112222#会员卡号或手机号 <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "phone": "", "member_name": "", "member_card": "", "score": 0, "total_score": 0, "join_date": "1970-01-01", "user_id": 1000, "sex": 0, "birthday": "1970-01-01", "sn": "", "flag": 0, "flag_time": 0, "wechat_user_id": 51, "wechat_card": 0, "state": 1, "level":{ "id": 1, "name": "abc", "url": "abc" }, "balance": 0, "wechat_user":{ "id": 51, "is_follow": 1, "nickname": "再见理想Will", "headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132", "openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo", "create_time": "2018-10-23 16:49:20", "last_time": 1540284560, "active_time": 1540284560, "card_code": "" }, "members_tags":[ { "id": 1, "tag": 1, "member_id": 1 } ], "user":{ "id": 1000, "name": "_ADMIN_NAME", "code": "", "token": "", "phone": "13068685200", "identity": "", "entry_date": "2019-01-01", "leave_date": "2099-01-01", "shop_id": 1, "state": 1, "wechat_user_id": 1 } } } <<< error ~~~ ## 修改会员等级 ~~~[api] post:/member/editmemberlevel *int:member_id=默认值#会员ID *int:level_id=默认值#会员等级ID *string:json=[{"coupon_id":2,"num":5}]#[{"coupon_id":2,"num":5}] <<< success { "code": 0, "info": "成功", "data": true } <<< error ~~~