对接AWS 需要迁移
	
		
			
	
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
				
					
				
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
							parent
							
								
									0be25fa16a
								
							
						
					
					
						commit
						8fb2e4b7f4
					
				| 
						 | 
					@ -216,7 +216,7 @@ namespace IRaCIS.Api.Controllers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                var ossOptions = serviceOption.AliyunOSS;
 | 
					                var ossOptions = serviceOption.AliyunOSS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                return ResponseOutput.Ok(new ObjectStoreDTO() { ObjectStoreUse = serviceOption.ObjectStoreUse, MinIO = serviceOption.MinIO ,AliyunOSS= serviceOption.AliyunOSS });
 | 
					                return ResponseOutput.Ok(new ObjectStoreDTO() { ObjectStoreUse = serviceOption.ObjectStoreUse, MinIO = serviceOption.MinIO ,AliyunOSS= serviceOption.AliyunOSS,AWS=serviceOption.AWS });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                #region 临时token 屏蔽
 | 
					                #region 临时token 屏蔽
 | 
				
			||||||
                //IClientProfile profile = DefaultProfile.GetProfile(ossOptions.RegionId, ossOptions.AccessKeyId, ossOptions.AccessKeySecret);
 | 
					                //IClientProfile profile = DefaultProfile.GetProfile(ossOptions.RegionId, ossOptions.AccessKeyId, ossOptions.AccessKeySecret);
 | 
				
			||||||
| 
						 | 
					@ -259,11 +259,11 @@ namespace IRaCIS.Api.Controllers
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else if(Enum.TryParse<ObjectStoreUse>(serviceOption.ObjectStoreUse, out var parsedValue) && parsedValue == ObjectStoreUse.MinIO)
 | 
					            else if(Enum.TryParse<ObjectStoreUse>(serviceOption.ObjectStoreUse, out var parsedValue) && parsedValue == ObjectStoreUse.MinIO)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                return ResponseOutput.Ok(new ObjectStoreDTO() { ObjectStoreUse=serviceOption.ObjectStoreUse,MinIO=serviceOption.MinIO});
 | 
					                return ResponseOutput.Ok(new ObjectStoreDTO() { ObjectStoreUse=serviceOption.ObjectStoreUse,MinIO=serviceOption.MinIO, AWS = serviceOption.AWS });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                return ResponseOutput.Ok(new ObjectStoreDTO() { ObjectStoreUse = serviceOption.ObjectStoreUse, MinIO = serviceOption.MinIO });
 | 
					                return ResponseOutput.Ok(new ObjectStoreDTO() { ObjectStoreUse = serviceOption.ObjectStoreUse, MinIO = serviceOption.MinIO, AWS = serviceOption.AWS });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
                   
 | 
					                   
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,6 +68,8 @@ namespace IRaCIS.Core.Application.Helper
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public MinIOOptions MinIO { get; set; }
 | 
					        public MinIOOptions MinIO { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public AWSOptions AWS { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public class AliyunOSSTempToken
 | 
					    public class AliyunOSSTempToken
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue