From 4815e62616fadfa1d1d743fae61ce3805d8e8c54 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 2 Mar 2024 22:35:04 +0800 Subject: [PATCH] :art: Clean code --- kernel/av/filter.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/av/filter.go b/kernel/av/filter.go index c6267c66c..cc88993dd 100644 --- a/kernel/av/filter.go +++ b/kernel/av/filter.go @@ -17,8 +17,9 @@ package av import ( - "github.com/siyuan-note/siyuan/kernel/util" "strings" + + "github.com/siyuan-note/siyuan/kernel/util" ) type Filterable interface { @@ -51,8 +52,8 @@ const ( ) type RelativeDate struct { - Count int `json:"count"` // 数量 - Unit RelativeDateUnit `json:"unit"` // 单位:0 天、1 周、2 月、3 年 + Count int `json:"count"` // 数量 + Unit RelativeDateUnit `json:"unit"` // 单位:0 天、1 周、2 月、3 年 Direction RelativeDateDirection `json:"direction"` // 方向:-1 前、0 这、1 后 }