RoleMapper.cs 330 B

123456789101112
  1. using Furion.JsonSerialization;
  2. using YBEE.EQM.Core;
  3. namespace YBEE.EQM.Application;
  4. public class RoleMapper : IRegister
  5. {
  6. public void Register(TypeAdapterConfig config)
  7. {
  8. config.ForType<SysRole, SysRoleOutput>().Map(d => d.RoleDataScope, s => JSON.Deserialize<RoleDataScope>(s.RoleDataScope, null));
  9. }
  10. }