Commit fa1e12e9 by 唐功亮

删除测试接口

parent 3f25378f
......@@ -3,7 +3,10 @@ package io.office.modules.manage.controller;
import java.util.Arrays;
import java.util.Map;
import cn.hutool.crypto.symmetric.DES;
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.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
......@@ -16,6 +19,7 @@ import io.office.modules.manage.service.LogLoginService;
import io.office.common.utils.PageUtils;
import io.office.common.utils.R;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
......@@ -30,16 +34,15 @@ import javax.servlet.http.HttpServletResponse;
@RestController
@RequestMapping("/loglogin")
public class LogLoginController {
@Autowired
private LogLoginService logLoginService;
@RequestMapping("/api/test")
@Login
// @RequiresPermissions("manage:member:list")
public String test() throws Exception {
DES des = new DES();
return des.encrypt("t1476171348");
}
@Autowired
private SysCaptchaService sysCaptchaService;
/**
* 用户登录
......@@ -48,6 +51,11 @@ public class LogLoginController {
@Login
// @RequiresPermissions("manage:member:list")
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));
}
......@@ -66,7 +74,8 @@ public class LogLoginController {
/**
* 信息
*/
@RequestMapping("/info/{id}")
@RequestMapping("/api/info/{id}")
@Login
// @RequiresPermissions("manage:loglogin:info")
public R info(@PathVariable("id") Integer 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