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.
zk/core/ids.go

20 lines
258 B
Go

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
}