2023-05-25 21:50:37 +08:00
|
|
|
package store
|
|
|
|
|
2024-04-13 02:08:35 +08:00
|
|
|
import "google.golang.org/protobuf/encoding/protojson"
|
|
|
|
|
|
|
|
var (
|
|
|
|
protojsonUnmarshaler = protojson.UnmarshalOptions{
|
|
|
|
AllowPartial: true,
|
|
|
|
DiscardUnknown: true,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2023-05-25 21:50:37 +08:00
|
|
|
// 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 {
|
2023-07-04 10:05:57 +08:00
|
|
|
return string(r)
|
2023-05-25 21:50:37 +08:00
|
|
|
}
|