这是基于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.
 
 
 
 
 
 
feijie cf9c7f2d39 feat(docs): 添加功能验证管理模块文档 1 year ago
..
LINGYUN/Abp/Features/LimitValidation/Redis/Client upgrade abp framework to 8.2.0 2 years ago
FodyWeavers.xml upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
FodyWeavers.xsd upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
LINGYUN.Abp.Features.LimitValidation.Redis.Client.csproj fix(package): fix incorrect nuget package name 2 years ago
README.EN.md feat(docs): 添加功能验证管理模块文档 1 year ago
README.md feat(docs): 添加功能验证管理模块文档 1 year ago

README.md

LINGYUN.Abp.Features.LimitValidation.Redis.Client

基于Redis的客户端功能限制验证组件

功能特性

  • 继承自LINGYUN.Abp.Features.LimitValidation.Redis的所有功能
  • 专门针对客户端应用的功能限制验证
  • 支持客户端特定的限制策略

配置使用

  1. 添加模块依赖
[DependsOn(typeof(AbpFeaturesValidationRedisClientModule))]
public class YouProjectModule : AbpModule
{
    // other
}
  1. 配置Redis选项(与LINGYUN.Abp.Features.LimitValidation.Redis相同)
{
  "Features": {
    "Validation": {
      "Redis": {
        "Configuration": "127.0.0.1",
        "InstanceName": "YourInstanceName"
      }
    }
  }
}

使用示例

// 限制客户端某个功能每天最多调用1000次
[RequiresLimitFeature("YourClientFeature.DailyLimit", "YourClientFeature.Interval", LimitPolicy.Days)]
public async Task YourClientMethod()
{
    // 客户端业务逻辑
}

简体中文 | English