增加字段dto数据传输对象,对该角色没有关联的属性是否授权赋值为null

This commit is contained in:
2023-09-27 00:04:37 +08:00
parent 764a77456e
commit b932f6f6a0
3 changed files with 79 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
namespace ZR.ServiceCore.Model.Dto;
public class SysFieldDto
{
[JsonConverter(typeof(ValueToStringConverter))]
public long Id { get; set; }
public string FieldName { get; set; }
public string FullName { get; set; }
public string FieldType { get; set; }
public string IsClass { get; set; }
public bool IsPermission { get; set; }
}
@@ -0,0 +1,11 @@
using Infrastructure.Attribute;
using ZR.Service;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Services.IService;
namespace ZR.ServiceCore.Services;
[AppService(ServiceType = typeof(ISysRoleFieldService), ServiceLifetime = LifeTime.Transient)]
public class SysRoleFieldService : BaseService<SysRoleField>, ISysRoleFieldService
{
}