mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-31 16:59:30 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			465 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			465 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package store
 | |
| 
 | |
| import "google.golang.org/protobuf/encoding/protojson"
 | |
| 
 | |
| var (
 | |
| 	protojsonUnmarshaler = protojson.UnmarshalOptions{
 | |
| 		AllowPartial:   true,
 | |
| 		DiscardUnknown: true,
 | |
| 	}
 | |
| )
 | |
| 
 | |
| // 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 {
 | |
| 	return string(r)
 | |
| }
 |