using GxPress.Auth;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace GxPress.Api.AppControllers
{
///
/// 分享
///
[Route("api/app/share")]
[ApiController]
[Authorize]
public class ShareController : ControllerBase
{
private readonly ILoginContext _loginContext;
public ShareController(ILoginContext loginContext)
{
_loginContext = loginContext;
}
///
///
///
///
///
///
[HttpGet("url")]
public ShareDto GetShareUrl([FromQuery]int typeId, [FromQuery] int sourceId)
{
var shareDto = new ShareDto();
return shareDto;
}
}
///
/// 共享
///
public class ShareDto
{
public string Url { get; set; }
}
}