feat 卡类型编辑
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user