mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
258 B
Go
20 lines
258 B
Go
4 years ago
|
package core
|
||
|
|
||
|
type NoteId int64
|
||
|
|
||
|
func (id NoteId) IsValid() bool {
|
||
|
return id > 0
|
||
|
}
|
||
|
|
||
|
type CollectionId int64
|
||
|
|
||
|
func (id CollectionId) IsValid() bool {
|
||
|
return id > 0
|
||
|
}
|
||
|
|
||
|
type NoteCollectionId int64
|
||
|
|
||
|
func (id NoteCollectionId) IsValid() bool {
|
||
|
return id > 0
|
||
|
}
|