Login/Logout接口调用dalUser的Login/Logout方法
源码:SystemGateBusiness.cs
Login接口
C# 全选
/// <summary>
/// PC端登录,CSFrameworkV6框架登录接口
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public async Task<ModelUser> Login(WebApi.Models.req_Login input)
{
//省略......
var result = new dalUser(_userContext.ToLoginer()).Login(loginUser);
return result.Convert<ModelUser>();
}
Logout接口
C# 全选
/// <summary>
/// PC端登出,CSFrameworkV6框架登出接口
/// </summary>
/// <param name="user"></param>
/// <returns></returns>
public async Task<bool> Logout(Models.Loginer user)
{
var loginUser = new CSFrameworkV6.Core.LoginUser
{
Account = user.Account,
IP = user.IP,
MAC = user.MAC,
};
return new dalUser(_userContext.ToLoginer()).Logout(loginUser);
}
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
WebApi-NETCore-V3 C/S框架网