|
@@ -8,6 +8,7 @@ import com.om.service.IAppService;
|
|
|
import com.om.utils.Result;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -22,6 +23,7 @@ import javax.annotation.Resource;
|
|
|
*/
|
|
|
@RestController
|
|
|
@Api(tags = "APP版本")
|
|
|
+@Slf4j
|
|
|
@RequestMapping("/app")
|
|
|
public class AppController {
|
|
|
|
|
@@ -36,8 +38,9 @@ public class AppController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("删除应用软件")
|
|
|
- @GetMapping("/delete")
|
|
|
- public Result delete(@RequestParam Integer id){
|
|
|
+ @DeleteMapping("/delete/{id}")
|
|
|
+ public Result delete(@PathVariable(name = "id") Integer id){
|
|
|
+ log.info("获取的id={}",id);
|
|
|
|
|
|
return appService.delete(id);
|
|
|
}
|