MyFramework.Web.Api
1.0.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MyFramework.Web.Api --version 1.0.0.4
NuGet\Install-Package MyFramework.Web.Api -Version 1.0.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MyFramework.Web.Api" Version="1.0.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MyFramework.Web.Api --version 1.0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MyFramework.Web.Api, 1.0.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MyFramework.Web.Api as a Cake Addin #addin nuget:?package=MyFramework.Web.Api&version=1.0.0.4 // Install MyFramework.Web.Api as a Cake Tool #tool nuget:?package=MyFramework.Web.Api&version=1.0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MyFramework.Web.Api 文档说明
介绍
基于web项目的部分功能的封装
软件架构
略
安装教程
Install-Package MyFramework.Web.Api
功能说明
1.ApiControllerBase(webapi基类)
基类使用示例
using Microsoft.AspNetCore.Mvc;
using MyFramework.Web.Api.Controllers;
using System.Collections.Generic;
namespace MyFramework.Web.Api.Sample.Controllers
{
/// <summary>
/// ApiControllerBase 示例
/// </summary>
[Route("api/[controller]/[action]")]
public class ApiControllerBaseSampleController : ApiControllerBase
{
/// <summary>
///
/// </summary>
public ApiControllerBaseSampleController()
{
TableName = "t_tablename";
PrimaryKeys = new List<string>() { "id" };
}
}
}
功能调用示例
//获取数据(分页集合)
Post http://localhost:5000/api/ApiControllerBaseSample/GetListByPage
//参数
Body
{
"page":1,
"limit":10,
"data":{
"AndOr":"and",
"Conditions":[
{
"Entity":"",
"Property":"id",
"Type":"string",
"Operator":"=",
"Value":"1"
}
],
"ConditionGroup":[
]
}
}
//返回值
......
//保存数据
Post http://localhost:5000/api/ApiControllerBaseSample/SaveData
//参数
Body
{
"字段":"值"
}
//返回值
......
//删除数据()
Post http://localhost:5000/api/ApiControllerBaseSample/Delete
//参数
Body
["value1","value2"]
//返回值
......
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.2
- Microsoft.AspNetCore.App (>= 2.2.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.0)
- MyFramework.Core.Configuration (>= 1.0.0.2)
- MyFramework.Core.Data (>= 1.0.0.5)
- MyFramework.Core.Log (>= 1.0.0.9)
- MyFramework.Core.Models (>= 1.0.0.3)
- MyFramework.Core.Snowflake (>= 1.0.0)
- Swashbuckle.AspNetCore (>= 4.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.