src/main/java/com/mindskip/xzs/base/BaseApiController.java
@@ -7,6 +7,8 @@ import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import java.util.List; public class BaseApiController { /** @@ -31,4 +33,12 @@ protected User getCurrentUser() { return webContext.getCurrentUser(); } protected boolean isDeptAdmin() { return webContext.isDeptAdmin(); } protected List<Integer> getAdminDeptIds() { return webContext.getAdminDeptIds(); } }