龚焕茏
2024-07-08 9619965a7a9cd4b8c9f41ef8d5d8aa44d62436c6
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();
    }
}