34 lines
849 B
C#
34 lines
849 B
C#
|
using Syc.Basic.Web.WMS.Entitys;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace Syc.Basic.Web.WMS.Repository
|
|||
|
{
|
|||
|
public interface IRoleRepository
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 根据code获取角色
|
|||
|
/// </summary>
|
|||
|
/// <param name="code"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<Role> GetRoleByCode(string code,bool incMenus,bool incUsers);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 更新角色
|
|||
|
/// </summary>
|
|||
|
/// <param name="role"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<Role> Update(Role role);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 编号是否已存在
|
|||
|
/// </summary>
|
|||
|
/// <param name="code"></param>
|
|||
|
/// <returns></returns>
|
|||
|
Task<bool> CodeExiste(string code);
|
|||
|
}
|
|||
|
}
|