|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.psdc.controller.key; |
|
|
|
package com.psdc.controller.key; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
|
import com.psdc.core.controller.BaseController; |
|
|
|
import com.psdc.core.controller.BaseController; |
|
|
|
import com.psdc.core.domain.AjaxResult; |
|
|
|
import com.psdc.core.domain.AjaxResult; |
|
|
|
import com.psdc.entity.PrivateKey; |
|
|
|
import com.psdc.entity.PrivateKey; |
|
|
@ -84,7 +85,7 @@ public class PrivateKeyController extends BaseController{ |
|
|
|
* @return 是否成功 |
|
|
|
* @return 是否成功 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@PostMapping("/del") |
|
|
|
@PostMapping("/del") |
|
|
|
public AjaxResult deleteById(@RequestBody Map<String, Object> requestBody){ |
|
|
|
public AjaxResult deleteById(@RequestBody JSONObject requestBody){ |
|
|
|
Integer id = (Integer) requestBody.get("id"); |
|
|
|
Integer id = (Integer) requestBody.get("id"); |
|
|
|
return privateKeyService.deleteById(id); |
|
|
|
return privateKeyService.deleteById(id); |
|
|
|
} |
|
|
|
} |
|
|
|