|
@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.core.basic.api.provider;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -54,8 +55,9 @@ public class RolePrivilegeCloudServiceProvider extends ControllerSupport
|
|
|
@Autowired
|
|
|
RolePrivilegeService rolePrivilegeService;
|
|
|
|
|
|
+ @ApiOperation(value = "添加角色")
|
|
|
@Override
|
|
|
- public SaveRoleResp saveRole(SaveRoleReq req) {
|
|
|
+ public SaveRoleResp saveRole(@RequestBody SaveRoleReq req) {
|
|
|
RoleInfo info = new RoleInfo();
|
|
|
info.setCode(req.getCode());
|
|
|
info.setName(req.getName());
|
|
@@ -75,7 +77,7 @@ public class RolePrivilegeCloudServiceProvider extends ControllerSupport
|
|
|
|
|
|
@ApiOperation(value = "删除角色")
|
|
|
@Override
|
|
|
- public DeleteRoleResp deleteRole(DeleteRoleReq req) {
|
|
|
+ public DeleteRoleResp deleteRole(@RequestBody DeleteRoleReq req) {
|
|
|
RoleInfo info = new RoleInfo();
|
|
|
info.setId(req.getId());
|
|
|
info.setCode(req.getCode());
|