mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
✨ feat(notification): 添加通知方式
This commit is contained in:
@@ -2,6 +2,7 @@ package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"html/template"
|
||||
"time"
|
||||
|
||||
pb "github.com/naiba/nezha/proto"
|
||||
@@ -21,6 +22,6 @@ type Server struct {
|
||||
StreamClose chan<- error `gorm:"-" json:"-"`
|
||||
}
|
||||
|
||||
func (s Server) Marshal() string {
|
||||
return fmt.Sprintf(`{"ID":%d,"Name":"%s","Secret":"%s"}`, s.ID, s.Name, s.Secret)
|
||||
func (s Server) Marshal() template.JS {
|
||||
return template.JS(fmt.Sprintf(`{"ID":%d,"Name":"%s","Secret":"%s"}`, s.ID, s.Name, s.Secret))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user