slash-e/api/v1/common.go
2023-06-20 16:33:36 +08:00

22 lines
380 B
Go

package v1
// 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 (status RowStatus) String() string {
switch status {
case Normal:
return "NORMAL"
case Archived:
return "ARCHIVED"
}
return ""
}