You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
910 B
C#
36 lines
910 B
C#
using DS.Module.Core;
|
|
using DS.WMS.Core.App.Dtos;
|
|
using DS.WMS.Core.App.Interface;
|
|
using DS.WMS.Core.System.Dtos;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DS.WMS.AppApi.Controllers;
|
|
|
|
public class AppCommonController : ApiController
|
|
{
|
|
private readonly IAppCommonService _invokeService;
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="invokeService"></param>
|
|
public AppCommonController(IAppCommonService invokeService)
|
|
{
|
|
_invokeService = invokeService;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 用户登录
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[AllowAnonymous]
|
|
[Route("Login")]
|
|
public DataResult<CurrentUserViewModel> Login([FromBody] AppLoginModel model)
|
|
{
|
|
var res = _invokeService.AppUserLogin(model);
|
|
return res;
|
|
}
|
|
} |