You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							618 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							618 B
						
					
					
				
								package response
							 | 
						|
								
							 | 
						|
								import "time"
							 | 
						|
								
							 | 
						|
								type MessageResponse struct {
							 | 
						|
									ID           int32     `json:"id" gorm:"primarykey"`
							 | 
						|
									FromUserId   int32     `json:"fromUserId" gorm:"index"`
							 | 
						|
									ToUserId     int32     `json:"toUserId" gorm:"index"`
							 | 
						|
									Content      string    `json:"content" gorm:"type:varchar(2500)"`
							 | 
						|
									ContentType  int16     `json:"contentType" gorm:"comment:'消息内容类型:1文字,2语音,3视频'"`
							 | 
						|
									CreatedAt    time.Time `json:"createAt"`
							 | 
						|
									FromUsername string    `json:"fromUsername"`
							 | 
						|
									ToUsername   string    `json:"toUsername"`
							 | 
						|
									Avatar       string    `json:"avatar"`
							 | 
						|
									Url          string    `json:"url"`
							 | 
						|
								}
							 | 
						|
								
							 |