feat 卡类型编辑

This commit is contained in:
2025-01-03 11:56:06 +08:00
parent d7ab8f27e6
commit fddf77858e
10 changed files with 129 additions and 43 deletions

View File

@@ -1,6 +1,7 @@
using Dlhis.Basic.Organization.Request;
using Dlhis.Basic.Organization.Response;
using Dlhis.Basic.Organization.Services;
using Kurisu.AspNetCore.CustomClass;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -44,4 +45,25 @@ 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>
/// <param name="request"></param>
[HttpPost("cardType")]
public async Task EditCardTypeAsync(GainfoCardEditRequest request)
{
//string code, int typeId
await _gainfoCardService.EditCardTypeAsync(request.UserCode, request.CardType);
}
}