Logo
Explore Help
Register Sign In
carrot_bbs/backend
4
0
Fork 0
You've already forked backend
Code Issues 2 Pull Requests Actions Packages Projects Releases Wiki Activity
Files
c630cbf4d0303b8ad6ca0fb394705d1663e4b41e
backend/internal/config/jpush.go

8 lines
233 B
Go
Raw Normal View History

feat(push): add JPush integration for offline message push Add JPush (极光推送) integration to enable push notifications for offline users. This includes: - New jpush client package with API for batch push notifications - Configuration for jpush (enabled, app_key, master_secret, production mode) - Updated push service to send messages via JPush when users are offline - Added PushChatMessage method with do-not-disturb checking - Integrated push service with chat service to notify offline users of new messages - Updated deployment workflow with JPush and related environment variables
2026-04-27 23:20:24 +08:00
package config
type JPushConfig struct {
Enabled bool `mapstructure:"enabled"`
AppKey string `mapstructure:"app_key"`
MasterSecret string `mapstructure:"master_secret"`
Production bool `mapstructure:"production"`
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.6.2 Page: 23ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API