Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
fa1e12e9
Commit
fa1e12e9
authored
Dec 11, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除测试接口
parent
3f25378f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
LogLoginController.java
.../office/modules/manage/controller/LogLoginController.java
+17
-8
No files found.
src/main/java/io/office/modules/manage/controller/LogLoginController.java
View file @
fa1e12e9
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment