|
@@ -0,0 +1,34 @@
|
|
|
+/*
|
|
|
+ * Copyright (c) 2025 GaoKunW
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+package org.eco.vip.auth.controller.auth;
|
|
|
+
|
|
|
+
|
|
|
+import jakarta.annotation.security.PermitAll;
|
|
|
+import org.eco.vip.auth.domain.auth.vo.AuthParam;
|
|
|
+import org.eco.vip.orm.pojo.CommonResult;
|
|
|
+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 static org.eco.vip.orm.pojo.CommonResult.success;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @description AuthController
|
|
|
+ *
|
|
|
+ * @author GaoKunW
|
|
|
+ * @date 2025/7/1 11:08
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/system/auth")
|
|
|
+public class AuthController {
|
|
|
+
|
|
|
+ @PostMapping("/login")
|
|
|
+ @PermitAll
|
|
|
+ public CommonResult<String> login(@RequestBody AuthParam authParam) {
|
|
|
+ return success("登录成功");
|
|
|
+ }
|
|
|
+}
|