工艺知识库

[TOC] # [附属] ## 1. 获取 #### 接口 ``` /specialConfigRoles ``` #### 接口功能 > 工艺知识角色获取 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |roleId|ture|string|角色ID| |roleName|ture|string|角色名称| |operate|true|权限| 0 增加 1 审核| |type|true|integer|类型 0 专题 1 预警| |factory|false|String|工厂名| |factoryCode|false|String|工厂编码| |office|false|String|公司名| |officeCode|false|String|公司编码| #### 请求方式 > GET ###### 请求例子 ``` { "status": 200, "data": { "content": [ { "id": 1, "type": 0, "roleId": "EFZB_YYGLBYG", "roleName": "运营管理部员工", "operate": "0,1,2,3", "createTime": "2020-04-15 17:01:16", "updateTime": "2020-04-15 17:01:18", "status": 0, "officeCode": null, "officeName": null, "factoryCode": null, "factory": null }, { "id": 64102, "type": 0, "roleId": "ffffffffff", "roleName": null, "operate": "0,1,2,4", "createTime": null, "updateTime": null, "status": 0, "officeCode": null, "officeName": null, "factoryCode": null, "factory": null } ], "pageable": { "sort": { "sorted": false, "unsorted": true, "empty": true }, "offset": "0", "pageSize": 20, "pageNumber": 0, "paged": true, "unpaged": false }, "totalElements": "2", "totalPages": 1, "last": true, "number": 0, "size": 20, "sort": { "sorted": false, "unsorted": true, "empty": true }, "numberOfElements": 2, "first": true, "empty": false }, "timestamp": "2020-04-20 17:16:21", "error": "", "exception": "", "message": "ok", "operator": "超级管理员", "path": "/specialConfigRoles" } ``` ## 2. 新增 #### 接口 ``` /specialConfigRoles ``` #### 接口功能 > 工艺知识角色新增 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |roleId|ture|string|角色ID| |roleName|ture|string|角色名称| |operate|true|权限| 0 增加 1 审核| |type|true|integer|类型 0 专题 1 预警| |factory|false|String|工厂名| |factoryCode|false|String|工厂编码| |office|false|String|公司名| |officeCode|false|String|公司编码| #### 请求方式 > POST ###### 请求例子 ``` { "type":0, "roleId":"ffffffffff", "operate":"0,1,2,4" } ``` ## 3. 修改 #### 接口 ``` /specialConfigRoles ``` #### 接口功能 > 工艺知识角色修改 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |roleId|ture|string|角色ID| |roleName|ture|string|角色名称| |operate|true|权限| 0 增加 1 审核| |type|true|integer|类型 0 专题 1 预警| |factory|false|String|工厂名| |factoryCode|false|String|工厂编码| |office|false|String|公司名| |officeCode|false|String|公司编码| #### 请求方式 > PATCH ###### 请求例子 ``` { "id":64102, "type":0, "roleId":"ffffffffff", "operate":"0,1,2,4" } ``` ## 5. 删除 #### 接口 ``` /specialConfigRoles/{id} ``` #### 接口功能 > 工艺知识角色修改 |参数|必选|类型|说明| |:----- |:-------|:-----|:-----| |id|ture|string|ID| #### 请求方式 > DELETE ###### 请求例子 ``` curl -X DELETE http://127.0.0.1:8096/specialConfigRoles/64102 ```