/***********************************************************************
* Project: baifenBinfa
* ProjectName: 百分兵法管理系统
* Web: http://chuanyin.com
* Author:
* Email:
* CreateTime: 202403/02
* Description: 暂无
***********************************************************************/
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CoreCms.Net.Model.Entities;
namespace CoreCms.Net.Model.FromBody
{
///
/// 新建商品保存提交类
///
public class FMGoodsInsertModel
{
///
/// 商品信息
///
public CoreCmsGoods goods { get; set; }
///
/// 生成货品信息
///
public List products { get; set; } = null;
///
/// 会员价格体系
///
public List gradePrice { get; set; }
///
/// 栏目扩展
///
public string goodsCategoryExtendIds { get; set; }
}
public class gradePrice
{
public int key { get; set; }
public decimal value { get; set; }
}
///
/// 批量修改金额提交
///
public class FmBatchModifyPrice
{
///
/// 序列数组
///
public int[] ids { get; set; }
///
/// 变更方式+-*/
///
public string modifyType { get; set; }
///
/// 变更类型
///
public string priceType { get; set; }
///
/// 金额或倍数
///
public decimal priceValue { get; set; }
}
///
/// 批量修改库存提交
///
public class FmBatchModifyStock
{
///
/// 序列数组
///
public int[] ids { get; set; }
///
/// 变更方式+-*/
///
public string modifyType { get; set; }
///
/// 变更至
///
public int modifyValue { get; set; }
}
///
/// 提交设置标签实体
///
public class FmSetLabel
{
///
/// 序列数组
///
public int[] ids { get; set; }
public List labels { get; set; }
}
public class Labels
{
public string text { get; set; }
public string style { get; set; }
}
public class FMGetProductInfo
{
public int id { get; set; }
public string type { get; set; }
public int groupId { get; set; } = 0;
}
///
/// 根据不同类型获取商品提交参数
///
public class FMGetGoodByType
{
///
/// 类型
///
[Required(ErrorMessage = "请输入类型")]
public int type { get; set; }
///
/// 数量
///
[Required(ErrorMessage = "请输入数量")]
public int num { get; set; } = 0;
///
/// 排序方式
///
[Required(ErrorMessage = "请输入排序方式")]
public string orderby { get; set; }
}
}