Coreopsis.Toolkits 1.1.19

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Coreopsis.Toolkits --version 1.1.19                
NuGet\Install-Package Coreopsis.Toolkits -Version 1.1.19                
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="Coreopsis.Toolkits" Version="1.1.19" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Coreopsis.Toolkits --version 1.1.19                
#r "nuget: Coreopsis.Toolkits, 1.1.19"                
#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 Coreopsis.Toolkits as a Cake Addin
#addin nuget:?package=Coreopsis.Toolkits&version=1.1.19

// Install Coreopsis.Toolkits as a Cake Tool
#tool nuget:?package=Coreopsis.Toolkits&version=1.1.19                

Coreopsis.Toolkits

NuGet version (Coreopsis.Toolkits)

public BaseResponse<SupplierModel> GetSupplierList(QueryCriteria<SupplierQuery> model)

QueryCriteria 查询条件类

QueryCriteria.cs

  • TCondition:泛型类
  • PageParam:分页参数
    • PageMode:分页模式(0:Paginated分页、1:NotPaginated不分页)
    • PageIndex:页码
    • PageSizex:分页条数
    • OrderByField:排序字段
      • DataField:字段名称
      • Direction:排序方式(0:Ascending 升序、1:Descending降序)

BaseResponse 基类响应类

BaseResponse.cs

  • Success:成功标识(true:正常、false:异常)
  • ReturnCode:返回编码(0:未知、1:成功、-1:失败)
  • ReturnMessage:返回消息
  • TotalCount:总记录数
  • Beans:泛型类(List<T>)

NacosHelper

"NacosSettings": {
    "ServerAddress": "******",
    "Namespace": "******",
    "AppId": {
        "DataId": "******",
        "Group": "******"
    }
}

appsettings.json/nacos配置

  • ServerAddress:服务器地址
  • Namespace:命名空间
  • AppId:应用节点名称(以实际为准)
    • DataId:Data ID
    • Group:分组名称

DateTimeUtils 日期相关工具类

// 年第一天
var firstDayOfYear = DateTimeUtils.FirstDayOfYear();

// 年最后一天
var lastDayOfYear = DateTimeUtils.LastDayOfYear();

// 月第一天
var firstDayOfMonth = DateTimeUtils.FirstDayOfMonth();

// 月最后一天
var lastDayOfMonth = DateTimeUtils.LastDayOfMonth();

// 星期第一天
var firstDayOfWeek = DateTimeUtils.FirstDayOfWeek();

// 星期最后一天
var firstDayOfMonth = DateTimeUtils.LastDayOfWeek();

默认参数:当前日期

IKafkaService

"Kafka": {
    "Brokers": "******",
    "Consumers": "******",
    "Delay": 3000,
    "Topics": {
        "Id1": "******",
        "Id2": "******"
    }
}

appsettings.json/kafka配置

  • Brokers:服务实例
  • Consumers:消息消费方
  • Topics:消息存放的目录,即主题
    • Id1:主题ID
Product Compatible and additional computed target framework versions.
.NET 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated

常规问题修复