部门管理

This commit is contained in:
none
2023-02-19 12:15:57 +08:00
parent 166dc4c1a2
commit 9c97b774a0
15 changed files with 514 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
package xyz.playedu.api.service;
import xyz.playedu.api.domain.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.playedu.api.exception.NotFoundException;
import java.util.List;
/**
* @author tengteng
* @description 针对表【departments】的数据库操作Service
* @createDate 2023-02-19 10:39:57
*/
public interface DepartmentService extends IService<Department> {
List<Department> listByParentId(Integer id);
Department findOrFail(Integer id) throws NotFoundException;
void deleteById(Integer id) throws NotFoundException;
void update(Department department, String name, Integer parentId, Integer sort) throws NotFoundException;
}