Commit e06036c3 by fsn

所有接口的public去掉,保持格式统一

parent 3e72d632
...@@ -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);
} }
...@@ -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);
} }
...@@ -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();
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
} }
...@@ -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);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment