using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; using Znyc.Recruitment.Common.Output; using Znyc.Recruitment.Controllers; using Znyc.Recruitment.Service; namespace Znyc.Recruitment.Api.Controllers { /// /// 支付服务 /// public class WxPayController : BaseController { private readonly IAuthService _authService; public WxPayController(IAuthService authService) { _authService = authService; } /// /// 微信小程序支付 /// /// 商品Id /// [HttpGet] [AllowAnonymous] [Route("api/v1/wxpay/{productId}")] public Task WxPay(long productId) { return _authService.WxPay(productId); } /// /// 微信小程序支付回调 /// /// [HttpPost] [AllowAnonymous] [Route("api/v1/wxpay/notify")] public Task NotifyUrl() { return _authService.NotifyUrl(); } } }