这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.3 KiB

LINGYUN.Abp.FeatureManagement.Client

Client feature management authorization component

Features

  • Provides ClientFeatureManagementProvider
  • Supports permission management for client features
  • Supports localization resource management
  • Seamlessly integrates with ABP framework's feature management module

Configuration and Usage

  1. Add module dependency
[DependsOn(typeof(AbpFeatureManagementClientModule))]
public class YouProjectModule : AbpModule
{
    // other
}
  1. Permission Configuration

The module predefines the following permissions:

  • FeatureManagement.ManageClientFeatures: Permission to manage client features
  1. Usage Example
public class YourService
{
    private readonly IFeatureManager _featureManager;

    public YourService(IFeatureManager featureManager)
    {
        _featureManager = featureManager;
    }

    public async Task SetClientFeatureAsync(string clientId, string featureName, string value)
    {
        // Set client feature value
        await _featureManager.SetForClientAsync(clientId, featureName, value);
    }
}

More

  • This module depends on the LINGYUN.Abp.Features.Client module
  • Supports localization configuration through AbpFeatureManagementResource
  • Provides permission control for client feature management

简体中文 | English