多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 1、新增服务人员 ## 接口描述 新增服务人员 ## 接口地址 https://ip//app/staff/admin/add ## 请求参数 | 字段 | 类型 | 是否必须 | 备注 | | --- | --- | --- | --- | 7777777777777777777777777777777777777777777777777777 |reserve1|String|否|备用1最大长度不能超过200字符 | |reserve2|String|否|备用2最大长度不能超过200字符 | |reserve3|String|否| 备用3最大长度不能超过200字符 | |remark|String|否|备注最大长度不能超过500字符 | |maintainer|String|是|维护人不能为空 | |accountName|String|是|账户名称不能为空,账户名称格式由字母开头,长度为3-20位组成 | |phone|String|是|手机号不能为空 | |password|String|是|密码不能为空 | |genderEnum|GenderEnum|否|性别 M:男 F:女 U:未知 | |email|String|否|Email不能超过50位字符 | |officePhone|String|否|办公电话不能超过20位字符 | |code|String|否|人员编码不能超过20位字符 | |vendorId|String|否|商户ID必填,出租车接口调用则传柜台id | |serviceStaffName|String|否|姓名不能超过32位字符 | |avatar|String|否|头像不能超过500位字符 | |idcardNo|String|否|身份证号不能超过18位字符 | |roles|String|是|角色id | |departmentId|String|是|部门ID | |tenantId|String|是|租户id | ## 请求报文 数据类型Content-Type: form-data ``` reserve1=1 reserve2=1 reserve3=1 remark=1 maintainer=1 accountName=1 phone=1 password=1 genderEnum=MALE email=1 officePhone=1 code=1 vendorId=1 serviceStaffName=1 avatar=1 idcardNo=1 roles=1 departmentId=1 tenantId=1 ``` ## 响应参数 | 字段 | | 类型 | 描述 | 备注 | | --- | --- | --- | --- | --- | | code | | String | 返回状态 | 500 - 失败 200 - 成功 | | message | | String | 错误说明 | 请求失败或者发生错误的具体描述 | | timeStamp | | datetime | 请求时间戳 | 请求时带的时间戳 | | result | | Object | | 结果集 | ## 响应报文 ``` { "code": 200, "message": "success", "result": null, "success": true, "timestamp": 1571732931187 } ``` # 2、批量新增服务人员 ## 接口描述 批量新增服务人员 ## 接口地址 https://ip//app/staff/admin/adds ## 请求参数 ## 请求报文 数据类型Content-Type: application/json ``` { "accountName": "string", "departmentId": "string", "maintainer": "string", "password": "string", "phone": "string", "remark": "string", "reserve1": "string", "reserve2": "string", "reserve3": "string", "roleId": "string", "serviceStaffAddDTOs": [ { "accountName": "string", "avatar": "string", "code": "string", "email": "string", "genderEnum": "MALE", "idcardNo": "string", "maintainer": "string", "officePhone": "string", "password": "string", "phone": "string", "remark": "string", "reserve1": "string", "reserve2": "string", "reserve3": "string", "serviceStaffName": "string", "vendorId": "string" } ], "tenantId": "string" } ``` ## 响应参数 | 字段 | | 类型 | 描述 | 备注 | | --- | --- | --- | --- | --- | | code | | String | 返回状态 | 500 - 失败 200 - 成功 | | message | | String | 错误说明 | 请求失败或者发生错误的具体描述 | | timeStamp | | datetime | 请求时间戳 | 请求时带的时间戳 | | result | | Object | | 结果集 | ## 响应报文 ``` { "code": 200, "message": "success", "result": null, "success": true, "timestamp": 1571732931187 } ``` # 3、修改服务人员 ## 接口描述 修改服务人员 ## 接口地址 https://ip//app/staff/admin/edit ## 请求参数 | 字段 | 类型 | 是否必须 | 备注 | | --- | --- | --- | --- | |accountId|String|是|账户id| |code|String|否|人员编码不能超过20位字符 | |vendorId|String|否|商户ID必填,出租车接口调用则传柜台id | |serviceStaffName|String|否|姓名不能超过32位字符 | |avatar|String|否|头像不能超过500位字符 | |idcardNo|String|否|身份证号不能超过18位字符 | |genderEnum|GenderEnum|否|性别 M:男 F:女 U:未知 | |email|String|否|Email不能超过50位字符 | |officePhone|String|否|办公电话不能超过20位字符 ||reserve1|String|否|备用1最大长度不能超过200字符 | |reserve2|String|否|备用2最大长度不能超过200字符 | |reserve3|String|否| 备用3最大长度不能超过200字符 | |remark|String|否|备注最大长度不能超过500字符 | |maintainer|String|是|维护人不能为空 | |roles|String|是|角色id | |departmentId|String|是|部门ID | |tenantId|String|是|租户id | ## 请求报文 数据类型Content-Type: form-data ``` accountId=1 code=1 vendorId=1 serviceStaffName=1 avatar=1 idcardNo=1 genderEnum=MALE email=1 officePhone=1 reserve1=1 reserve2=1 reserve3=1 remark=1 maintainer=1 roles=1 departmentId=1 phone=1 ``` ## 响应参数 | 字段 | | 类型 | 描述 | 备注 | | --- | --- | --- | --- | --- | | code | | String | 返回状态 | 500 - 失败 200 - 成功 | | message | | String | 错误说明 | 请求失败或者发生错误的具体描述 | | timeStamp | | datetime | 请求时间戳 | 请求时带的时间戳 | | result | | Object | | 结果集 | ## 响应报文 ``` { "code": 200, "message": "success", "result": null, "success": true, "timestamp": 1571732931187 } ``` # 4、删除服务人员 ## 接口描述 删除服务人员 ## 接口地址 https://ip//app/staff/admin/delete ## 请求参数 | 字段 | 类型 | 是否必须 | 备注 | | --- | --- | --- | --- | |accountId|String|是|账户id,多条用英文逗号隔开| ## 请求报文 数据类型Content-Type: form-data ``` accountId=1 ``` ## 响应参数 | 字段 | | 类型 | 描述 | 备注 | | --- | --- | --- | --- | --- | | code | | String | 返回状态 | 500 - 失败 200 - 成功 | | message | | String | 错误说明 | 请求失败或者发生错误的具体描述 | | timeStamp | | datetime | 请求时间戳 | 请求时带的时间戳 | | result | | Object | | 结果集 | ## 响应报文 ``` { "code": 200, "message": "success", "result": null, "success": true, "timestamp": 1571732931187 } ```