| | |
| | | using LifePayment.Domain.Shared; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.Extensions.Logging; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | private readonly ILifePayService _lifePayService; |
| | | private readonly IWebClientInfoProvider _webClientInfoProvider; |
| | | private readonly ILogger<LifePayController> _logger; |
| | | public LifePayController( |
| | | ILifePayService lifePayService, |
| | | IWebClientInfoProvider webClientInfoProvider |
| | | , ILogger<LifePayController> logger |
| | | ) |
| | | { |
| | | _lifePayService = lifePayService; |
| | | _webClientInfoProvider = webClientInfoProvider; |
| | | _logger = logger; |
| | | } |
| | | |
| | | #region 查询 |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取燃气支持商户 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [AllowAnonymous] |
| | | |
| | | public async Task<int> AddLogger(LogErrorInput input) |
| | | { |
| | | Logger.LogError(input.Error); |
| | | return Constant.SUCCESS; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 获取折扣 |
| | | /// </summary> |
| | | /// <returns></returns> |