Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
c35575e7
Commit
c35575e7
authored
Mar 08, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理字典包装类
parent
889e4aea
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
52 deletions
+15
-52
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/DeptDict.java
+3
-3
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/DictMap.java
+4
-2
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/LogDict.java
+0
-37
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/MenuDict.java
+2
-4
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/RoleDict.java
+1
-2
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/UserDict.java
+2
-2
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/factory/DictFieldWarpperFactory.java
+2
-2
src/main/webapp/pages/modular/system/user/user_edit.html
+1
-0
No files found.
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/DeptDict.java
View file @
c35575e7
...
...
@@ -28,10 +28,10 @@ public class DeptDict extends AbstractDictMap {
@Override
public
void
init
()
{
put
(
"deptId"
,
"部门名称"
);
put
(
"
num
"
,
"部门排序"
);
put
(
"
sort
"
,
"部门排序"
);
put
(
"pid"
,
"上级名称"
);
put
(
"simple
n
ame"
,
"部门简称"
);
put
(
"full
n
ame"
,
"部门全称"
);
put
(
"simple
N
ame"
,
"部门简称"
);
put
(
"full
N
ame"
,
"部门全称"
);
put
(
"description"
,
"备注"
);
}
...
...
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/DictMap.java
View file @
c35575e7
...
...
@@ -28,8 +28,10 @@ public class DictMap extends AbstractDictMap {
@Override
public
void
init
()
{
put
(
"dictId"
,
"字典名称"
);
put
(
"dictName"
,
"字典名称"
);
put
(
"dictValues"
,
"字典内容"
);
put
(
"name"
,
"字典名称"
);
put
(
"code"
,
"字典编码"
);
put
(
"description"
,
"字典描述"
);
put
(
"sort"
,
"排序"
);
}
@Override
...
...
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/LogDict.java
deleted
100644 → 0
View file @
889e4aea
/**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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
cn
.
stylefeng
.
guns
.
core
.
common
.
constant
.
dictmap
;
import
cn.stylefeng.guns.core.common.constant.dictmap.base.AbstractDictMap
;
/**
* 日志的字典
*
* @author fengshuonan
* @date 2017-05-06 15:01
*/
public
class
LogDict
extends
AbstractDictMap
{
@Override
public
void
init
()
{
put
(
"description"
,
"备注"
);
}
@Override
protected
void
initBeWrapped
()
{
}
}
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/MenuDict.java
View file @
c35575e7
...
...
@@ -28,18 +28,16 @@ public class MenuDict extends AbstractDictMap {
@Override
public
void
init
()
{
put
(
"menuId"
,
"菜单id"
);
put
(
"id"
,
"菜单id"
);
put
(
"code"
,
"菜单编号"
);
put
(
"pcode"
,
"菜单父编号"
);
put
(
"name"
,
"菜单名称"
);
put
(
"icon"
,
"菜单图标"
);
put
(
"url"
,
"url地址"
);
put
(
"
num
"
,
"菜单排序号"
);
put
(
"
sort
"
,
"菜单排序号"
);
put
(
"levels"
,
"菜单层级"
);
put
(
"description"
,
"备注"
);
put
(
"status"
,
"菜单状态"
);
put
(
"isopen"
,
"是否打开"
);
put
(
""
,
""
);
put
(
"openFlag"
,
"是否打开"
);
}
@Override
...
...
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/RoleDict.java
View file @
c35575e7
...
...
@@ -28,10 +28,9 @@ public class RoleDict extends AbstractDictMap {
@Override
public
void
init
()
{
put
(
"roleId"
,
"角色名称"
);
put
(
"
num
"
,
"角色排序"
);
put
(
"
sort
"
,
"角色排序"
);
put
(
"pid"
,
"角色的父级"
);
put
(
"name"
,
"角色名称"
);
put
(
"deptId"
,
"部门名称"
);
put
(
"description"
,
"备注"
);
put
(
"ids"
,
"资源名称"
);
}
...
...
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/UserDict.java
View file @
c35575e7
...
...
@@ -35,7 +35,7 @@ public class UserDict extends AbstractDictMap {
put
(
"sex"
,
"性别"
);
put
(
"email"
,
"电子邮件"
);
put
(
"phone"
,
"电话"
);
put
(
"role
i
d"
,
"角色名称"
);
put
(
"role
I
d"
,
"角色名称"
);
put
(
"deptId"
,
"部门名称"
);
put
(
"roleIds"
,
"角色名称集合"
);
}
...
...
@@ -44,7 +44,7 @@ public class UserDict extends AbstractDictMap {
protected
void
initBeWrapped
()
{
putFieldWrapperMethodName
(
"sex"
,
"getSexName"
);
putFieldWrapperMethodName
(
"deptId"
,
"getDeptName"
);
putFieldWrapperMethodName
(
"role
i
d"
,
"getSingleRoleName"
);
putFieldWrapperMethodName
(
"role
I
d"
,
"getSingleRoleName"
);
putFieldWrapperMethodName
(
"userId"
,
"getUserAccountById"
);
putFieldWrapperMethodName
(
"roleIds"
,
"getRoleName"
);
}
...
...
src/main/java/cn/stylefeng/guns/core/common/constant/dictmap/factory/DictFieldWarpperFactory.java
View file @
c35575e7
...
...
@@ -37,8 +37,8 @@ public class DictFieldWarpperFactory {
return
method
.
invoke
(
constantFactory
,
parameter
);
}
catch
(
Exception
e
)
{
try
{
Method
method
=
IConstantFactory
.
class
.
getMethod
(
methodName
,
Integer
.
class
);
return
method
.
invoke
(
constantFactory
,
Integer
.
parseInt
(
parameter
.
toString
()));
Method
method
=
IConstantFactory
.
class
.
getMethod
(
methodName
,
Long
.
class
);
return
method
.
invoke
(
constantFactory
,
Long
.
parseLong
(
parameter
.
toString
()));
}
catch
(
Exception
e1
)
{
throw
new
ServiceException
(
BizExceptionEnum
.
ERROR_WRAPPER_FIELD
);
}
...
...
src/main/webapp/pages/modular/system/user/user_edit.html
View file @
c35575e7
@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/user/user_edit.js"]}){
<form
id=
"userForm"
lay-filter=
"userForm"
class=
"layui-form model-form"
>
<input
name=
"userId"
type=
"hidden"
/>
<input
name=
"account"
type=
"hidden"
/>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
姓名
<span
style=
"color: red;"
>
*
</span></label>
<div
class=
"layui-input-block"
>
...
...
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