🎨 refactor: notification

This commit is contained in:
naiba committed 2020-12-30 21:28:57 +08:00
1 parent c86603d421
commit 1b091b591e
6 files changed
+150 -49

No files matched your search

-4
View File
@@ -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