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
647b25a8
Commit
647b25a8
authored
May 05, 2020
by
ZhengJie
Browse files
[新增功能](el-admin v2.5): v2.5 beta
详情
https://www.ydyno.com/archives/1225.html
parent
7c35a79c
Changes
3
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/utils/enums/CodeBiEnum.java
0 → 100644
View file @
647b25a8
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.utils.enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
/**
* <p>
* 验证码业务场景
* </p>
* @author Zheng Jie
* @date 2020-05-02
*/
@Getter
@AllArgsConstructor
public
enum
CodeBiEnum
{
ONE
(
1
,
"旧邮箱修改邮箱"
),
TWO
(
1
,
"通过邮箱修改密码"
);
private
final
Integer
code
;
private
final
String
description
;
public
static
CodeBiEnum
find
(
Integer
code
)
{
for
(
CodeBiEnum
value
:
CodeBiEnum
.
values
())
{
if
(
code
.
equals
(
value
.
getCode
()))
{
return
value
;
}
}
return
null
;
}
}
eladmin-system/src/main/java/me/zhengjie/utils/enums/CodeEnum.java
0 → 100644
View file @
647b25a8
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.utils.enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
/**
* <p>
* 验证码业务场景对应的 Redis 中的 key
* </p>
* @author Zheng Jie
* @date 2020-05-02
*/
@Getter
@AllArgsConstructor
public
enum
CodeEnum
{
/* 通过手机号码重置邮箱 */
PHONE_RESET_EMAIL_CODE
(
"phone_reset_email_code_"
,
"通过手机号码重置邮箱"
),
/* 通过旧邮箱重置邮箱 */
EMAIL_RESET_EMAIL_CODE
(
"email_reset_email_code_"
,
"通过旧邮箱重置邮箱"
),
/* 通过手机号码重置密码 */
PHONE_RESET_PWD_CODE
(
"phone_reset_pwd_code_"
,
"通过手机号码重置密码"
),
/* 通过邮箱重置密码 */
EMAIL_RESET_PWD_CODE
(
"email_reset_pwd_code_"
,
"通过邮箱重置密码"
);
private
final
String
key
;
private
final
String
description
;
}
eladmin-system/src/main/resources/template/email/taskAlarm.ftl
0 → 100644
View file @
647b25a8
<!
DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html
xmlns="http://www.w3.org/1999/xhtml">
<
head
>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
@page
{
margin
:
0
;
}
</style>
</
head
>
<
body
style="margin: 0px;
padding: 0px;
font: 100% SimSun, Microsoft YaHei, Times New Roman, Verdana, Arial, Helvetica, sans-serif;
color: #000;">
<
div
style="height: auto;
margin: 0 auto;
margin-top: 20px;
padding: 20px;
border: 1px solid #eee;">
<div>
<p style="margin-bottom: 10px;">任务信息:</p>
<table style="border-collapse: collapse;">
<tr>
<th style="padding: .65em;background: #666;border: 1px solid #777;color: #fff;">任务名称</th>
<th style="padding: .65em;background: #666;border: 1px solid #777;color: #fff;">Bean名称</th>
<th style="padding: .65em;background: #666;border: 1px solid #777;color: #fff;">执行方法</th>
<th style="padding: .65em;background: #666;border: 1px solid #777;color: #fff;">参数内容</th>
<th style="padding: .65em;background: #666;border: 1px solid #777;color: #fff;">Cron表达式</th>
<th style="padding: .65em;background: #666;border: 1px solid #777;color: #fff;">描述内容</th>
</tr>
<tr>
<td style="padding: .65em;border: 1px solid#777;">$
{
task
.jobName
}
</td>
<td style="padding: .65em;border: 1px solid#777;">$
{
task
.beanName
}
</td>
<td style="padding: .65em;border: 1px solid#777;">$
{
task
.methodName
}
</td>
<td style="padding: .65em;border: 1px solid#777;">$
{(
task
.params
)
!
""
}
</td>
<td style="padding: .65em;border: 1px solid#777;">$
{
task
.cronExpression
}
</td>
<td style="padding: .65em;border: 1px solid#777;">$
{(
task
.description
)
!
""
}
</td>
</tr>
</table>
</div>
<div>
<p style="margin-bottom: 10px;">异常信息:</p>
<pre style="position: relative;
padding: 15px;
line-height: 20px;
border-left: 5px solid #ddd;
color: #333;
font-family: Courier New, serif;
font-size: 12px">
$
{
msg
}
</pre>
</div>
<div class="foot-hr hr" style="margin: 0 auto;
z-index: 111;
width: 800px;
margin-top: 30px;
border-top: 1px solid #DA251D;">
</div>
<div style="text-align: center;
font-size: 12px;
padding: 20px 0px;
font-family: Microsoft YaHei;">
Copyright ©$
{
.now
?
string
(
"yyyy"
)}
<a hover="color: #DA251D;" style="color: #999;" href="https://github.com/elunez/eladmin" target="_blank">EL-ADMIN</a> 后台管理系统 All Rights Reserved.
</div>
</div>
</
div
>
</
body
>
</
html
>
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