|
@@ -0,0 +1,36 @@
|
|
|
|
|
+package com.mokamrp.privates.controller;
|
|
|
|
|
+
|
|
|
|
|
+import com.mokamrp.privates.config.XxlSsoConfig;
|
|
|
|
|
+import com.mokamrp.privates.constant.HttpStatus;
|
|
|
|
|
+import com.mokamrp.privates.entity.LoginHandle;
|
|
|
|
|
+import com.mokamrp.privates.help.AjaxResult;
|
|
|
|
|
+import org.springframework.validation.BindingResult;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
|
|
+import java.util.HashMap;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * <p>
|
|
|
|
|
+ * 前端控制器
|
|
|
|
|
+ * </p>
|
|
|
|
|
+ *
|
|
|
|
|
+ * @author gy
|
|
|
|
|
+ * @since 2021-04-22
|
|
|
|
|
+ */
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping("/config")
|
|
|
|
|
+public class ConfigController{
|
|
|
|
|
+
|
|
|
|
|
+ @PostMapping("/info")
|
|
|
|
|
+ public Object login() {
|
|
|
|
|
+ Map<String, Object> resMap = new HashMap<String, Object>();
|
|
|
|
|
+ resMap.put("logoutUrl", XxlSsoConfig.getLogoutUrl());
|
|
|
|
|
+ return AjaxResult.success( resMap);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|