完善大部分问题
This commit is contained in:
@@ -6,11 +6,18 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model.Query
|
||||
{
|
||||
public class QueryCondition
|
||||
public class QueryPageCondition
|
||||
{
|
||||
public int Index { get; set; }
|
||||
public int Size { get; set; }
|
||||
public int Count { get; set; }
|
||||
|
||||
public List<QueryParameter> Parameters { get; set; } = new List<QueryParameter>();
|
||||
public List<string> OrderBys { get; set; } = new List<string>();
|
||||
|
||||
}
|
||||
|
||||
public class QueryCondition
|
||||
{
|
||||
public List<QueryParameter> Parameters { get; set; } = new List<QueryParameter>();
|
||||
public List<string> OrderBys { get; set; } = new List<string>();
|
||||
|
||||
|
||||
@@ -1,16 +1,19 @@
|
||||
using SqlSugar;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model.Query
|
||||
{
|
||||
public class QueryParameter
|
||||
{
|
||||
public string FieldName { get; set; }
|
||||
public string FieldValue { get; set; }
|
||||
public ConditionalType ConditionalType { get; set; } = ConditionalType.Like;
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public ConditionalType Type { get; set; } = ConditionalType.Like;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user