Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
83dc7f8a
Commit
83dc7f8a
authored
Jun 10, 2019
by
zhengjie
Browse files
优化user列表中的岗位DTO,修改@author信息,新增验证码登录
parent
c01435a0
Changes
172
Hide whitespace changes
Inline
Side-by-side
eladmin-logging/src/main/java/me/zhengjie/service/dto/LogSmallDTO.java
View file @
83dc7f8a
...
...
@@ -6,7 +6,7 @@ import java.io.Serializable;
import
java.sql.Timestamp
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2019-5-22
*/
@Data
...
...
eladmin-logging/src/main/java/me/zhengjie/service/impl/LogServiceImpl.java
View file @
83dc7f8a
...
...
@@ -21,7 +21,7 @@ import org.springframework.transaction.annotation.Transactional;
import
java.lang.reflect.Method
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-11-24
*/
@Service
...
...
eladmin-logging/src/main/java/me/zhengjie/service/mapper/LogErrorMapper.java
View file @
83dc7f8a
...
...
@@ -7,7 +7,7 @@ import org.mapstruct.Mapper;
import
org.mapstruct.ReportingPolicy
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2019-5-22
*/
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
unmappedTargetPolicy
=
ReportingPolicy
.
IGNORE
)
...
...
eladmin-logging/src/main/java/me/zhengjie/service/mapper/LogSmallMapper.java
View file @
83dc7f8a
...
...
@@ -7,7 +7,7 @@ import org.mapstruct.Mapper;
import
org.mapstruct.ReportingPolicy
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2019-5-22
*/
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
unmappedTargetPolicy
=
ReportingPolicy
.
IGNORE
)
...
...
eladmin-system/pom.xml
View file @
83dc7f8a
...
...
@@ -15,8 +15,22 @@
<jjwt.version>
0.9.1
</jjwt.version>
</properties>
<repositories>
<repository>
<id>
jitpack.io
</id>
<url>
https://jitpack.io
</url>
</repository>
</repositories>
<dependencies>
<!-- 验证码 -->
<dependency>
<groupId>
com.github.whvcse
</groupId>
<artifactId>
EasyCaptcha
</artifactId>
<version>
1.5.0
</version>
</dependency>
<dependency>
<groupId>
me.zhengjie
</groupId>
<artifactId>
eladmin-generator
</artifactId>
...
...
eladmin-system/src/main/java/me/zhengjie/AppRun.java
View file @
83dc7f8a
...
...
@@ -8,7 +8,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018/11/15 9:20:19
*/
@EnableAsync
...
...
eladmin-system/src/main/java/me/zhengjie/config/ConfigurerAdapter.java
View file @
83dc7f8a
...
...
@@ -18,7 +18,7 @@ import java.util.List;
/**
* WebMvcConfigurer
*
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-11-30
*/
@Configuration
...
...
eladmin-system/src/main/java/me/zhengjie/config/DataScope.java
View file @
83dc7f8a
...
...
@@ -17,7 +17,7 @@ import java.util.Set;
/**
* 数据权限配置
* @author
j
ie
* @author
Zheng J
ie
* @date 2019-4-1
*/
@Component
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/config/VisitsInitialization.java
View file @
83dc7f8a
...
...
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
/**
* 初始化站点统计
* @author
j
ie
* @author
Zheng J
ie
*/
@Component
public
class
VisitsInitialization
implements
ApplicationRunner
{
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/domain/Visits.java
View file @
83dc7f8a
...
...
@@ -9,7 +9,7 @@ import java.sql.Timestamp;
/**
* pv 与 ip 统计
*
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-13
*/
@Entity
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/domain/vo/RedisVo.java
View file @
83dc7f8a
...
...
@@ -8,7 +8,7 @@ import javax.validation.constraints.NotBlank;
import
java.io.Serializable
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-10
*/
@Data
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/repository/VisitsRepository.java
View file @
83dc7f8a
...
...
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository;
import
java.util.List
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-13
*/
@Repository
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/rest/RedisController.java
View file @
83dc7f8a
...
...
@@ -12,7 +12,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-10
*/
@RestController
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/rest/VisitsController.java
View file @
83dc7f8a
...
...
@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-13
*/
@RestController
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/service/RedisService.java
View file @
83dc7f8a
...
...
@@ -6,7 +6,7 @@ import org.springframework.data.domain.Pageable;
/**
* 可自行扩展
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-10
*/
public
interface
RedisService
{
...
...
@@ -16,16 +16,30 @@ public interface RedisService {
* @param key
* @return
*/
public
Page
findByKey
(
String
key
,
Pageable
pageable
);
Page
findByKey
(
String
key
,
Pageable
pageable
);
/**
* 查询验证码的值
* @param key
* @return
*/
String
getCodeVal
(
String
key
);
/**
* 保存验证码
* @param key
* @param val
*/
void
saveCode
(
String
key
,
Object
val
);
/**
* delete
* @param key
*/
public
void
delete
(
String
key
);
void
delete
(
String
key
);
/**
* 清空所有缓存
*/
public
void
flushdb
();
void
flushdb
();
}
eladmin-system/src/main/java/me/zhengjie/modules/monitor/service/VisitsService.java
View file @
83dc7f8a
...
...
@@ -5,7 +5,7 @@ import org.springframework.scheduling.annotation.Async;
import
javax.servlet.http.HttpServletRequest
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-13
*/
public
interface
VisitsService
{
...
...
eladmin-system/src/main/java/me/zhengjie/modules/monitor/service/impl/RedisServiceImpl.java
View file @
83dc7f8a
...
...
@@ -13,7 +13,7 @@ import java.util.ArrayList;
import
java.util.List
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-10
*/
@Service
...
...
@@ -23,7 +23,7 @@ public class RedisServiceImpl implements RedisService {
RedisTemplate
redisTemplate
;
@Override
public
Page
findByKey
(
String
key
,
Pageable
pageable
){
public
Page
<
RedisVo
>
findByKey
(
String
key
,
Pageable
pageable
){
List
<
RedisVo
>
redisVos
=
new
ArrayList
<>();
if
(!
key
.
equals
(
"*"
)){
key
=
"*"
+
key
+
"*"
;
...
...
@@ -43,6 +43,8 @@ public class RedisServiceImpl implements RedisService {
return
page
;
}
@Override
public
void
delete
(
String
key
)
{
redisTemplate
.
delete
(
key
);
...
...
@@ -51,6 +53,20 @@ public class RedisServiceImpl implements RedisService {
@Override
public
void
flushdb
()
{
redisTemplate
.
getConnectionFactory
().
getConnection
().
flushDb
();
}
@Override
public
String
getCodeVal
(
String
key
)
{
try
{
String
value
=
redisTemplate
.
opsForValue
().
get
(
key
).
toString
();
return
value
;
}
catch
(
Exception
e
){
return
""
;
}
}
@Override
public
void
saveCode
(
String
key
,
Object
val
)
{
redisTemplate
.
opsForValue
().
set
(
key
,
val
,
2000
);
}
}
eladmin-system/src/main/java/me/zhengjie/modules/monitor/service/impl/VisitsServiceImpl.java
View file @
83dc7f8a
...
...
@@ -18,7 +18,7 @@ import java.util.Map;
import
java.util.stream.Collectors
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2018-12-13
*/
@Slf4j
...
...
eladmin-system/src/main/java/me/zhengjie/modules/quartz/config/JobRunner.java
View file @
83dc7f8a
...
...
@@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
import
java.util.List
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2019-01-07
*/
@Component
...
...
eladmin-system/src/main/java/me/zhengjie/modules/quartz/domain/QuartzJob.java
View file @
83dc7f8a
...
...
@@ -10,7 +10,7 @@ import java.io.Serializable;
import
java.sql.Timestamp
;
/**
* @author
j
ie
* @author
Zheng J
ie
* @date 2019-01-07
*/
@Data
...
...
Prev
1
2
3
4
5
6
7
…
9
Next
Write
Preview
Supports
Markdown
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