xiangpei
2024-07-08 c447386e06ce5927fb6e3ccb22ee673535b3f566
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();
    }
}