|
@@ -0,0 +1,32 @@
|
|
|
+package com.bofeng.controller;
|
|
|
+
|
|
|
+import com.bofeng.entity.LoginResult;
|
|
|
+import com.bofeng.service.SweepCodeService;
|
|
|
+import com.google.common.base.Strings;
|
|
|
+import com.yvan.Model;
|
|
|
+import com.yvan.mvc.Pd;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+@Slf4j
|
|
|
+@RestController
|
|
|
+public class SweepCodeController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SweepCodeService sweepCodeService;
|
|
|
+
|
|
|
+ @ApiOperation("用户登录")
|
|
|
+ @PostMapping("/whepi/user/login.json")
|
|
|
+ public Model<LoginResult> userLogin(HttpServletResponse response,
|
|
|
+ HttpServletRequest request) {
|
|
|
+ sweepCodeService.selectCode();
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+}
|