mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
【新增】新增根据不同类型获取商品的接口。类型包含(新品,评论数,销量,价格,推荐,特价优惠,综合销量)
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using CoreCms.Net.Model.Entities;
|
||||
|
||||
namespace CoreCms.Net.Model.FromBody
|
||||
@@ -120,4 +121,30 @@ namespace CoreCms.Net.Model.FromBody
|
||||
public string type { get; set; }
|
||||
public int groupId { get; set; } = 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据不同类型获取商品提交参数
|
||||
/// </summary>
|
||||
public class FMGetGoodByType
|
||||
{
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "请输入类型")]
|
||||
public int type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "请输入数量")]
|
||||
public int num { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 排序方式
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "请输入排序方式")]
|
||||
public string orderby { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user