You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.6 KiB
67 lines
1.6 KiB
using ce.autofac.extension;
|
|
using learun.util;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace learun.iapplication
|
|
{
|
|
/// <summary>
|
|
/// 版 本 EasyCode EC管理后台
|
|
/// Copyright (c) 2019-present EC管理有限公司
|
|
/// 创建人:tobin
|
|
/// 日 期:2019.09.24
|
|
/// 描 述:角色管理
|
|
/// </summary>
|
|
public interface RoleIBLL : IBLL
|
|
{
|
|
#region 获取数据
|
|
|
|
/// <summary>
|
|
/// 获取角色数据列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<RoleEntity>> GetList();
|
|
|
|
/// <summary>
|
|
/// 获取分页数据
|
|
/// </summary>
|
|
/// <param name="pagination">分页参数</param>
|
|
/// <param name="keyword">查询关键词</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<RoleEntity>> GetPageList(Pagination pagination, string keyword);
|
|
|
|
/// <summary>
|
|
/// 获取角色数据列表
|
|
/// </summary>
|
|
/// <param name="roleIds">主键串</param>
|
|
/// <returns></returns>
|
|
Task<IEnumerable<RoleEntity>> GetListByRoleIds(string roleIds);
|
|
|
|
/// <summary>
|
|
/// 获取实体数据
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
/// <returns></returns>
|
|
Task<RoleEntity> GetEntity(string keyValue);
|
|
|
|
#endregion 获取数据
|
|
|
|
#region 提交数据
|
|
|
|
/// <summary>
|
|
/// 删除角色
|
|
/// </summary>
|
|
/// <param name="keyValue">主键</param>
|
|
Task Delete(string keyValue);
|
|
|
|
/// <summary>
|
|
/// 保存角色(新增、修改)
|
|
/// </summary>
|
|
/// <param name="keyValue">主键值</param>
|
|
/// <param name="roleEntity">角色实体</param>
|
|
/// <returns></returns>
|
|
Task SaveEntity(string keyValue, RoleEntity roleEntity);
|
|
|
|
#endregion 提交数据
|
|
}
|
|
}
|