xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
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();
    }
}