liaoxujun@qq.com
2024-02-28 9f8e542b9b74fe18a6a4e0a00fef4b50e3e62581
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/
 
 
using System.Collections.Generic;
using CoreCms.Net.Model.Entities;
using CoreCms.Net.Model.ViewModels.UI;
 
namespace CoreCms.Net.Model.ViewModels.DTO
{
    /// <summary>
    ///     购物车返回列表实体
    /// </summary>
    public class CartDto
    {
        public int userId { get; set; } = 0;
 
        /// <summary>
        ///     商品总金额
        /// </summary>
        public decimal goodsAmount { get; set; }
 
        /// <summary>
        ///     总金额
        /// </summary>
        public decimal amount { get; set; }
 
        /// <summary>
        ///     订单促销金额
        ///     单纯的订单促销的金额
        /// </summary>
        public decimal orderPromotionMoney { get; set; } = 0;
 
        /// <summary>
        ///     商品促销金额
        ///     所有的商品促销的总计
        /// </summary>
        public decimal goodsPromotionMoney { get; set; } = 0;
 
        /// <summary>
        ///     优惠券优惠金额
        /// </summary>
        public decimal couponPromotionMoney { get; set; } = 0;
 
        /// <summary>
        ///     促销列表
        /// </summary>
        public Dictionary<int, WxNameTypeDto> promotionList { get; set; } = new();
 
        /// <summary>
        ///     运费
        /// </summary>
        public decimal costFreight { get; set; } = 0;
 
        /// <summary>
        ///     商品总重
        /// </summary>
        public decimal weight { get; set; } = 0;
 
        /// <summary>
        ///     优惠券
        /// </summary>
        public List<string> coupon { get; set; } = new();
 
        /// <summary>
        ///     购物车类型
        /// </summary>
        public int type { get; set; } = 1;
 
 
        /// <summary>
        ///     积分
        /// </summary>
        public int point { get; set; } = 0;
 
        /// <summary>
        ///     积分可以抵扣多少金额
        /// </summary>
        public decimal pointExchangeMoney { get; set; } = 0;
 
        public List<CartProducts> list { get; set; } = new();
 
 
        /// <summary>
        ///     消息回调
        /// </summary>
        public WebApiCallBack error { get; set; } = new();
    }
 
    public class CartProducts
    {
        public int id { get; set; } = 0;
        public int userId { get; set; } = 0;
        public int productId { get; set; } = 0;
        public int nums { get; set; } = 1;
        public bool isCollection { get; set; } = false;
        public bool isSelect { get; set; } = false;
        public int type { get; set; } = 1;
        public decimal weight { get; set; } = 0;
 
        public CoreCmsProducts products { get; set; } = new();
 
        public CoreCmsGoods good { get; set; }
    }
 
    /// <summary>
    ///     设置购物车商品数量
    /// </summary>
    public class FMSetCartNum
    {
        public int id { get; set; } = 0;
        public int nums { get; set; } = 1;
    }
}