31 lines
813 B
C#
31 lines
813 B
C#
using Domain.AggregateModel.LinkAggregate;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace QRCodeService.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 跳转url请求的地址
|
|
/// </summary>
|
|
[Route("{shortCode}")]
|
|
public class GoController: Controller
|
|
{
|
|
//readonly ILinkRepository LinkRepository;
|
|
//public GoController(ILinkRepository linkRepository)
|
|
//{
|
|
// LinkRepository = linkRepository;
|
|
//}
|
|
[HttpGet]
|
|
public async Task<IActionResult> Index(string shortcode)
|
|
{
|
|
var a = new { Url = "asdasd" };
|
|
//var link = await LinkRepository.GetAsync(shortcode);
|
|
return View(a);
|
|
}
|
|
}
|
|
}
|