用户权限、角色管理代码

master
王皓雯 6 years ago
parent c4c56f1f41
commit 303fdec4cf

@ -0,0 +1,13 @@
package com.macro.mall.dao;
import com.macro.mall.model.UmsAdminPermissionRelation;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Dao
*/
public interface UmsAdminPermissionRelationDao {//用户权限关系
int insertList(@Param("list") List<UmsAdminPermissionRelation> list);
}

@ -0,0 +1,33 @@
package com.macro.mall.dao;
import com.macro.mall.model.UmsAdminRoleRelation;
import com.macro.mall.model.UmsPermission;
import com.macro.mall.model.UmsRole;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Dao
*/
public interface UmsAdminRoleRelationDao {//用户角色关系
/**
*
*/
int insertList(@Param("list") List<UmsAdminRoleRelation> adminRoleRelationList);
/**
*
*/
List<UmsRole> getRoleList(@Param("adminId") Long adminId);
/**
*
*/
List<UmsPermission> getRolePermissionList(@Param("adminId") Long adminId);
/**
* (+ - )
*/
List<UmsPermission> getPermissionList(@Param("adminId") Long adminId);
}
Loading…
Cancel
Save