using Volo.Abp.Authorization.Permissions; using Win_in.Sfs.Basedata.Domain; namespace Win_in.Sfs.Basedata.Application.Contracts; public static class UomPermissions { public const string Default = BasedataPermissions.GroupName + "." + nameof(Uom); public const string Create = Default + "." + BasedataPermissions.CreateStr; public const string Update = Default + "." + BasedataPermissions.UpdateStr; public const string Delete = Default + "." + BasedataPermissions.DeleteStr; public static void AddUomPermission(this PermissionGroupDefinition permissionGroup) { var uomPermission = permissionGroup.AddPermission(Default, BasedataPermissionDefinitionProvider.L(nameof(Uom))); uomPermission.AddChild(Create, BasedataPermissionDefinitionProvider.L(BasedataPermissions.CreateStr)); uomPermission.AddChild(Update, BasedataPermissionDefinitionProvider.L(BasedataPermissions.UpdateStr)); uomPermission.AddChild(Delete, BasedataPermissionDefinitionProvider.L(BasedataPermissions.DeleteStr)); } }