国际化修改,增加批量更新接口
	
		
			
	
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
				
					
				
			
				
	
				continuous-integration/drone/push Build is passing
				
					Details
				
			
		
	
							parent
							
								
									1f9d29e005
								
							
						
					
					
						commit
						ab84e66fe4
					
				| 
						 | 
				
			
			@ -738,6 +738,13 @@
 | 
			
		|||
            <param name="addOrEditInternationalization"></param>
 | 
			
		||||
            <returns></returns>
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:IRaCIS.Core.Application.Service.InternationalizationService.BatchUpdateInternationalInfo(IRaCIS.Core.Application.ViewModel.BatchUpdateInfoCommand)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            批量更新状态和发布版本
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="inCommand"></param>
 | 
			
		||||
            <returns></returns>
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="T:IRaCIS.Core.Application.Service.PublishLogService">
 | 
			
		||||
            <summary>
 | 
			
		||||
            PublishLogService
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,6 +45,9 @@ namespace IRaCIS.Core.Application.ViewModel
 | 
			
		|||
        public string FrontType { get; set; } = string.Empty;
 | 
			
		||||
 | 
			
		||||
        public int InternationalizationType { get; set; }
 | 
			
		||||
        public string Module { get; set; } = string.Empty;
 | 
			
		||||
        //关联版本历史记录表Id
 | 
			
		||||
        public Guid? PublishLogId { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public class BatchAddInternationalization
 | 
			
		||||
| 
						 | 
				
			
			@ -64,6 +67,10 @@ namespace IRaCIS.Core.Application.ViewModel
 | 
			
		|||
        public string Value { get; set; } = string.Empty;
 | 
			
		||||
        public string FrontType { get; set; } = string.Empty;
 | 
			
		||||
        public string ValueCN { get; set; } = string.Empty;
 | 
			
		||||
 | 
			
		||||
        public string Module { get; set; } = string.Empty;
 | 
			
		||||
        //关联版本历史记录表Id
 | 
			
		||||
        public Guid? PublishLogId { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public class BatchAddInternationalizationDto : BatchInternationalizationDto
 | 
			
		||||
| 
						 | 
				
			
			@ -71,11 +78,20 @@ namespace IRaCIS.Core.Application.ViewModel
 | 
			
		|||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public class InternationalizationSimpleDto: BatchInternationalizationDto
 | 
			
		||||
    public class InternationalizationSimpleDto : BatchInternationalizationDto
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public class BatchUpdateInfoCommand
 | 
			
		||||
    {
 | 
			
		||||
        public List<Guid> IdList { get; set; }
 | 
			
		||||
 | 
			
		||||
        public Guid? PublishLogId { get; set; }
 | 
			
		||||
 | 
			
		||||
        public int State { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -202,6 +202,19 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
            return ResponseOutput.Ok();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 批量更新状态和发布版本
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="inCommand"></param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        [HttpPut]
 | 
			
		||||
        public async Task<IResponseOutput> BatchUpdateInternationalInfo(BatchUpdateInfoCommand inCommand)
 | 
			
		||||
        {
 | 
			
		||||
           await _internationalizationRepository.BatchUpdateNoTrackingAsync(t => inCommand.IdList.Contains(t.Id), t => new Internationalization() { State = inCommand.State, PublishLogId = inCommand.PublishLogId });
 | 
			
		||||
 | 
			
		||||
            return ResponseOutput.Ok();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,6 +45,13 @@ namespace IRaCIS.Core.Domain.Models
 | 
			
		|||
 | 
			
		||||
		public string FrontType { get; set; }=string.Empty;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		public string Module { get; set; } = string.Empty;
 | 
			
		||||
		//关联版本历史记录表Id
 | 
			
		||||
		public Guid? PublishLogId { get; set; }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}	 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue