|
|
@@ -2,14 +2,18 @@ package com.roma.romaapi.controller;
|
|
|
|
|
|
|
|
|
import com.roma.romaapi.service.CaptchaService;
|
|
|
+import jakarta.servlet.http.HttpServletResponse;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
+@CrossOrigin
|
|
|
public class ApiController {
|
|
|
|
|
|
@Autowired
|
|
|
@@ -19,4 +23,13 @@ public class ApiController {
|
|
|
public Map<String, Object> loginVerifyCode() throws IOException {
|
|
|
return captchaService.captchaCreator();
|
|
|
}
|
|
|
+
|
|
|
+ // 登录系统
|
|
|
+ @RequestMapping("/api/login")
|
|
|
+ public Map login(){
|
|
|
+ System.out.print("aaa");
|
|
|
+ Map a = new HashMap();
|
|
|
+ a.put("aa", "dsadsa");
|
|
|
+ return a;
|
|
|
+ }
|
|
|
}
|