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;
///
/// 构造函数
///
///
public AppCommonController(IAppCommonService invokeService)
{
_invokeService = invokeService;
}
///
/// 用户登录
///
///
///
[HttpPost]
[AllowAnonymous]
[Route("Login")]
public DataResult Login([FromBody] AppLoginModel model)
{
var res = _invokeService.AppUserLogin(model);
return res;
}
}