You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
1.1 KiB

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
{
/// <summary>
/// 獲取token信息
/// </summary>
/// <param name="orgId"></param>
/// <param name="userId"></param>
/// <param name="pasWd"></param>
/// <returns></returns>
[HttpGet]
//[SEApiSecurityFilter]
public HttpResponseMessage GetToken(string orgId, string userId, string pasWd)
{
//获取token
return new SystemService().GetToken(orgId, userId, pasWd);
}
/// <summary>
/// 會員登錄
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
[HttpPost]
public HttpResponseMessage Login([FromBody] Login dto)
{
//登陸並返回token
return new SystemService().Login(dto);
}
}
}