13 lines
		
	
	
		
			401 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			401 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package form
 | |
| 
 | |
| type Category struct {
 | |
| 	ID          *int32 `form:"id" binding:"required"`
 | |
| 	Name        string `form:"name" binding:"required"`
 | |
| 	ParentID    *int32 `form:"parent_id" binding:"required"`
 | |
| 	Icon        string `form:"File"`
 | |
| 	Description string `form:"description"`
 | |
| 	Letter      string `form:"letter"`
 | |
| 	Sort        *int32 `form:"sort"`
 | |
| 	Status      *int16 `form:"status" binding:"required"`
 | |
| }
 |