🎨 refactor: notification

This commit is contained in:
naiba
2020-12-30 21:28:57 +08:00
parent 797321e489
commit d91819a265
6 changed files with 150 additions and 49 deletions

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