添加分割保存状态

This commit is contained in:
he
2026-03-30 10:54:09 +08:00
parent 3f9e506d09
commit 25f62a35ee
7 changed files with 22144 additions and 4 deletions
@@ -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>