mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
🎨 refactor: notification
This commit is contained in:
1 parent
c86603d421
commit
1b091b591e
6 files changed
+150
-49
No files matched your search
@@ -135,10 +135,6 @@ func (ma *memberAPI) addOrEditNotification(c *gin.Context) {
|
||||
var nf notificationForm
|
||||
var n model.Notification
|
||||
err := c.ShouldBindJSON(&nf)
|
||||
if err == nil {
|
||||
var data map[string]string
|
||||
err = json.Unmarshal([]byte(nf.RequestBody), &data)
|
||||
}
|
||||
if err == nil {
|
||||
n.Name = nf.Name
|
||||
n.RequestMethod = nf.RequestMethod
|
||||
|
||||
Reference in new issue
Block a user