From dc31792dc1b8ad1658e49ba8fce9a1be924e6fbb Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期四, 30 十一月 2023 08:44:04 +0800 Subject: [PATCH] 理片笼测试修改 --- springboot-vue3/src/main/java/com/example/springboot/service/CategoryService.java | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/service/CategoryService.java b/springboot-vue3/src/main/java/com/example/springboot/service/CategoryService.java new file mode 100644 index 0000000..f86b51b --- /dev/null +++ b/springboot-vue3/src/main/java/com/example/springboot/service/CategoryService.java @@ -0,0 +1,51 @@ +package com.example.springboot.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.service.IService; +import com.example.springboot.entity.Category; +import com.example.springboot.entity.vo.CategoryVo; + +import java.util.List; + +public interface CategoryService extends IService<Category> { + /** + * 鍒嗛〉鏌ヨ鍒嗙被 + * + * @param categoryVO + * @return + */ + IPage<Category> selectPage(CategoryVo categoryVO); + + /** + * 鏌ヨ瀛愰泦,杩斿洖闈炲祵濂楁暟鎹粨鏋� + * + * @param id + * @param bool 鏄惁鍖呭惈鑷繁 + * @return + */ + List<Category> selectList(Long id, Boolean bool); + + /** + * 鏌ヨ瀛愰泦,涓嶅寘鍚嚜宸�,杩斿洖闈炲祵濂楁暟鎹粨鏋� + * + * @param id 鍒嗙被鐨刬d + * @param path 鍒嗙被鐨勮矾寰� + * @return + */ + List<Category> selectByPath(Long id, String path); + + /** + * 鏌ヨ瀛愰泦,杩斿洖宓屽鏁版嵁缁撴瀯 + * + * @return + */ + List<Category> selectChilds(Long creator); + + /** + * 鏌ヨ瀛愰泦,涓嶅寘鍚嚜宸�,杩斿洖宓屽鏁版嵁缁撴瀯 + * + * @param id + * @return + */ + List<Category> selectChild(Long id); +} -- Gitblit v1.8.0