国际化修改,增加批量更新接口
	
		
			
	
		
	
	
		
			
				
	
				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>
 | 
					            <param name="addOrEditInternationalization"></param>
 | 
				
			||||||
            <returns></returns>
 | 
					            <returns></returns>
 | 
				
			||||||
        </member>
 | 
					        </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">
 | 
					        <member name="T:IRaCIS.Core.Application.Service.PublishLogService">
 | 
				
			||||||
            <summary>
 | 
					            <summary>
 | 
				
			||||||
            PublishLogService
 | 
					            PublishLogService
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -45,6 +45,9 @@ namespace IRaCIS.Core.Application.ViewModel
 | 
				
			||||||
        public string FrontType { get; set; } = string.Empty;
 | 
					        public string FrontType { get; set; } = string.Empty;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public int InternationalizationType { get; set; }
 | 
					        public int InternationalizationType { get; set; }
 | 
				
			||||||
 | 
					        public string Module { get; set; } = string.Empty;
 | 
				
			||||||
 | 
					        //关联版本历史记录表Id
 | 
				
			||||||
 | 
					        public Guid? PublishLogId { get; set; }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public class BatchAddInternationalization
 | 
					    public class BatchAddInternationalization
 | 
				
			||||||
| 
						 | 
					@ -64,16 +67,29 @@ namespace IRaCIS.Core.Application.ViewModel
 | 
				
			||||||
        public string Value { get; set; } = string.Empty;
 | 
					        public string Value { get; set; } = string.Empty;
 | 
				
			||||||
        public string FrontType { get; set; } = string.Empty;
 | 
					        public string FrontType { get; set; } = string.Empty;
 | 
				
			||||||
        public string ValueCN { 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
 | 
					    public class BatchAddInternationalizationDto : BatchInternationalizationDto
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    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();
 | 
					            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 FrontType { get; set; }=string.Empty;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							public string Module { get; set; } = string.Empty;
 | 
				
			||||||
 | 
							//关联版本历史记录表Id
 | 
				
			||||||
 | 
							public Guid? PublishLogId { get; set; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}	 
 | 
					}	 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue