mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-28 07:19:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package api
 | |
| 
 | |
| // UnknownID is the ID for unknowns.
 | |
| const UnknownID = -1
 | |
| 
 | |
| // 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 ""
 | |
| }
 |