iml6yu.Results 1.0.4

dotnet add package iml6yu.Results --version 1.0.4
                    
NuGet\Install-Package iml6yu.Results -Version 1.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="iml6yu.Results" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="iml6yu.Results" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="iml6yu.Results" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add iml6yu.Results --version 1.0.4
                    
#r "nuget: iml6yu.Results, 1.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.
#addin nuget:?package=iml6yu.Results&version=1.0.4
                    
Install iml6yu.Results as a Cake Addin
#tool nuget:?package=iml6yu.Results&version=1.0.4
                    
Install iml6yu.Results as a Cake Tool

iml6yu.Result

这是一个统一的返回结果类,用于统一返回结果的格式。

MessageResult 消息结果

1. 成功返回结果

	MessageResult.Success();

返回结果:

{
  "code": 200,
  "message": "success",
  "state": true
}

2. 失败返回结果

	MessageResult.Fail(ResultType.Failed,message,exception);

返回结果:

{
  "code": 500,
  "message": message,
  "state": false,
  "error": exception
}

DataResult 单一数据结果

用法同MessageResult,只是返回结果多了一个data属性,用于返回单一数据。

CollectionResult 集合数据结果

用法同MessageResult 返回结果多了

  • data属性,用于返回集合数据。
  • pageindex属性,用于返回当前页码。
  • pagesize属性,用于返回每页数据量。
  • total属性,用于返回总数据量。
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 is compatible.  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 is compatible.  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.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on iml6yu.Results:

Package Downloads
iml6yu.IdentityWindowsClient

Package Description

iml6yu.IdentityService.Client

认证客户端

iml6yu.Database.Constant

Package Description

iml6yu.IdenetityService.Application

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.