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
989ae640
Commit
989ae640
authored
Dec 08, 2021
by
rongkailun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b6909303
1e90dda6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
396 additions
and
0 deletions
+396
-0
GLNController.java
...va/io/office/modules/manage/controller/GLNController.java
+3
-0
TimescodeRegiController.java
...ce/modules/manage/controller/TimescodeRegiController.java
+104
-0
TimescodeRegiIpController.java
.../modules/manage/controller/TimescodeRegiIpController.java
+90
-0
TimescodeRegiDao.java
...n/java/io/office/modules/manage/dao/TimescodeRegiDao.java
+17
-0
TimescodeRegiIpDao.java
...java/io/office/modules/manage/dao/TimescodeRegiIpDao.java
+17
-0
TimescodeRegiEntity.java
.../io/office/modules/manage/entity/TimescodeRegiEntity.java
+49
-0
TimescodeRegiIpEntity.java
...o/office/modules/manage/entity/TimescodeRegiIpEntity.java
+42
-0
TimescodeRegiIpService.java
...office/modules/manage/service/TimescodeRegiIpService.java
+20
-0
TimescodeRegiService.java
...o/office/modules/manage/service/TimescodeRegiService.java
+24
-0
TimescodeRegiIpServiceImpl.java
...dules/manage/service/impl/TimescodeRegiIpServiceImpl.java
+30
-0
TimescodeRegiServiceImpl.java
...modules/manage/service/impl/TimescodeRegiServiceImpl.java
+0
-0
No files found.
src/main/java/io/office/modules/manage/controller/GLNController.java
View file @
989ae640
...
@@ -91,10 +91,13 @@ public class GLNController {
...
@@ -91,10 +91,13 @@ public class GLNController {
@PostMapping
(
"/api/domesticCode"
)
@PostMapping
(
"/api/domesticCode"
)
public
R
domesticCode
(
@RequestBody
DomesticCodeVo
domesticCodeVo
,
HttpServletRequest
request
)
{
public
R
domesticCode
(
@RequestBody
DomesticCodeVo
domesticCodeVo
,
HttpServletRequest
request
)
{
/*
boolean captcha = sysCaptchaService.validate(domesticCodeVo.getUuid(), domesticCodeVo.getCaptcha());
boolean captcha = sysCaptchaService.validate(domesticCodeVo.getUuid(), domesticCodeVo.getCaptcha());
if(!captcha){
if(!captcha){
return R.error("验证码不正确");
return R.error("验证码不正确");
}
}
*/
SearchgtinlogEntity
searchgtinlogEntity
=
new
SearchgtinlogEntity
();
SearchgtinlogEntity
searchgtinlogEntity
=
new
SearchgtinlogEntity
();
...
...
src/main/java/io/office/modules/manage/controller/TimescodeRegiController.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
controller
;
import
java.util.Arrays
;
import
java.util.Map
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.office.modules.manage.entity.TimescodeRegiEntity
;
import
io.office.modules.manage.service.TimescodeRegiService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
/**
* 验证码获取
*
* @author tgl
* @email
* @date 2021-12-07 16:52:34
*/
@RestController
@RequestMapping
(
"/timescoderegi"
)
public
class
TimescodeRegiController
{
@Autowired
private
TimescodeRegiService
timescodeRegiService
;
/**
* 获取验证码
*/
@RequestMapping
(
"/api/getVerificationCode"
)
// @RequiresPermissions("manage:timescoderegi:list")
public
R
getVerificationCode
(
@RequestBody
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
){
String
msg
=
timescodeRegiService
.
getVerificationCode
(
params
,
request
,
response
);
return
R
.
ok
();
}
/**
* 列表
*/
@RequestMapping
(
"/list"
)
// @RequiresPermissions("manage:timescoderegi:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
){
PageUtils
page
=
timescodeRegiService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"page"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{phone}"
)
// @RequiresPermissions("manage:timescoderegi:info")
public
R
info
(
@PathVariable
(
"phone"
)
String
phone
){
TimescodeRegiEntity
timescodeRegi
=
timescodeRegiService
.
getById
(
phone
);
return
R
.
ok
().
put
(
"timescodeRegi"
,
timescodeRegi
);
}
/**
* 保存
*/
@RequestMapping
(
"/save"
)
// @RequiresPermissions("manage:timescoderegi:save")
public
R
save
(
@RequestBody
TimescodeRegiEntity
timescodeRegi
){
timescodeRegiService
.
save
(
timescodeRegi
);
return
R
.
ok
();
}
/**
* 修改
*/
@RequestMapping
(
"/update"
)
// @RequiresPermissions("manage:timescoderegi:update")
public
R
update
(
@RequestBody
TimescodeRegiEntity
timescodeRegi
){
timescodeRegiService
.
updateById
(
timescodeRegi
);
return
R
.
ok
();
}
/**
* 删除
*/
@RequestMapping
(
"/delete"
)
// @RequiresPermissions("manage:timescoderegi:delete")
public
R
delete
(
@RequestBody
String
[]
phones
){
timescodeRegiService
.
removeByIds
(
Arrays
.
asList
(
phones
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/controller/TimescodeRegiIpController.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
controller
;
import
java.util.Arrays
;
import
java.util.Map
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.office.modules.manage.entity.TimescodeRegiIpEntity
;
import
io.office.modules.manage.service.TimescodeRegiIpService
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-07 17:34:57
*/
@RestController
@RequestMapping
(
"/timescoderegiip"
)
public
class
TimescodeRegiIpController
{
@Autowired
private
TimescodeRegiIpService
timescodeRegiIpService
;
/**
* 列表
*/
@RequestMapping
(
"/list"
)
// @RequiresPermissions("manage:timescoderegiip:list")
public
R
list
(
@RequestParam
Map
<
String
,
Object
>
params
){
PageUtils
page
=
timescodeRegiIpService
.
queryPage
(
params
);
return
R
.
ok
().
put
(
"page"
,
page
);
}
/**
* 信息
*/
@RequestMapping
(
"/info/{ip}"
)
// @RequiresPermissions("manage:timescoderegiip:info")
public
R
info
(
@PathVariable
(
"ip"
)
String
ip
){
TimescodeRegiIpEntity
timescodeRegiIp
=
timescodeRegiIpService
.
getById
(
ip
);
return
R
.
ok
().
put
(
"timescodeRegiIp"
,
timescodeRegiIp
);
}
/**
* 保存
*/
@RequestMapping
(
"/save"
)
// @RequiresPermissions("manage:timescoderegiip:save")
public
R
save
(
@RequestBody
TimescodeRegiIpEntity
timescodeRegiIp
){
timescodeRegiIpService
.
save
(
timescodeRegiIp
);
return
R
.
ok
();
}
/**
* 修改
*/
@RequestMapping
(
"/update"
)
// @RequiresPermissions("manage:timescoderegiip:update")
public
R
update
(
@RequestBody
TimescodeRegiIpEntity
timescodeRegiIp
){
timescodeRegiIpService
.
updateById
(
timescodeRegiIp
);
return
R
.
ok
();
}
/**
* 删除
*/
@RequestMapping
(
"/delete"
)
// @RequiresPermissions("manage:timescoderegiip:delete")
public
R
delete
(
@RequestBody
String
[]
ips
){
timescodeRegiIpService
.
removeByIds
(
Arrays
.
asList
(
ips
));
return
R
.
ok
();
}
}
src/main/java/io/office/modules/manage/dao/TimescodeRegiDao.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.TimescodeRegiEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-07 16:52:34
*/
@Mapper
public
interface
TimescodeRegiDao
extends
BaseMapper
<
TimescodeRegiEntity
>
{
}
src/main/java/io/office/modules/manage/dao/TimescodeRegiIpDao.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
dao
;
import
io.office.modules.manage.entity.TimescodeRegiIpEntity
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-07 17:34:57
*/
@Mapper
public
interface
TimescodeRegiIpDao
extends
BaseMapper
<
TimescodeRegiIpEntity
>
{
}
src/main/java/io/office/modules/manage/entity/TimescodeRegiEntity.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 验证码实体
*
* @author tgl
* @email
* @date 2021-12-07 16:52:34
*/
@Data
@TableName
(
"timescode_regi"
)
public
class
TimescodeRegiEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 手机号
*/
private
String
phone
;
/**
* 时间
*/
private
String
date
;
/**
*获取短信验证码次数
*/
private
Integer
times
;
/**
* 输入短信验证码验证次数
*/
private
Integer
timesValidate
;
public
TimescodeRegiEntity
()
{
}
public
TimescodeRegiEntity
(
String
phone
,
String
date
,
Integer
times
,
Integer
timesValidate
)
{
this
.
phone
=
phone
;
this
.
date
=
date
;
this
.
times
=
times
;
this
.
timesValidate
=
timesValidate
;
}
}
src/main/java/io/office/modules/manage/entity/TimescodeRegiIpEntity.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-07 17:34:57
*/
@Data
@TableName
(
"timescode_regi_ip"
)
public
class
TimescodeRegiIpEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* $column.comments
*/
@TableId
private
String
ip
;
/**
* $column.comments
*/
private
String
date
;
/**
* $column.comments
*/
private
Integer
timesIp
;
public
TimescodeRegiIpEntity
(
String
ip
,
String
date
,
Integer
timesIp
)
{
this
.
ip
=
ip
;
this
.
date
=
date
;
this
.
timesIp
=
timesIp
;
}
}
src/main/java/io/office/modules/manage/service/TimescodeRegiIpService.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.office.common.utils.PageUtils
;
import
io.office.modules.manage.entity.TimescodeRegiIpEntity
;
import
java.util.Map
;
/**
* ${comments}
*
* @author wudi
* @email
* @date 2021-12-07 17:34:57
*/
public
interface
TimescodeRegiIpService
extends
IService
<
TimescodeRegiIpEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
}
src/main/java/io/office/modules/manage/service/TimescodeRegiService.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.office.common.utils.PageUtils
;
import
io.office.modules.manage.entity.TimescodeRegiEntity
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Map
;
/**
* ${comments}
*
* @author tgl
* @email
* @date 2021-12-07 16:52:34
*/
public
interface
TimescodeRegiService
extends
IService
<
TimescodeRegiEntity
>
{
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
String
getVerificationCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
);
}
src/main/java/io/office/modules/manage/service/impl/TimescodeRegiIpServiceImpl.java
0 → 100644
View file @
989ae640
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.modules.manage.dao.TimescodeRegiIpDao
;
import
io.office.modules.manage.entity.TimescodeRegiIpEntity
;
import
io.office.modules.manage.service.TimescodeRegiIpService
;
@Service
(
"timescodeRegiIpService"
)
public
class
TimescodeRegiIpServiceImpl
extends
ServiceImpl
<
TimescodeRegiIpDao
,
TimescodeRegiIpEntity
>
implements
TimescodeRegiIpService
{
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
TimescodeRegiIpEntity
>
page
=
this
.
page
(
new
Query
<
TimescodeRegiIpEntity
>().
getPage
(
params
),
new
QueryWrapper
<
TimescodeRegiIpEntity
>()
);
return
new
PageUtils
(
page
);
}
}
\ No newline at end of file
src/main/java/io/office/modules/manage/service/impl/TimescodeRegiServiceImpl.java
0 → 100644
View file @
989ae640
This diff is collapsed.
Click to expand it.
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