EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
285 stars 95 forks source link

Get group name dynamically when generating permission definitions #105

Closed wakuflair closed 4 years ago

wakuflair commented 4 years ago
 public class XXXPermissionDefinitionProvider : PermissionDefinitionProvider
    {
        public override void Define(IPermissionDefinitionContext context)
        {
            var xxxGroup = context.AddGroup(XXXPermissions.GroupName);
            ...
        }
    }

Take above code as example, the group name "xxxGroup" may be changed by developers. CLI should parse the Provider class, and retrieve the name from the existing statement.