|
@@ -7,6 +7,7 @@ import com.factory.user.service.RoleService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -28,9 +29,9 @@ public class RoleController {
|
|
|
@Resource
|
|
|
RoleService roleService;
|
|
|
|
|
|
- @GetMapping("/list")
|
|
|
+ @PostMapping("/list")
|
|
|
@ApiOperation(value = "角色列表")
|
|
|
- public ResponseBean<List<Role>> list(HttpServletRequest request) {
|
|
|
+ public ResponseBean<List<Role>> list() {
|
|
|
return ResponseBeanBuilder.ok(roleService.list());
|
|
|
}
|
|
|
}
|