mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-05 00:37:21 +08:00
添加接口实现接口
This commit is contained in:
@@ -15,6 +15,16 @@ namespace Yi.Framework.Service
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<bool> AddRole(role _role)
|
||||
{
|
||||
var role_data = await GetEntityById(_role.id);
|
||||
if(role_data==null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return await AddAsync(_role);
|
||||
}
|
||||
|
||||
public async Task<bool> DelListByUpdateAsync(List<int> _ids)
|
||||
{
|
||||
var userList = await GetEntitiesAsync(u=>_ids.Contains(u.id));
|
||||
|
||||
Reference in New Issue
Block a user