mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-28 07:19:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			352 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package api
 | |
| 
 | |
| type MemoOrganizer struct {
 | |
| 	ID int
 | |
| 
 | |
| 	// Domain specific fields
 | |
| 	MemoID int
 | |
| 	UserID int
 | |
| 	Pinned bool
 | |
| }
 | |
| 
 | |
| type MemoOrganizerUpsert struct {
 | |
| 	MemoID int  `json:"-"`
 | |
| 	UserID int  `json:"-"`
 | |
| 	Pinned bool `json:"pinned"`
 | |
| }
 | |
| 
 | |
| type MemoOrganizerFind struct {
 | |
| 	MemoID int
 | |
| 	UserID int
 | |
| }
 | |
| 
 | |
| type MemoOrganizerDelete struct {
 | |
| 	MemoID *int
 | |
| 	UserID *int
 | |
| }
 |