mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-18 22:04:39 +08:00
support push choice
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user