【fix bug】修改请求类型 OnlCgformAuthController.java
This commit is contained in:
+4
-4
@@ -81,7 +81,7 @@ public class OnlCgformAuthController {
|
||||
}
|
||||
|
||||
|
||||
@PutMapping({"/authData"})
|
||||
@PostMapping({"/authData"})
|
||||
public Result<OnlAuthData> editAuthData(@RequestBody OnlAuthData paramOnlAuthData) {
|
||||
Result<OnlAuthData> result = new Result<>();
|
||||
this.onlAuthDataService.updateById(paramOnlAuthData);
|
||||
@@ -89,7 +89,7 @@ public class OnlCgformAuthController {
|
||||
}
|
||||
|
||||
|
||||
@DeleteMapping({"/authData/{id}"})
|
||||
@PostMapping({"/authData/{id}"})
|
||||
public Result<T> getAuthDataById(@PathVariable("id") String paramString) {
|
||||
this.onlAuthDataService.deleteOne(paramString);
|
||||
return Result.OK("删除成功!");
|
||||
@@ -145,7 +145,7 @@ public class OnlCgformAuthController {
|
||||
}
|
||||
|
||||
|
||||
@PutMapping({"/authButton/{id}"})
|
||||
@PostMapping({"/authButton/{id}"})
|
||||
public Result<String> d(@PathVariable("id") String paramString) {
|
||||
LambdaUpdateWrapper<OnlAuthPage> lambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
lambdaUpdateWrapper.eq(OnlAuthPage::getId, paramString).set(OnlAuthPage::getStatus, 0);
|
||||
@@ -215,7 +215,7 @@ public class OnlCgformAuthController {
|
||||
}
|
||||
|
||||
|
||||
@PutMapping({"/authColumn"})
|
||||
@PostMapping({"/authColumn"})
|
||||
public Result<T> editAuthColumn(@RequestBody AuthColumnVO paramAuthColumnVO) {
|
||||
try {
|
||||
if (paramAuthColumnVO.getStatus() == 1) {
|
||||
|
||||
Reference in New Issue
Block a user