mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
		
			385 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			385 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package models
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								type FileChunk struct {
							 | 
						||
| 
								 | 
							
									Id     uint32 `field:"id"`     // ID
							 | 
						||
| 
								 | 
							
									FileId uint32 `field:"fileId"` // 文件ID
							 | 
						||
| 
								 | 
							
									Data   string `field:"data"`   // 分块内容
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type FileChunkOperator struct {
							 | 
						||
| 
								 | 
							
									Id     interface{} // ID
							 | 
						||
| 
								 | 
							
									FileId interface{} // 文件ID
							 | 
						||
| 
								 | 
							
									Data   interface{} // 分块内容
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func NewFileChunkOperator() *FileChunkOperator {
							 | 
						||
| 
								 | 
							
									return &FileChunkOperator{}
							 | 
						||
| 
								 | 
							
								}
							 |