diff --git a/go/controllers/app_notebook.go b/go/controllers/app_notebook.go index e6480a8..7a9b5ea 100644 --- a/go/controllers/app_notebook.go +++ b/go/controllers/app_notebook.go @@ -71,12 +71,12 @@ func (c *AppNotebookController) GetList() { } type noteItem struct { - ID uint64 `json:"id"` - Title string `json:"title"` - Content string `json:"content"` - Pinned bool `json:"pinned"` - CreatedAt string `json:"created_at"` - UpdatedAt string `json:"updated_at"` + ID uint64 `json:"id"` + Title string `json:"title"` + Content string `json:"content"` + Pinned bool `json:"pinned"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` } result := make([]noteItem, 0, len(list)) diff --git a/go/controllers/app_reminder.go b/go/controllers/app_reminder.go index 9669046..e783478 100644 --- a/go/controllers/app_reminder.go +++ b/go/controllers/app_reminder.go @@ -313,7 +313,7 @@ func (c *AppReminderController) Create() { firstSendTime := schedTime.Add(-time.Duration(p.AdvanceMinutes) * time.Minute) reminder := models.BackendScheduleReminder{ - Tid: claims.TenantId, + Tid: claims.TenantId, ScheduleID: uint64(schedID), RemindChannel: ch, AdvanceMinutes: p.AdvanceMinutes, @@ -454,7 +454,7 @@ func (c *AppReminderController) Update() { firstSendTime := schedTime.Add(-time.Duration(p.AdvanceMinutes) * time.Minute) reminder := models.BackendScheduleReminder{ - Tid: claims.TenantId, + Tid: claims.TenantId, ScheduleID: id, RemindChannel: ch, AdvanceMinutes: p.AdvanceMinutes,