这是基于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.
 
 
 
 
 
 
colin 6b0dc0b93b fix: Add the missing permission dependencies 3 weeks ago
..
LINGYUN/Abp/Notifications fix: Add the missing permission dependencies 3 weeks 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.Notifications.HttpApi.csproj upgrade: upgrade abp to 10.0.2 2 months ago
README.EN.md feat(docs): 添加实时通知模块文档 1 year ago
README.md feat(docs): 添加实时通知模块文档 1 year ago

README.md

LINGYUN.Abp.Notifications.HttpApi

通知系统的HTTP API模块,提供了通知系统的REST API接口。

功能特性

  • 通知管理API
  • 通知订阅API
  • 通知状态管理API
  • 支持API版本控制
  • 支持Swagger文档

模块引用

[DependsOn(typeof(AbpNotificationsHttpApiModule))]
public class YouProjectModule : AbpModule
{
  // other
}

API接口

NotificationController

  • GET /api/notifications/{id} - 获取通知详情
  • GET /api/notifications - 获取通知列表
  • DELETE /api/notifications/{id} - 删除通知
  • PUT /api/notifications/{id}/read - 标记通知为已读
  • PUT /api/notifications/read - 标记所有通知为已读

NotificationSubscriptionController

  • POST /api/notifications/subscriptions - 订阅通知
  • DELETE /api/notifications/subscriptions - 取消订阅通知
  • GET /api/notifications/subscribers - 获取可分配的订阅者列表
  • GET /api/notifications/subscriptions - 获取已订阅的通知列表

基本用法

  1. 配置Startup
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddApplication<YourHttpApiModule>();
    }

    public void Configure(IApplicationBuilder app)
    {
        app.InitializeApplication();
    }
}
  1. 调用API示例
# 获取通知列表
curl -X GET "https://localhost:44300/api/notifications"

# 订阅通知
curl -X POST "https://localhost:44300/api/notifications/subscriptions" \
     -H "Content-Type: application/json" \
     -d '{"notificationName":"YourNotification"}'

更多信息