ZetaWebApi NuGet Package

直接安装就可以实现封装返回结果和model验证.
返回结果格式如下
{
"code": "ok",
"result":任何数据类型都可以,
"message": "",
"success": true
}
抛错code默认为sys_error,
可自定义异常code方法如下
Exception ex = new Exception("错误消息内容");
ex.Data["code"] = "wx_error";
throw ex;.




Got any ZetaWebApi Question?





Info

Version: 1.0.1
Author(s): wyb
Last Update: Thursday, February 28, 2019
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/ZetaWebApi


Install
Install-Package ZetaWebApi
dotnet add package ZetaWebApi
paket add ZetaWebApi
ZetaWebApi Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

2126