27 lines
561 B
C#
27 lines
561 B
C#
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using StoreHub.Framework.Commons;
|
|
using StoreHub.KJDWebService.Services;
|
|
|
|
namespace StoreHub.KJDWebService.Controllers
|
|
{
|
|
[ApiController]
|
|
[ApiVersion("1.0")]
|
|
[Route("api/v{version:apiVersion}/[controller]/[action]")]
|
|
public class Login : ControllerBase
|
|
{
|
|
private readonly DemoService _userService;
|
|
|
|
public Login(DemoService userService)
|
|
{
|
|
_userService = userService;
|
|
}
|
|
[HttpGet]
|
|
public ApiResult<bool> Loinout()
|
|
{
|
|
_userService.Login();
|
|
return ApiResult.Success(true);
|
|
}
|
|
}
|
|
}
|