Commit fa1e12e9 by 唐功亮

删除测试接口

parent 3f25378f
...@@ -3,7 +3,10 @@ package io.office.modules.manage.controller; ...@@ -3,7 +3,10 @@ package io.office.modules.manage.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.Map; import java.util.Map;
import cn.hutool.crypto.symmetric.DES;
import io.office.modules.app.annotation.Login; import io.office.modules.app.annotation.Login;
import io.office.modules.manage.vo.request.DomesticCodeVo;
import io.office.modules.sys.service.SysCaptchaService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
...@@ -16,6 +19,7 @@ import io.office.modules.manage.service.LogLoginService; ...@@ -16,6 +19,7 @@ import io.office.modules.manage.service.LogLoginService;
import io.office.common.utils.PageUtils; import io.office.common.utils.PageUtils;
import io.office.common.utils.R; import io.office.common.utils.R;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -30,16 +34,15 @@ import javax.servlet.http.HttpServletResponse; ...@@ -30,16 +34,15 @@ import javax.servlet.http.HttpServletResponse;
@RestController @RestController
@RequestMapping("/loglogin") @RequestMapping("/loglogin")
public class LogLoginController { public class LogLoginController {
@Autowired @Autowired
private LogLoginService logLoginService; private LogLoginService logLoginService;
@RequestMapping("/api/test") @Autowired
@Login private SysCaptchaService sysCaptchaService;
// @RequiresPermissions("manage:member:list")
public String test() throws Exception {
DES des = new DES();
return des.encrypt("t1476171348");
}
/** /**
* 用户登录 * 用户登录
...@@ -48,6 +51,11 @@ public class LogLoginController { ...@@ -48,6 +51,11 @@ public class LogLoginController {
@Login @Login
// @RequiresPermissions("manage:member:list") // @RequiresPermissions("manage:member:list")
public R login(@RequestBody Map<String, Object> params, HttpServletRequest request, HttpServletResponse response){ public R login(@RequestBody Map<String, Object> params, HttpServletRequest request, HttpServletResponse response){
/*DomesticCodeVo domesticCodeVo = new DomesticCodeVo();
boolean captcha = sysCaptchaService.validate(domesticCodeVo.getUuid(), domesticCodeVo.getCaptcha());
if(!captcha){
return R.error("验证码不正确");
}*/
return R.ok().put("loginInfo",logLoginService.login(params,request,response)); return R.ok().put("loginInfo",logLoginService.login(params,request,response));
} }
...@@ -66,7 +74,8 @@ public class LogLoginController { ...@@ -66,7 +74,8 @@ public class LogLoginController {
/** /**
* 信息 * 信息
*/ */
@RequestMapping("/info/{id}") @RequestMapping("/api/info/{id}")
@Login
// @RequiresPermissions("manage:loglogin:info") // @RequiresPermissions("manage:loglogin:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
LogLoginEntity logLogin = logLoginService.getById(id); LogLoginEntity logLogin = logLoginService.getById(id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment