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