[PR #303] [CLOSED] 推送接口重构,抽离Pusher接口 #308

Closed
opened 2026-03-03 11:57:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Finb/bark-server/pull/303
Author: @qcgzxw
Created: 12/25/2024
Status: Closed

Base: masterHead: dev


📝 Commits (1)

  • f57ca6e Feat: 推送接口重构,抽离Pusher接口

📊 Changes

9 files changed (+332 additions, -259 deletions)

View changed files

📝 docs/API_V2.md (+16 -16)
📝 main.go (+1 -2)
📝 pusher/apns.go (+28 -38)
📝 pusher/apns_certs.go (+11 -3)
pusher/message.go (+87 -0)
pusher/notification.go (+42 -0)
📝 route_push.go (+45 -200)
route_push_v2.go (+81 -0)
📝 router.go (+21 -0)

📄 Description

  • 参数获取方式重构,更简洁
  • api v2暂未实现 device_keys的,兼容device_key 使用逗号分隔多个key
  • 抽离pusher接口,后续兼容多平台推送

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Finb/bark-server/pull/303 **Author:** [@qcgzxw](https://github.com/qcgzxw) **Created:** 12/25/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dev` --- ### 📝 Commits (1) - [`f57ca6e`](https://github.com/Finb/bark-server/commit/f57ca6ef553cd04c979648d804df915c2af2582a) ✨ Feat: 推送接口重构,抽离Pusher接口 ### 📊 Changes **9 files changed** (+332 additions, -259 deletions) <details> <summary>View changed files</summary> 📝 `docs/API_V2.md` (+16 -16) 📝 `main.go` (+1 -2) 📝 `pusher/apns.go` (+28 -38) 📝 `pusher/apns_certs.go` (+11 -3) ➕ `pusher/message.go` (+87 -0) ➕ `pusher/notification.go` (+42 -0) 📝 `route_push.go` (+45 -200) ➕ `route_push_v2.go` (+81 -0) 📝 `router.go` (+21 -0) </details> ### 📄 Description - [x] 参数获取方式重构,更简洁 - [x] api v2暂未实现 device_keys的,兼容device_key 使用逗号分隔多个key - [x] 抽离pusher接口,后续兼容多平台推送 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:57:11 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#308
No description provided.