|
|
@@ -13,6 +13,7 @@ import javax.validation.Valid;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
@@ -44,10 +45,16 @@ public class AppUpgradeController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "删除")
|
|
|
@DeleteMapping("/{ids}")
|
|
|
- public AjaxResult delete(@RequestParam String[] ids) {
|
|
|
+ public AjaxResult delete(@RequestParam Long[] ids) {
|
|
|
return toAjax(appUpgradeService.delete(ids));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "删除")
|
|
|
+ @DeleteMapping("/{id}")
|
|
|
+ public AjaxResult delete(@PathVariable Long id) {
|
|
|
+ return toAjax(appUpgradeService.delete(id));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "更新")
|
|
|
@PutMapping("/update")
|
|
|
public AjaxResult update(@RequestBody @Valid AppUpgrade appUpgrade) {
|