xiangpei
2024-05-27 13a68df58b3f937db5ba6437c814bafdcd8d37f8
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();
    }
}