Compare commits

..

1 Commits

Author SHA1 Message Date
8d06e000b8 feat: 添加删除分类接口 2023-06-03 12:06:46 +08:00
2 changed files with 12 additions and 1 deletions

View File

@@ -40,7 +40,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.16</version>
<version>1.2.6</version>
</dependency>
<!-- lombok -->

View File

@@ -37,6 +37,17 @@ public class CategoryController {
return Response.success(categoryService.delete(id));
}
/**
* 删除一个分类
*
* @param id 分类id
* @return Response
*/
@DeleteMapping("/admin/category/del/{id}")
public Response deleteOne(@PathVariable("id") long id) {
return Response.success(categoryService.delete(id));
}
/**
* 更新一个分类
*