【新增】新增根据不同类型获取商品的接口。类型包含(新品,评论数,销量,价格,推荐,特价优惠,综合销量)

This commit is contained in:
大灰灰
2022-11-28 06:09:48 +08:00
parent 7c6759a8ae
commit 7e9963541b
8 changed files with 289 additions and 1 deletions

View File

@@ -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; }
}
}