mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	feat: change upload logs systemType to AppFramework
This commit is contained in:
		
							parent
							
								
									848684f287
								
							
						
					
					
						commit
						d2befc05c2
					
				| @ -50,14 +50,14 @@ func (t *thirdServer) UploadLogs(ctx context.Context, req *third.UploadLogsReq) | |||||||
| 	platform := constant.PlatformID2Name[int(req.Platform)] | 	platform := constant.PlatformID2Name[int(req.Platform)] | ||||||
| 	for _, fileURL := range req.FileURLs { | 	for _, fileURL := range req.FileURLs { | ||||||
| 		log := relationtb.Log{ | 		log := relationtb.Log{ | ||||||
| 			Platform:   platform, | 			Platform:     platform, | ||||||
| 			UserID:     userID, | 			UserID:       userID, | ||||||
| 			CreateTime: time.Now(), | 			CreateTime:   time.Now(), | ||||||
| 			Url:        fileURL.URL, | 			Url:          fileURL.URL, | ||||||
| 			FileName:   fileURL.Filename, | 			FileName:     fileURL.Filename, | ||||||
| 			SystemType: req.AppFramework, | 			AppFramework: req.AppFramework, | ||||||
| 			Version:    req.Version, | 			Version:      req.Version, | ||||||
| 			Ex:         req.Ex, | 			Ex:           req.Ex, | ||||||
| 		} | 		} | ||||||
| 		for i := 0; i < 20; i++ { | 		for i := 0; i < 20; i++ { | ||||||
| 			id := genLogID() | 			id := genLogID() | ||||||
|  | |||||||
| @ -19,13 +19,14 @@ import ( | |||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| type Log struct { | type Log struct { | ||||||
| 	LogID      string    `bson:"log_id"` | 	LogID        string    `bson:"log_id"` | ||||||
| 	Platform   string    `bson:"platform"` | 	Platform     string    `bson:"platform"` | ||||||
| 	UserID     string    `bson:"user_id"` | 	UserID       string    `bson:"user_id"` | ||||||
| 	CreateTime time.Time `bson:"create_time"` | 	CreateTime   time.Time `bson:"create_time"` | ||||||
| 	Url        string    `bson:"url"` | 	Url          string    `bson:"url"` | ||||||
| 	FileName   string    `bson:"file_name"` | 	FileName     string    `bson:"file_name"` | ||||||
| 	SystemType string    `bson:"system_type"` | 	SystemType   string    `bson:"system_type"` | ||||||
| 	Version    string    `bson:"version"` | 	AppFramework string    `bson:"app_framework"` | ||||||
| 	Ex         string    `bson:"ex"` | 	Version      string    `bson:"version"` | ||||||
|  | 	Ex           string    `bson:"ex"` | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user