using System.Collections.Generic; using System.Threading.Tasks; using GxPress.Repository.Interface.VipEquity; using GxPress.Result.VipEquity; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace GxPress.Api.WebControllers { /// /// Vip权益 /// [Route("api/web/vip-equity")] [ApiController] [Authorize] public class VipEquityController : Controller { private readonly IVipEquityRepository vipEquityRepository; public VipEquityController(IVipEquityRepository vipEquityRepository) { this.vipEquityRepository = vipEquityRepository; } /// /// 获取权益 /// /// [HttpGet] [AllowAnonymous] public async Task> GetAllAsync() { return await vipEquityRepository.GetAllAsync(); } } }