mirror of https://github.com/usememos/memos
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.
22 lines
373 B
Go
22 lines
373 B
Go
package store
|
|
|
|
// RowStatus is the status for a row.
|
|
type RowStatus string
|
|
|
|
const (
|
|
// Normal is the status for a normal row.
|
|
Normal RowStatus = "NORMAL"
|
|
// Archived is the status for an archived row.
|
|
Archived RowStatus = "ARCHIVED"
|
|
)
|
|
|
|
func (r RowStatus) String() string {
|
|
switch r {
|
|
case Normal:
|
|
return "NORMAL"
|
|
case Archived:
|
|
return "ARCHIVED"
|
|
}
|
|
return ""
|
|
}
|