32 lines
882 B
C#
32 lines
882 B
C#
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);
|
|
}
|
|
} |