|
@@ -92,9 +92,9 @@ public class MusicTagController extends BaseController {
|
|
|
/**
|
|
|
* 删除
|
|
|
*/
|
|
|
- @PostMapping("/remove")
|
|
|
+ @PostMapping("/remove/{id}")
|
|
|
@ApiOperation(value = "逻辑删除", notes = "传入id")
|
|
|
- public HttpResponseResult<Boolean> remove(@ApiParam(value = "标签编号", required = true) @RequestParam Long id) {
|
|
|
+ public HttpResponseResult<Boolean> remove(@ApiParam(value = "标签编号", required = true) @PathVariable Long id) {
|
|
|
if (StringUtil.isEmpty(id)) {
|
|
|
return failed("参数不能为空");
|
|
|
}
|
|
@@ -104,9 +104,9 @@ public class MusicTagController extends BaseController {
|
|
|
/**
|
|
|
* 启用/停用
|
|
|
*/
|
|
|
- @PostMapping("/state")
|
|
|
+ @PostMapping("/state/{id}")
|
|
|
@ApiOperation(value = "启用/停用", notes = "传入id")
|
|
|
- public HttpResponseResult<Boolean> state(@ApiParam(value = "标签编号", required = true) @RequestParam Long id) {
|
|
|
+ public HttpResponseResult<Boolean> state(@ApiParam(value = "标签编号", required = true) @PathVariable Long id) {
|
|
|
if (StringUtil.isEmpty(id)) {
|
|
|
return failed("参数不能为空");
|
|
|
}
|