feat 数据权限支持用户组
This commit is contained in:
@@ -55,6 +55,15 @@ public class GainfoGroupService : IGainfoGroupService
|
||||
var entity = request.Adapt<GainfoGroupEntity>();
|
||||
entity.Code = Guid.NewGuid();
|
||||
await _dbContext.InsertAsync(entity);
|
||||
|
||||
await _dbContext.InsertAsync(new DataPermissionEntity
|
||||
{
|
||||
AssignValue = _currentUser.GetStringSubjectId(),
|
||||
UniqueType = DataPermissionAssignmentEnumType.UserGroup,
|
||||
UniqueValue = entity.Code,
|
||||
DeviceType = null,
|
||||
TenantId = _currentUser.GetStringTenantId()
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user