继续更新
This commit is contained in:
1 parent
36ff960fbd
commit
d16dbc69b4
2 files changed
+8
-8
No files matched your search
@@ -71,12 +71,12 @@ func (c *AppNotebookController) GetList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type noteItem struct {
|
type noteItem struct {
|
||||||
ID uint64 `json:"id"`
|
ID uint64 `json:"id"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
Pinned bool `json:"pinned"`
|
Pinned bool `json:"pinned"`
|
||||||
CreatedAt string `json:"created_at"`
|
CreatedAt string `json:"created_at"`
|
||||||
UpdatedAt string `json:"updated_at"`
|
UpdatedAt string `json:"updated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
result := make([]noteItem, 0, len(list))
|
result := make([]noteItem, 0, len(list))
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ func (c *AppReminderController) Create() {
|
|||||||
firstSendTime := schedTime.Add(-time.Duration(p.AdvanceMinutes) * time.Minute)
|
firstSendTime := schedTime.Add(-time.Duration(p.AdvanceMinutes) * time.Minute)
|
||||||
|
|
||||||
reminder := models.BackendScheduleReminder{
|
reminder := models.BackendScheduleReminder{
|
||||||
Tid: claims.TenantId,
|
Tid: claims.TenantId,
|
||||||
ScheduleID: uint64(schedID),
|
ScheduleID: uint64(schedID),
|
||||||
RemindChannel: ch,
|
RemindChannel: ch,
|
||||||
AdvanceMinutes: p.AdvanceMinutes,
|
AdvanceMinutes: p.AdvanceMinutes,
|
||||||
@@ -454,7 +454,7 @@ func (c *AppReminderController) Update() {
|
|||||||
firstSendTime := schedTime.Add(-time.Duration(p.AdvanceMinutes) * time.Minute)
|
firstSendTime := schedTime.Add(-time.Duration(p.AdvanceMinutes) * time.Minute)
|
||||||
|
|
||||||
reminder := models.BackendScheduleReminder{
|
reminder := models.BackendScheduleReminder{
|
||||||
Tid: claims.TenantId,
|
Tid: claims.TenantId,
|
||||||
ScheduleID: id,
|
ScheduleID: id,
|
||||||
RemindChannel: ch,
|
RemindChannel: ch,
|
||||||
AdvanceMinutes: p.AdvanceMinutes,
|
AdvanceMinutes: p.AdvanceMinutes,
|
||||||
|
|||||||
Reference in new issue
Block a user