This commit is contained in:
Putoo
2026-04-26 18:53:56 +08:00
parent 2c6c62e88c
commit 4463f9e810
20 changed files with 461 additions and 1035 deletions

View File

@@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Application.Domain
{
public class LoginParms
{
public string name { get; set; }
public string pwd { get; set; }
}
}

View File

@@ -17,19 +17,24 @@ namespace Application.Web.Controllers.Login
{
_hubContext = hubContext;
}
/// <summary>
/// 登录接口
/// </summary>
/// <param name="parms"></param>
/// <returns></returns>
/// <summary>
/// 登录接口
/// </summary>
/// <param name="parms"></param>
/// <returns></returns>
[HttpPost]
public async Task<IPoAction> Login([FromBody] LoginParms parms)
{
return PoAction.Ok(parms.name);
return PoAction.Ok(parms.code);
}
/// <summary>
/// 测试接口
/// </summary>
/// <param name="name">测试名</param>
/// <param name="ttt">测试2</param>
/// <returns></returns>
[HttpGet]
public async Task<IPoAction> Test(string name)
public async Task<IPoAction> Test(string name,string ttt)
{
await _hubContext.Clients.All.SendAsync("ReceiveMessage", "系统");

View File

@@ -0,0 +1,28 @@
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Text;
namespace Application.Web
{
/// <summary>
/// 登录请求参数
/// </summary>
public class LoginParms
{
/// <summary>
/// 登录名/手机号
/// </summary>
public string name { get; set; } = string.Empty;
/// <summary>
/// 密码
/// </summary>
public string pwd { get; set; }= string.Empty;
/// <summary>
/// 验证码
/// </summary>
public string code { get; set; }
}
}