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.
 
 

34 lines
1.0 KiB

using Microsoft.AspNetCore.Mvc;
using Znyc.CloudCar.IServices.Currency;
using Znyc.CloudCar.Model.ViewModels.ReportsCallBack;
namespace Znyc.Recruitment.Api.Controllers
{
/// <summary>
/// 分享管理
/// </summary>
public class ShareController : ControllerBase
{
private readonly ICurrencyService _currencyService;
public ShareController(
ICurrencyService currencyService
)
{
_currencyService = currencyService;
}
/// <summary>
/// 分享
/// </summary>
/// <param name="userId"></param>
/// <param name="shareType">newusers(邀请新用户)/dailyshare(每日分享)/personalposter(生成海报)</param>
/// <returns></returns>
[HttpGet]
[Route("api/v1/share/{shareType}/{userId}")]
public async Task<ResponseOutput> ShareAsync(string shareType, long userId)
{
return await _currencyService.ShareAsync(shareType, userId);
}
}
}