mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-23 17:49:34 +08:00
定义check的执行顺序
This commit is contained in:
parent
3ec3e7e3e5
commit
ffd6c18616
@ -18,6 +18,7 @@ package xyz.playedu.api.checks;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import xyz.playedu.api.constant.BPermissionConstant;
|
||||
@ -26,6 +27,7 @@ import xyz.playedu.api.service.AdminPermissionService;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@Order(1020)
|
||||
@Component
|
||||
public class AdminPermissionCheck implements ApplicationRunner {
|
||||
|
||||
|
@ -18,6 +18,7 @@ package xyz.playedu.api.checks;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import xyz.playedu.api.constant.BackendConstant;
|
||||
@ -26,11 +27,7 @@ import xyz.playedu.api.service.AdminRoleService;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 杭州白书科技有限公司
|
||||
*
|
||||
* @create 2023/2/23 22:09
|
||||
*/
|
||||
@Order(1010)
|
||||
@Component
|
||||
public class AdminRoleCheck implements ApplicationRunner {
|
||||
|
||||
|
@ -18,6 +18,7 @@ package xyz.playedu.api.checks;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.boot.ApplicationRunner;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import xyz.playedu.api.constant.BackendConstant;
|
||||
@ -28,6 +29,7 @@ import xyz.playedu.api.service.AppConfigService;
|
||||
import java.util.*;
|
||||
|
||||
@Component
|
||||
@Order(1000)
|
||||
public class AppConfigCheck implements ApplicationRunner {
|
||||
|
||||
private static final HashMap<String, AppConfig[]> configs =
|
||||
|
Loading…
x
Reference in New Issue
Block a user