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.
|
|
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); }
/// <summary>
/// 記住密碼
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
[HttpGet] public HttpResponseMessage RememberMe(string Account) { //登陸並返回token
return new SystemService().RememberMe(Account); } } }
|