support push choice

This commit is contained in:
akrike
2025-02-05 13:46:16 +08:00
parent 4fa227ee82
commit 06cda6821a
3 changed files with 9 additions and 3 deletions

View File

@@ -13,8 +13,8 @@ type pushService struct{}
var PushService = new(pushService)
func (p *pushService) Push(placeholders map[string]string) {
pl := repository.PushRepository.GetPushList()
func (p *pushService) Push(ids []int, placeholders map[string]string) {
pl := repository.PushRepository.GetPushConfigByIds(ids)
for _, v := range pl {
if v.Enable {
if v.Method == http.MethodGet {