初始化 dept 部门模块
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package cn.iocoder.dashboard.modules.system.service.dept;
|
||||
|
||||
import cn.iocoder.dashboard.modules.system.dal.mysql.dataobject.dept.SysDeptDO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 部门 Service 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
public interface SysDeptService {
|
||||
|
||||
/**
|
||||
* 获得所有部门列表
|
||||
*
|
||||
* @return 菜单列表
|
||||
*/
|
||||
List<SysDeptDO> listDepts();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.iocoder.dashboard.modules.system.service.dept.impl;
|
||||
|
||||
import cn.iocoder.dashboard.modules.system.dal.mysql.dao.dept.SysDeptMapper;
|
||||
import cn.iocoder.dashboard.modules.system.dal.mysql.dataobject.dept.SysDeptDO;
|
||||
import cn.iocoder.dashboard.modules.system.service.dept.SysDeptService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 部门 Service 实现类
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@Service
|
||||
public class SysDeptServiceImpl implements SysDeptService {
|
||||
|
||||
@Resource
|
||||
private SysDeptMapper deptMapper;
|
||||
|
||||
@Override
|
||||
public List<SysDeptDO> listDepts() {
|
||||
return deptMapper.selectList();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user