mirror of
https://github.com/usememos/memos.git
synced 2024-12-22 18:51:31 +03:00
22 lines
371 B
Go
22 lines
371 B
Go
|
package api
|
||
|
|
||
|
// 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 (e RowStatus) String() string {
|
||
|
switch e {
|
||
|
case Normal:
|
||
|
return "NORMAL"
|
||
|
case Archived:
|
||
|
return "ARCHIVED"
|
||
|
}
|
||
|
return ""
|
||
|
}
|