fix 优化批量处理逻辑
This commit is contained in:
@@ -45,17 +45,7 @@ public class GainfoCardsController : ControllerBase
|
||||
{
|
||||
return await _gainfoCardService.GetChangeRecordsAsync(userNo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取卡类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("cardTypes")]
|
||||
public async Task<List<KeyValueDto<string, string>>> GetCardTypesAsync()
|
||||
{
|
||||
return await _gainfoCardService.GetCardTypesAsync();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑卡类型
|
||||
/// </summary>
|
||||
@@ -63,7 +53,6 @@ public class GainfoCardsController : ControllerBase
|
||||
[HttpPost("cardType")]
|
||||
public async Task EditCardTypeAsync(GainfoCardEditRequest request)
|
||||
{
|
||||
//string code, int typeId
|
||||
await _gainfoCardService.EditCardTypeAsync(request.UserCode, request.CardType);
|
||||
await _gainfoCardService.EditCardTypeAsync(request.UserCodes, request.CardType);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user