|
@@ -5,6 +5,7 @@ import com.qmth.boot.api.annotation.BOOL;
|
|
import com.qmth.boot.api.config.ApiConfig;
|
|
import com.qmth.boot.api.config.ApiConfig;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.core.enums.Platform;
|
|
import com.qmth.boot.core.enums.Platform;
|
|
|
|
+import com.qmth.boot.core.security.config.SecurityConfig;
|
|
import com.qmth.boot.core.uid.service.UidService;
|
|
import com.qmth.boot.core.uid.service.UidService;
|
|
import org.apache.commons.lang3.RandomUtils;
|
|
import org.apache.commons.lang3.RandomUtils;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -24,6 +25,9 @@ public class IndexController {
|
|
@Resource
|
|
@Resource
|
|
private UidService uidService;
|
|
private UidService uidService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ private SecurityConfig securityConfig;
|
|
|
|
+
|
|
@RequestMapping("/strict")
|
|
@RequestMapping("/strict")
|
|
@Aac(strict = BOOL.TRUE)
|
|
@Aac(strict = BOOL.TRUE)
|
|
public Object strict() {
|
|
public Object strict() {
|
|
@@ -53,6 +57,11 @@ public class IndexController {
|
|
return apiConfig;
|
|
return apiConfig;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @RequestMapping("/security")
|
|
|
|
+ public Object security() {
|
|
|
|
+ return securityConfig;
|
|
|
|
+ }
|
|
|
|
+
|
|
@RequestMapping("/uid")
|
|
@RequestMapping("/uid")
|
|
public Object getUid() {
|
|
public Object getUid() {
|
|
return uidService.getId();
|
|
return uidService.getId();
|