using EasyBL.WebApi.Filters;
using EasyBL.WEBAPP.SYS;
using Entity.ShowEasyDtos;
using Entity.Sugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
namespace WebApp.Controllers
{
public class SystemController : ApiController
{
///
/// 獲取token信息
///
///
///
///
///
[HttpGet]
//[SEApiSecurityFilter]
public HttpResponseMessage GetToken(string orgId, string userId, string pasWd)
{
//获取token
return new SystemService().GetToken(orgId, userId, pasWd);
}
///
/// 會員登錄
///
///
///
[HttpPost]
public HttpResponseMessage Login([FromBody] Login dto)
{
//登陸並返回token
return new SystemService().Login(dto);
}
}
}