完善CRUD
parent
e77d8204e5
commit
dd46eaf49d
|
@ -73,7 +73,7 @@ public class EngIneController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 通过引擎维护编号禁用引擎
|
* 通过引擎维护编号禁用引擎
|
||||||
*/
|
*/
|
||||||
@GetMapping("/forbiddenEngine/{id}")
|
@PostMapping("/forbiddenEngine/{id}")
|
||||||
public Result forbiddenEngine(@PathVariable Integer id) {
|
public Result forbiddenEngine(@PathVariable Integer id) {
|
||||||
engIneService.forbiddenEngine(id);
|
engIneService.forbiddenEngine(id);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
|
@ -82,7 +82,7 @@ public class EngIneController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 通过引擎维护编号开启引擎
|
* 通过引擎维护编号开启引擎
|
||||||
*/
|
*/
|
||||||
@PutMapping("/onEngine/{id}")
|
@PostMapping("/onEngine/{id}")
|
||||||
public Result onEngine(@PathVariable Integer id) {
|
public Result onEngine(@PathVariable Integer id) {
|
||||||
engIneService.onEngine(id);
|
engIneService.onEngine(id);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
|
@ -91,7 +91,7 @@ public class EngIneController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 通过引擎维护编号关闭引擎
|
* 通过引擎维护编号关闭引擎
|
||||||
*/
|
*/
|
||||||
@PutMapping("/closeEngine/{id}")
|
@PostMapping("/closeEngine/{id}")
|
||||||
public Result closeEngine(@PathVariable Integer id) {
|
public Result closeEngine(@PathVariable Integer id) {
|
||||||
engIneService.closeEngine(id);
|
engIneService.closeEngine(id);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
|
@ -100,7 +100,7 @@ public class EngIneController extends BaseController {
|
||||||
/**
|
/**
|
||||||
* 通过引擎维护编号激活引擎
|
* 通过引擎维护编号激活引擎
|
||||||
*/
|
*/
|
||||||
@PutMapping("/activateEngine/{id}")
|
@PostMapping("/activateEngine/{id}")
|
||||||
public Result activateEngine(@PathVariable Integer id) {
|
public Result activateEngine(@PathVariable Integer id) {
|
||||||
engIneService.activateEngine(id);
|
engIneService.activateEngine(id);
|
||||||
return Result.success();
|
return Result.success();
|
||||||
|
|
Loading…
Reference in New Issue