MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / alertConfigSMSPhone

Function alertConfigSMSPhone

agent/app/service/alert.go:646–654  ·  view source on GitHub ↗
(configData string)

Source from the content-addressed store, hash-verified

644}
645
646func alertConfigSMSPhone(configData string) string {
647 var cfg struct {
648 Phone string `json:"phone"`
649 }
650 if err := json.Unmarshal([]byte(configData), &cfg); err != nil {
651 return ""
652 }
653 return strings.TrimSpace(cfg.Phone)
654}
655
656func (a AlertService) DeleteAlertConfig(id uint) error {
657 _, err := alertRepo.GetConfigById(id)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected