Compare commits
1 Commits
dependabot
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d06e000b8 |
2
pom.xml
2
pom.xml
@@ -47,7 +47,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.26</version>
|
<version>1.18.20</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,17 @@ public class CategoryController {
|
|||||||
return Response.success(categoryService.delete(id));
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新一个分类
|
* 更新一个分类
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user