You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
742 B
28 lines
742 B
2 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using Znyc.CloudCar.IServices.User;
|
||
|
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
|
||
|
|
||
|
namespace Znyc.CloudCar.Controller
|
||
|
{
|
||
|
public class UserCardController : ControllerBase
|
||
|
{
|
||
|
private readonly IUserCardService _userCardService;
|
||
|
|
||
|
public UserCardController(IUserCardService userCardService)
|
||
|
{
|
||
|
_userCardService = userCardService;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 优惠卡到期禁用
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
[HttpPut]
|
||
|
[Route("api/v1/user/card")]
|
||
|
public async Task<ResponseOutput> UpdateUserCardAsync()
|
||
|
{
|
||
|
return await _userCardService.UpdateUserCardAsync();
|
||
|
}
|
||
|
}
|
||
|
}
|