mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
【优化】移除2个orderBy使用的sql组合方法参数,移除4个仓储基类的所有sql组合方法,全部使用参数化提交,防止出现可能存在的sql注入。
This commit is contained in:
@@ -26,11 +26,6 @@ namespace CoreCms.Net.Model.FromBody
|
||||
/// </summary>
|
||||
public int limit { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public string order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 判断条件
|
||||
/// </summary>
|
||||
@@ -43,9 +38,14 @@ namespace CoreCms.Net.Model.FromBody
|
||||
/// </summary>
|
||||
public class FMPageByIntId
|
||||
{
|
||||
/// <summary>
|
||||
/// 其他数据
|
||||
/// </summary>
|
||||
public object otherData { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 序列
|
||||
/// </summary>
|
||||
public int id { get; set; }
|
||||
|
||||
|
||||
@@ -59,11 +59,6 @@ namespace CoreCms.Net.Model.FromBody
|
||||
/// </summary>
|
||||
public int limit { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public string order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 判断条件
|
||||
/// </summary>
|
||||
@@ -75,9 +70,11 @@ namespace CoreCms.Net.Model.FromBody
|
||||
/// </summary>
|
||||
public class FMPageByStringId
|
||||
{
|
||||
/// <summary>
|
||||
/// 序列
|
||||
/// </summary>
|
||||
public string id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 当前页码
|
||||
/// </summary>
|
||||
@@ -87,16 +84,6 @@ namespace CoreCms.Net.Model.FromBody
|
||||
/// 每页数据量
|
||||
/// </summary>
|
||||
public int limit { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public string order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 判断条件
|
||||
/// </summary>
|
||||
public string where { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -105,6 +92,9 @@ namespace CoreCms.Net.Model.FromBody
|
||||
/// </summary>
|
||||
public class FMPageByStringIdWhitStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 序列
|
||||
/// </summary>
|
||||
public string id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user