feat 员工消费二维码
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using Dlhis.Basic.Organization.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Dlhis.Basic.Organization.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 档案二维码
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class GainfoQrCodeController : ControllerBase
|
||||
{
|
||||
private readonly IGainfoQrCodeService _gainfoQrCodeService;
|
||||
|
||||
public GainfoQrCodeController(IGainfoQrCodeService gainfoQrCodeService)
|
||||
{
|
||||
_gainfoQrCodeService = gainfoQrCodeService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取我的消费二维码
|
||||
/// </summary>
|
||||
/// <param name="isNeedRefresh">是否主动刷新</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("consumer")]
|
||||
public async Task<string> GetMyQrCode(bool isNeedRefresh = false)
|
||||
{
|
||||
return await _gainfoQrCodeService.GetMyQrCodeAsync(isNeedRefresh);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user