新增TCP扩展

This commit is contained in:
zgf committed 2023-08-11 15:17:28 +08:00
1 parent 514d6f5255
commit f119665d29
26 files changed
+2457 -34

No files matched your search

+2 -2
View File
@@ -8,12 +8,12 @@ namespace HHWMS.Web
{
protected JsonResult ApiResult(object data = null, string msg = "success")
{
return new JsonResult(new ApiJsonResult<object> { Data = data, State = true, Status = true, Message = msg });
return new JsonResult(new ApiJsonResult<object> { Data = data, Success = true, Status = true, Msg = msg });
}
protected JsonResult ApiResultError(object data = null, string msg = "faield")
{
return new JsonResult(new ApiJsonResult<object> { Data = data, State = false, Status = false, Message = msg });
return new JsonResult(new ApiJsonResult<object> { Data = data, Success = false, Status = false, Msg = msg });
}
}
}
+11 -5
View File
@@ -1,12 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using HHWMS.Web.Models;
using Microsoft.AspNetCore.Mvc;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Z.EntityFramework.Plus;
namespace HHWMS.Web
{
@@ -130,5 +125,16 @@ namespace HHWMS.Web
}
return ApiResult();
}
/// <summary>
/// 测试
/// </summary>
/// <param name="response"></param>
/// <returns></returns>
[HttpPost]
public IActionResult Test(TaskResponse response)
{
return ApiResult();
}
}
}