# 自动化测试平台 **Repository Path**: guznwang/Automatic_test_platform ## Basic Information - **Project Name**: 自动化测试平台 - **Description**: 本人致力于打造一款强大的自动化测试平台前后端分离,此为后端,使用的是springboot - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-01-04 - **Last Updated**: 2021-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 自动化测试平台 #### Description 本人致力于打造一款强大的自动化测试平台 #### Software Architecture Software architecture description #### Installation 1. xxxx 2. xxxx 3. xxxx #### Instructions 1. 接口文档 请求头:Content-Type:application/json;charset=UTF-8 jmeter发送Http请求,内容编码:utf-8 **部门管理** 新增: 方法:post http://localhost:8082/system/addDept { "code": "hnfgs", "name": "河南分公司", "orderNum": "1", "parentId": 1 } 修改部门信息: 方法:put http://localhost:8082/system/system/updateDept { ​ "deptId":26, ​ "code": "hnfgs", ​ "name": "河南分公司", ​ "orderNum": "1", ​ "parentId": 1 } 删除部门信息(逻辑删除): 方法:delete http://localhost:8082/system/system/delDept/{deptId} 查询单个部门信息: 方法:get http://localhost:8082/system/selectDept/{deptId} 分页查询部门列表: 方法:get http://localhost:8082/system/selectAllDepts?pageNum=1&pageSize=10 根据名称分页查询: 方法:get http://localhost:8082/system/byNameDept?name=部门&pageNum=1&pageSize=10 **用户管理** 新增: 方法:post http://localhost:8082/system/addSysUser/addSysUser { "username": "test", "password": "123456", "salt": "", "deptId": 1, "phone": "13862607102", "avatar": "" } 修改: 方法:put http://localhost:8082/system/updateUser { "userId":2, "username": "test1", "password": "123abc", "salt": "", "deptId": 1, "phone": "13862607102", "avatar": "" } 删除: 方法:delete http://localhost:8082/system/delSysUser/{userId} 分页查询列表: 方法:get http://localhost:8082/system/selectAllSysUser?pageNum=1&pageSize=10 根据名称分页查询: 方法:get http://localhost:8082/system/selectByNameSysUser?name=admin&pageNum=1&pageSize=10 根据用户id查询: 方法:get http://localhost:8082/system/selectUser/{userId} **角色管理** 新增: 方法:post http://localhost:8082/system/addRole { "roleCode": "test", "roleName": "测试人员", "roleDesc": "App测试人员" } 修改: 方法:put http://localhost:8082/system/updateRole { "roleId":2, "roleCode": "test1", "roleName": "测试人员", "roleDesc": "1号测试人员" } 删除: 方法:delete http://localhost:8082/system/deleteRole/{roleId} 分页查询列表: 方法:get http://localhost:8082/system/selectAllRoles?pageNum=1&pageSize=10 根据名称分页查询: 方法:get http://localhost:8082/system/selectByNameRole?name=测试&pageNum=1&pageSize=10 根据用户id查询: 方法:get http://localhost:8082/system/selectRole/{roleId} 2. 编码说明 | 编码 | 注释 | 备注 | | ------ | ---------------- | ---- | | 0 | 交易成功 | | | 999999 | 交易失败 | | | 900001 | 部门编码已存在 | | | 900002 | 部门编码不可修改 | | | 900003 | 用户名已存在 | | | 900004 | 手机号码已存在 | | | 900005 | 删除用户失败 | | | 900006 | 角色编码已存在 | | | | | | | | | | 3. xxxx #### Contribution 1. Fork the repository 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request #### Gitee Feature 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)