Open hklhai opened 6 years ago
@aym19900825 测试已完成
POST http://192.168.1.140:8090/system/roleAdd { "rolename": "admin", "roledesc": "管理员" }
Return: { "code": 1, "message": "Add Success!" }
Tip: 如果重名提示已存在 { "code": 0, "message": "Already exists!" }
DELETE http://192.168.1.140:8090/system/role/2 Return: { "code": 1, "message": "Delete Success!" }
PUT http://192.168.1.140:8090/system/role?roleid=3 { "rolename": "adminhk1", "roledesc": "管理员hk1" }
Return: { "code": 1, "message": "Edit Success!" }
Tip: 重复修改提示已存在 { "code": 0, "message": "Already exists!" }
POST http://192.168.1.140:8090/system/roleData { "integerId": 1 }
Return: { "roleid": 3, "roledesc": "管理员hk1", "rolename": "adminhk1", "rolestatus": null, "sortnum": null, "userroles": [] }
POST http://spark2:8090/system/roleList?page=0&size=10 { "rolename": "ad" }
Return: { "page": { "sort": [ { "direction": "DESC", "property": "roleid", "ignoreCase": false, "nullHandling": "NATIVE", "ascending": false, "descending": true } ], "pageNumber": 0, "pageSize": 10, "offset": 0 }, "totalPages": 1, "roleList": [ { "roleid": 3, "roledesc": "管理员hk1", "rolename": "adminhk1", "rolestatus": null, "sortnum": null, "userroles": [ { "userroleid": 2 } ] }, { "roleid": 1, "roledesc": "管理员", "rolename": "admin", "rolestatus": null, "sortnum": null, "userroles": [ { "userroleid": 1 } ] } ] }
@aym19900825 测试已通过
POST http://192.168.1.140:8090/system/modelAdd { "modelname": "车辆管理", "modeldesc": "车辆管理description" }
Return: { "code": 1, "message": "Add Success!" }
Tip: 如果重名提示已存在 { "code": 0, "message": "Already exists!" }
DELETE http://192.168.1.140:8090/system/model/2 Return: { "code": 1, "message": "Delete Success!" }
PUT http://192.168.1.140:8090/system/model?modelid=1 { "modelname": "车辆管理hk", "modeldesc": "车辆管理descriptionhk" }
Return: { "code": 1, "message": "Edit Success!" }
Tip: 重复修改提示已存在 { "code": 0, "message": "Already exists!" }
POST http://192.168.1.140:8090/system/modelData { "integerId": 1 }
Return: { "modelid": 1, "ismdeol": null, "modeldesc": "车辆管理descriptionhk", "modelname": "车辆管理hk", "modelstatus": null, "parentid": null, "remark": null, "sortnum": null, "murl": null, "isurl": null, "childList": null }
POST http://spark2:8090/system/modelList?page=0&size=10 { "modelname": "工具" }
Return: { "page": { "sort": [ { "direction": "DESC", "property": "modelid", "ignoreCase": false, "nullHandling": "NATIVE", "ascending": false, "descending": true } ], "pageNumber": 0, "pageSize": 10, "offset": 0 }, "totalPages": 1, "modelList": [ { "modelid": 2, "ismdeol": null, "modeldesc": "工具台账", "modelname": "工具台账", "modelstatus": null, "parentid": 0, "remark": null, "sortnum": null, "murl": null, "isurl": null, "bid": null, "childList": null } ] }
@aym19900825 测试已通过
POST http://192.168.1.140:8090/system/userRoles { "userid": 1, "roleList": [ { "userroleid":"", "roleid":1, "userid":1 }, { "userroleid":"", "roleid":3, "userid":1 } ] }
Return: { "code": 1, "message": "Add Success!" }
POST http://192.168.1.140:8090/system/userRoleList { "integerId": 1 }
Return: [ { "userroleid": 1, "name": "admin", "userid": 1, "roleid": 1, "rolename": "admin" }, { "userroleid": 2, "name": "admin", "userid": 1, "roleid": 3, "rolename": "adminhk1" } ]
POST http://192.168.1.140:8090/system/roleModels { "roleid": 1, "modelDtoList": [ { "rolemodelid":"", "roleid":1, "modelid":1 }, { "rolemodelid":"", "roleid":1, "modelid":2 }, { "rolemodelid":"", "roleid":1, "modelid":3 } ] }
Return: { "code": 1, "message": "Add Success!" }
{ "integerId": 1 }
Return: [ { "rolemodelid": 1, "roleid": 1, "rolename": "admin", "modelid": 1, "modelname": "车辆管理hk" }, { "rolemodelid": 2, "roleid": 1, "rolename": "admin", "modelid": 2, "modelname": "工具台账" }, { "rolemodelid": 3, "roleid": 1, "rolename": "admin", "modelid": 3, "modelname": "工单管理" } ]
@aym19900825 测试已通过
POST http://192.168.1.140:8090/system/login { "name": "admin", "password": "123456" }
Return: { "code": 1, "message": "LoginSuccess", "modelList": [ { "usermodelid": 2, "userid": 1, "name": "admin", "modelid": 1, "modelname": "车辆管理hk", "modeldesc": "车辆管理descriptionhk", "parentid": 0, "bid": null, "viewUserModelList": [ { "usermodelid": 4, "userid": 1, "name": "admin", "modelid": 3, "modelname": "工单管理", "modeldesc": "工单管理", "parentid": 1, "bid": null, "viewUserModelList": null } ] }, { "usermodelid": 3, "userid": 1, "name": "admin", "modelid": 2, "modelname": "工具台账", "modeldesc": "工具台账", "parentid": 0, "bid": null, "viewUserModelList": null } ] }
@hklhai 用户和角色的添加成功后,列表数据接口未返回添加的数据------只对了列表接口和添加接口 @aym19900825 已经解决
@aym19900825 测试已完成
用户管理
用户添加
POST http://192.168.1.140:8090/system/userAdd { "name": "hk", "password": "123" }
Return: { "code": 1, "message": "Add Success!" }
Tip: 如果重名提示已存在 { "code": 0, "message": "Already exists!" }
用户删除
DELETE http://192.168.1.140:8090/system/user/5 Return: { "code": 1, "message": "Delete Success!" }
用户修改
PUT http://192.168.1.140:8090/system/user?userid=7 { "name": "hk" }
Return: { "code": 1, "message": "Edit Success!" }
Tip: 重复修改提示已存在 { "code": 0, "message": "Already exists!" }
用户信息查询
POST http://192.168.1.140:8090/system/userData { "integerId": 1 }
Return: { "userid": 1, "name": "admin", "address": null, "describe": null, "email": null, "mobile": null, "sex": null, "username": null, "userstatus": null, "department": null, "userroles": [] }
用户列表
POST http://spark2:8090/system/userList?page=0&size=10 { "name": "admin", "username": "管" }
Return: { "page": { "sort": [ { "direction": "DESC", "property": "userid", "ignoreCase": false, "nullHandling": "NATIVE", "ascending": false, "descending": true } ], "pageNumber": 0, "pageSize": 10, "offset": 0 }, "totalPages": 1, "userList": [ { "userid": 1, "name": "admin", "address": null, "describe": null, "email": null, "mobile": null, "sex": null, "username": "管理员", "userstatus": null, "department": null, "userroles": [ { "userroleid": 1 }, { "userroleid": 2 } ] } ] }