文档
测试

绑定门店(免登录)

POST
http://1.15.80.200:8080/branch/bindBranchOfCode

接口描述

绑定码绑定门店接口(可接)✔️

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
bindCode
string
门店绑定码 (只包含大写字母和数字的6位字符)
必填

请求示例

```param bindCode: "5E098C" ```

响应参数

参数名
类型
描述
必填
msg
string
请求结果消息
必填
code
string
请求结果状态码
必填
data
object
返回结果业务对象
必填
branchId
string
门店编号
必填
storeId
string
商户编号
必填
isWhiteListStore
string
商户是否白名单 0.否 1.是
必填
isWhiteListBranch
string
门店是否白名单 0.否 1.是
必填
expireTime
string
门店服务有效时间 格式:YYYY-MM-dd
必填
canLogin
string
是否可以登录 0.否 1.是
必填
branchIcon
string
门店图标
必填
serverTime
string
服务器时间 格式:YYYY-MM-dd hh-mm-ss
必填
branchStaffInfo
array
门店员工集合
必填
staffId
string
员工编号
必填
staffName
string
员工名称
必填
abilities
array
权限数组
必填
passKey
string
授权钥匙 授权钥匙=md5(md5(员工密码)+信息钥匙) 用于离线登录密码验证
必填
cardKey
string
信息钥匙 UUID串
必填

返回示例

```json { "code": 200, "msg": null, "data": { "branchId": "1407264976637620224", "storeId": 1407257140276850688", "isWhiteListStore": 1, "isWhiteListBranch": 1, "expireTime": "2021-6-29", "canLogin": 1, "branchIcon": "", "serverTime": "2021-08-11 10:21:03", "branchStaffInfo": [ { "staffId": 1407257140989882368, "staffName": "李耀东", "abilities": [ "shift", "refund", "authDiscount", "password", "withdraw", "createOrder", "pullOrder", "submitDiscount", "authDiscount", "memberManagement", "financialReport" ], "passKey": "23221934a671505f8811ab8830f1513e", "cardKey": "1a87377e74e54f3cb41c1baec79115b9" }, { "staffId": 1422500363549925376, "staffName": "国金收银员", "abilities": [ "createOrder", "memberManagement", "financialReport" ], "passKey": "845dd6ba522ee2fb325592d3911f0729", "cardKey": "9ac8656aaf3d46148f04febec6bdf42d" } ] } } ```

说明 / 描述

## 备注 ###### abilities 权限数组值 > (员工管理设置收银权限) * "refund"(退款) * "withdraw"(抽大钞) * "password"(重置员工密码) * "shift"(交接班) * "reverse"(反结账) * "pullOrder"(下单) * "createOrder"(收银) * "reverseRecharge"(会员充值和撤销) * "submitDiscount"(折扣提交) * "authDiscount"(折扣提交和授权) * "waimaiStatus"(修改外卖营业状态) * "memberManagement "(会员管理权限) * "financialReport"(财务报表权限)