添加分割保存状态
This commit is contained in:
@@ -93,6 +93,23 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 修改分割组的保存状态
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> ChangeSegmentationSavedStatus(ChangeSegmentationSavedStatusInDto inDto)
|
||||
{
|
||||
await _segmentationRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, t => new Segmentation
|
||||
{
|
||||
IsSaved = inDto.IsSaved
|
||||
});
|
||||
await _segmentationRepository.SaveChangesAsync();
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取分割
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user