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
e06036c3
Commit
e06036c3
authored
Apr 25, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
所有接口的public去掉,保持格式统一
parent
3e72d632
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
31 deletions
+31
-31
src/main/java/com/stylefeng/guns/core/cache/ICache.java
+7
-7
src/main/java/com/stylefeng/guns/core/shiro/factory/IShiro.java
+5
-5
src/main/java/com/stylefeng/guns/modular/system/dao/DeptDao.java
+1
-1
src/main/java/com/stylefeng/guns/modular/system/dao/DictDao.java
+1
-1
src/main/java/com/stylefeng/guns/modular/system/dao/MenuDao.java
+7
-7
src/main/java/com/stylefeng/guns/modular/system/dao/RoleDao.java
+4
-4
src/main/java/com/stylefeng/guns/modular/system/dao/UserMgrDao.java
+5
-5
src/main/java/com/stylefeng/guns/modular/system/service/IRoleService.java
+1
-1
No files found.
src/main/java/com/stylefeng/guns/core/cache/ICache.java
View file @
e06036c3
...
@@ -22,19 +22,19 @@ import java.util.List;
...
@@ -22,19 +22,19 @@ import java.util.List;
*/
*/
public
interface
ICache
{
public
interface
ICache
{
public
void
put
(
String
cacheName
,
Object
key
,
Object
value
);
void
put
(
String
cacheName
,
Object
key
,
Object
value
);
public
<
T
>
T
get
(
String
cacheName
,
Object
key
);
<
T
>
T
get
(
String
cacheName
,
Object
key
);
@SuppressWarnings
(
"rawtypes"
)
@SuppressWarnings
(
"rawtypes"
)
public
List
getKeys
(
String
cacheName
);
List
getKeys
(
String
cacheName
);
public
void
remove
(
String
cacheName
,
Object
key
);
void
remove
(
String
cacheName
,
Object
key
);
public
void
removeAll
(
String
cacheName
);
void
removeAll
(
String
cacheName
);
public
<
T
>
T
get
(
String
cacheName
,
Object
key
,
ILoader
iLoader
);
<
T
>
T
get
(
String
cacheName
,
Object
key
,
ILoader
iLoader
);
public
<
T
>
T
get
(
String
cacheName
,
Object
key
,
Class
<?
extends
ILoader
>
iLoaderClass
);
<
T
>
T
get
(
String
cacheName
,
Object
key
,
Class
<?
extends
ILoader
>
iLoaderClass
);
}
}
src/main/java/com/stylefeng/guns/core/shiro/factory/IShiro.java
View file @
e06036c3
...
@@ -19,32 +19,32 @@ public interface IShiro {
...
@@ -19,32 +19,32 @@ public interface IShiro {
*
*
* @param account 账号
* @param account 账号
*/
*/
public
User
user
(
String
account
);
User
user
(
String
account
);
/**
/**
* 根据系统用户获取Shiro的用户
* 根据系统用户获取Shiro的用户
*
*
* @param user 系统用户
* @param user 系统用户
*/
*/
public
ShiroUser
shiroUser
(
User
user
);
ShiroUser
shiroUser
(
User
user
);
/**
/**
* 获取权限列表通过角色id
* 获取权限列表通过角色id
*
*
* @param roleId 角色id
* @param roleId 角色id
*/
*/
public
List
<
String
>
findPermissionsByRoleId
(
Integer
roleId
);
List
<
String
>
findPermissionsByRoleId
(
Integer
roleId
);
/**
/**
* 根据角色id获取角色名称
* 根据角色id获取角色名称
*
*
* @param roleId 角色id
* @param roleId 角色id
*/
*/
public
String
findRoleNameByRoleId
(
Integer
roleId
);
String
findRoleNameByRoleId
(
Integer
roleId
);
/**
/**
* 获取shiro的认证信息
* 获取shiro的认证信息
*/
*/
public
SimpleAuthenticationInfo
info
(
ShiroUser
shiroUser
,
User
user
,
String
realmName
);
SimpleAuthenticationInfo
info
(
ShiroUser
shiroUser
,
User
user
,
String
realmName
);
}
}
src/main/java/com/stylefeng/guns/modular/system/dao/DeptDao.java
View file @
e06036c3
...
@@ -18,5 +18,5 @@ public interface DeptDao {
...
@@ -18,5 +18,5 @@ public interface DeptDao {
* @return
* @return
* @date 2017年2月17日 下午8:28:43
* @date 2017年2月17日 下午8:28:43
*/
*/
public
List
<
ZTreeNode
>
tree
();
List
<
ZTreeNode
>
tree
();
}
}
src/main/java/com/stylefeng/guns/modular/system/dao/DictDao.java
View file @
e06036c3
...
@@ -20,5 +20,5 @@ public interface DictDao {
...
@@ -20,5 +20,5 @@ public interface DictDao {
* @return
* @return
* @date 2017年2月13日 下午11:11:28
* @date 2017年2月13日 下午11:11:28
*/
*/
public
List
<
Dict
>
selectByCode
(
@Param
(
"code"
)
String
code
);
List
<
Dict
>
selectByCode
(
@Param
(
"code"
)
String
code
);
}
}
src/main/java/com/stylefeng/guns/modular/system/dao/MenuDao.java
View file @
e06036c3
...
@@ -21,7 +21,7 @@ public interface MenuDao {
...
@@ -21,7 +21,7 @@ public interface MenuDao {
* @return
* @return
* @date 2017年2月12日 下午9:14:34
* @date 2017年2月12日 下午9:14:34
*/
*/
public
List
<
Map
<
String
,
Object
>>
selectMenus
(
@Param
(
"condition"
)
String
condition
,
@Param
(
"level"
)
String
level
);
List
<
Map
<
String
,
Object
>>
selectMenus
(
@Param
(
"condition"
)
String
condition
,
@Param
(
"level"
)
String
level
);
/**
/**
* 根据条件查询菜单
* 根据条件查询菜单
...
@@ -29,7 +29,7 @@ public interface MenuDao {
...
@@ -29,7 +29,7 @@ public interface MenuDao {
* @return
* @return
* @date 2017年2月12日 下午9:14:34
* @date 2017年2月12日 下午9:14:34
*/
*/
public
List
<
Integer
>
getMenuIdsByRoleId
(
@Param
(
"roleId"
)
Integer
roleId
);
List
<
Integer
>
getMenuIdsByRoleId
(
@Param
(
"roleId"
)
Integer
roleId
);
/**
/**
* 获取菜单列表树
* 获取菜单列表树
...
@@ -37,7 +37,7 @@ public interface MenuDao {
...
@@ -37,7 +37,7 @@ public interface MenuDao {
* @return
* @return
* @date 2017年2月19日 下午1:33:51
* @date 2017年2月19日 下午1:33:51
*/
*/
public
List
<
ZTreeNode
>
menuTreeList
();
List
<
ZTreeNode
>
menuTreeList
();
/**
/**
* 获取菜单列表树
* 获取菜单列表树
...
@@ -45,7 +45,7 @@ public interface MenuDao {
...
@@ -45,7 +45,7 @@ public interface MenuDao {
* @return
* @return
* @date 2017年2月19日 下午1:33:51
* @date 2017年2月19日 下午1:33:51
*/
*/
public
List
<
ZTreeNode
>
menuTreeListByMenuIds
(
List
<
Integer
>
menuIds
);
List
<
ZTreeNode
>
menuTreeListByMenuIds
(
List
<
Integer
>
menuIds
);
/**
/**
* 删除menu关联的relation
* 删除menu关联的relation
...
@@ -54,7 +54,7 @@ public interface MenuDao {
...
@@ -54,7 +54,7 @@ public interface MenuDao {
* @return
* @return
* @date 2017年2月19日 下午4:10:59
* @date 2017年2月19日 下午4:10:59
*/
*/
public
int
deleteRelationByMenu
(
Integer
menuId
);
int
deleteRelationByMenu
(
Integer
menuId
);
/**
/**
* 获取资源url通过角色id
* 获取资源url通过角色id
...
@@ -63,7 +63,7 @@ public interface MenuDao {
...
@@ -63,7 +63,7 @@ public interface MenuDao {
* @return
* @return
* @date 2017年2月19日 下午7:12:38
* @date 2017年2月19日 下午7:12:38
*/
*/
public
List
<
String
>
getResUrlsByRoleId
(
Integer
roleId
);
List
<
String
>
getResUrlsByRoleId
(
Integer
roleId
);
/**
/**
* 根据角色获取菜单
* 根据角色获取菜单
...
@@ -72,7 +72,7 @@ public interface MenuDao {
...
@@ -72,7 +72,7 @@ public interface MenuDao {
* @return
* @return
* @date 2017年2月19日 下午10:35:40
* @date 2017年2月19日 下午10:35:40
*/
*/
public
List
<
MenuNode
>
getMenusByRoleIds
(
List
<
Integer
>
roleIds
);
List
<
MenuNode
>
getMenusByRoleIds
(
List
<
Integer
>
roleIds
);
}
}
src/main/java/com/stylefeng/guns/modular/system/dao/RoleDao.java
View file @
e06036c3
...
@@ -20,7 +20,7 @@ public interface RoleDao {
...
@@ -20,7 +20,7 @@ public interface RoleDao {
* @return
* @return
* @date 2017年2月12日 下午9:14:34
* @date 2017年2月12日 下午9:14:34
*/
*/
public
List
<
Map
<
String
,
Object
>>
selectRoles
(
@Param
(
"condition"
)
String
condition
);
List
<
Map
<
String
,
Object
>>
selectRoles
(
@Param
(
"condition"
)
String
condition
);
/**
/**
* 删除某个角色的所有权限
* 删除某个角色的所有权限
...
@@ -29,7 +29,7 @@ public interface RoleDao {
...
@@ -29,7 +29,7 @@ public interface RoleDao {
* @return
* @return
* @date 2017年2月13日 下午7:57:51
* @date 2017年2月13日 下午7:57:51
*/
*/
public
int
deleteRolesById
(
@Param
(
"roleId"
)
Integer
roleId
);
int
deleteRolesById
(
@Param
(
"roleId"
)
Integer
roleId
);
/**
/**
* 获取角色列表树
* 获取角色列表树
...
@@ -37,7 +37,7 @@ public interface RoleDao {
...
@@ -37,7 +37,7 @@ public interface RoleDao {
* @return
* @return
* @date 2017年2月18日 上午10:32:04
* @date 2017年2月18日 上午10:32:04
*/
*/
public
List
<
ZTreeNode
>
roleTreeList
();
List
<
ZTreeNode
>
roleTreeList
();
/**
/**
* 获取角色列表树
* 获取角色列表树
...
@@ -45,7 +45,7 @@ public interface RoleDao {
...
@@ -45,7 +45,7 @@ public interface RoleDao {
* @return
* @return
* @date 2017年2月18日 上午10:32:04
* @date 2017年2月18日 上午10:32:04
*/
*/
public
List
<
ZTreeNode
>
roleTreeListByRoleId
(
String
[]
roleId
);
List
<
ZTreeNode
>
roleTreeListByRoleId
(
String
[]
roleId
);
}
}
src/main/java/com/stylefeng/guns/modular/system/dao/UserMgrDao.java
View file @
e06036c3
...
@@ -22,7 +22,7 @@ public interface UserMgrDao {
...
@@ -22,7 +22,7 @@ public interface UserMgrDao {
* @param user
* @param user
* @date 2017年2月12日 下午8:42:31
* @date 2017年2月12日 下午8:42:31
*/
*/
public
int
setStatus
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"status"
)
int
status
);
int
setStatus
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"status"
)
int
status
);
/**
/**
* 修改密码
* 修改密码
...
@@ -31,7 +31,7 @@ public interface UserMgrDao {
...
@@ -31,7 +31,7 @@ public interface UserMgrDao {
* @param pwd
* @param pwd
* @date 2017年2月12日 下午8:54:19
* @date 2017年2月12日 下午8:54:19
*/
*/
public
int
changePwd
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"pwd"
)
String
pwd
);
int
changePwd
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"pwd"
)
String
pwd
);
/**
/**
* 根据条件查询用户列表
* 根据条件查询用户列表
...
@@ -39,7 +39,7 @@ public interface UserMgrDao {
...
@@ -39,7 +39,7 @@ public interface UserMgrDao {
* @return
* @return
* @date 2017年2月12日 下午9:14:34
* @date 2017年2月12日 下午9:14:34
*/
*/
public
List
<
Map
<
String
,
Object
>>
selectUsers
(
@Param
(
"name"
)
String
name
,
@Param
(
"beginTime"
)
String
beginTime
,
@Param
(
"endTime"
)
String
endTime
);
List
<
Map
<
String
,
Object
>>
selectUsers
(
@Param
(
"name"
)
String
name
,
@Param
(
"beginTime"
)
String
beginTime
,
@Param
(
"endTime"
)
String
endTime
);
/**
/**
* 设置用户的角色
* 设置用户的角色
...
@@ -47,7 +47,7 @@ public interface UserMgrDao {
...
@@ -47,7 +47,7 @@ public interface UserMgrDao {
* @return
* @return
* @date 2017年2月13日 下午7:31:30
* @date 2017年2月13日 下午7:31:30
*/
*/
public
int
setRoles
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"roleIds"
)
String
roleIds
);
int
setRoles
(
@Param
(
"userId"
)
Integer
userId
,
@Param
(
"roleIds"
)
String
roleIds
);
/**
/**
* 通过账号获取用户
* 通过账号获取用户
...
@@ -56,5 +56,5 @@ public interface UserMgrDao {
...
@@ -56,5 +56,5 @@ public interface UserMgrDao {
* @return
* @return
* @date 2017年2月17日 下午11:07:46
* @date 2017年2月17日 下午11:07:46
*/
*/
public
User
getByAccount
(
@Param
(
"account"
)
String
account
);
User
getByAccount
(
@Param
(
"account"
)
String
account
);
}
}
src/main/java/com/stylefeng/guns/modular/system/service/IRoleService.java
View file @
e06036c3
...
@@ -15,5 +15,5 @@ public interface IRoleService {
...
@@ -15,5 +15,5 @@ public interface IRoleService {
* @param ids 权限的id
* @param ids 权限的id
* @date 2017年2月13日 下午8:26:53
* @date 2017年2月13日 下午8:26:53
*/
*/
public
void
setAuthority
(
Integer
roleId
,
String
ids
);
void
setAuthority
(
Integer
roleId
,
String
ids
);
}
}
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