mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Support database date field relative to today's filtering https://github.com/siyuan-note/siyuan/issues/10451
This commit is contained in:
parent
bfa66286c6
commit
a9e4161840
1 changed files with 8 additions and 2 deletions
|
|
@ -42,10 +42,16 @@ const (
|
|||
RelativeDateUnitYear
|
||||
)
|
||||
|
||||
const (
|
||||
RelativeDateDirectionBefore = -1
|
||||
RelativeDateDirectionThis = 0
|
||||
RelativeDateDirectionAfter = 1
|
||||
)
|
||||
|
||||
type RelativeDate struct {
|
||||
Count int // 数量
|
||||
Unit RelativeDateUnit // 单位:天、周、月、年
|
||||
Direction int // 方向:前、现在、后
|
||||
Unit RelativeDateUnit // 单位:0 天、1 周、2 月、3 年
|
||||
Direction int // 方向:-1 前、0 这、1 后
|
||||
}
|
||||
|
||||
type FilterOperator string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue