286 lines
8.2 KiB
C#
286 lines
8.2 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Crm.Core.Domain.Dto.Order
|
||
{
|
||
public class GetCreateOrderQueryDto
|
||
{
|
||
public int? eid { get; set; }
|
||
public int? deptid { get; set; }
|
||
public string? appid { get; set; }
|
||
public string? extuserid { get; set; }
|
||
}
|
||
|
||
public class CreateOrderInfo
|
||
{
|
||
public List<RescustomerInfo> userinfos { get; set; }
|
||
public List<DeptList> deptLists { get; set; }
|
||
public List<MinProductInfo> minProductInfos { get; set; }
|
||
}
|
||
|
||
/// <summary>
|
||
/// 小类
|
||
/// </summary>
|
||
public class MinProductInfo
|
||
{
|
||
public decimal? minproductid { get; set; }
|
||
public string? minproductname { get; set; }
|
||
}
|
||
|
||
public class DeptList
|
||
{
|
||
public string? deptname { get; set; }
|
||
public string? saledeptcode { get; set; }
|
||
public bool? selected { get; set; }
|
||
}
|
||
|
||
public class RescustomerInfo
|
||
{
|
||
public string? umid { get; set; }
|
||
public string? username { get; set; }
|
||
public string? cname { get; set; }
|
||
}
|
||
|
||
public class ProductQueryByMinProductId
|
||
{
|
||
public int? deptid { get; set; }
|
||
public int? minProductId { get; set; }
|
||
}
|
||
|
||
public class ProductInfo
|
||
{
|
||
public string? productCode { get; set; }
|
||
public string? productName { get; set; }
|
||
}
|
||
|
||
public class ProductQueryDto
|
||
{
|
||
public int? deptid { get; set; }
|
||
public string productcode { get; set; }
|
||
}
|
||
|
||
public class ProductDetail
|
||
{
|
||
public decimal? price { get; set; }
|
||
public decimal? days { get; set; }
|
||
public string discount { get; set; }
|
||
public List<decimal> customprisce { get; set; }
|
||
public List<DiscountArea> discountAreas { get; set; } = new List<DiscountArea>();
|
||
public List<GiftInfo> giftInfos { get; set; } = new List<GiftInfo>();
|
||
public List<GiftInfo> othergiftInfos { get; set; } = new List<GiftInfo>();
|
||
}
|
||
|
||
public class DiscountArea
|
||
{
|
||
public int Id { get; set; }
|
||
public decimal? Min { get; set; }
|
||
public decimal? Max { get; set; }
|
||
public decimal? MinRate { get; set; }
|
||
public decimal? MaxRate { get; set; }
|
||
public int IsShow { get; set; }
|
||
}
|
||
|
||
public class GiftInfo
|
||
{
|
||
public decimal? giftday { get; set; }
|
||
public string? giftdayname { get; set; }
|
||
public string? giftname { get; set; }
|
||
}
|
||
|
||
public class CreateOrderDto
|
||
{
|
||
public int deptid { get; set; }
|
||
public int? eid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户名
|
||
/// </summary>
|
||
public string softUsername { get; set; }
|
||
|
||
public string productCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 1 新订单 2 续费 3 升级
|
||
/// </summary>
|
||
public int orderType { get; set; } = 1;
|
||
|
||
public string? remark { get; set; }
|
||
public string? saledeptid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 1 为企微留痕 2 为手机号 3
|
||
/// </summary>
|
||
public string? source { get; set; } = "2";
|
||
|
||
public string? upgradeorderids { get; set; }
|
||
public int? giftdays { get; set; }
|
||
|
||
public int? giftdays2 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 折后价格 与 pricerange 只能传一个
|
||
/// </summary>
|
||
public decimal? customprisce { get; set; }
|
||
|
||
/// <summary>
|
||
/// 价格区间
|
||
/// </summary>
|
||
public decimal? pricerange { get; set; }
|
||
|
||
public string? deptCode { get; set; }
|
||
public string? appid { get; set; }
|
||
public string? appuserid { get; set; }
|
||
public string? extuserid {get;set;}
|
||
public List<payInfo>? payInfo { get; set; } = new List<payInfo>();
|
||
}
|
||
|
||
#region
|
||
|
||
public class payInfo
|
||
{
|
||
public DateTime? paydate { get; set; }
|
||
public string payname { get; set; }
|
||
public string payno { get; set; }
|
||
public decimal payprice { get; set; }
|
||
public int paytype { get; set; }
|
||
public string? remark { get; set; }
|
||
}
|
||
|
||
public class OrderuseDto
|
||
{
|
||
public int orderid { get; set; }
|
||
public decimal needpay { get; set; }
|
||
public decimal arrivalpay { get; set; }
|
||
}
|
||
|
||
public class PayPostZxdDto
|
||
{
|
||
public string resid { get; set; }
|
||
public int? channel { get; set; }
|
||
public string deptcode { get; set; }
|
||
public List<PayInfoDto> paylist { get; set; }
|
||
public List<OrderuseDto> orderuselist { get; set; }
|
||
}
|
||
|
||
public class PayInfoDto
|
||
{
|
||
public string resid { get; set; }
|
||
public int paytype { get; set; }
|
||
public string paytypename { get; set; }
|
||
public DateTime? paydate { get; set; }
|
||
public decimal payprice { get; set; }
|
||
public string payname { get; set; }
|
||
public string remark { get; set; }
|
||
|
||
/// <summary>
|
||
/// 直接去除前后空格
|
||
/// </summary>
|
||
public string payno
|
||
{
|
||
get; set;
|
||
}
|
||
|
||
public int isuse { get; set; }
|
||
public string companycode { get; set; }
|
||
public string tradeno { get; set; }
|
||
public int? creator { get; set; }
|
||
public string creatorname { get; set; }
|
||
public DateTime? checkpaytime { get; set; }
|
||
}
|
||
|
||
public class ordermodel
|
||
{
|
||
public string umid { get; set; }
|
||
public decimal userid { get; set; }
|
||
public decimal productId { get; set; }
|
||
public decimal subProductId { get; set; }
|
||
public string productname { get; set; }
|
||
public string subproductname { get; set; }
|
||
|
||
public string productcode { get; set; }
|
||
public string bigproductcode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 0-单一产品、1-组合产品
|
||
/// </summary>
|
||
public int productType { get; set; }
|
||
|
||
public string mobile { get; set; }
|
||
public string source { get; set; }
|
||
public string cname { get; set; }
|
||
public decimal? ordertype { get; set; }
|
||
public decimal? needpay { get; set; }
|
||
public decimal? teamserve { get; set; }
|
||
public decimal? saledeptid { get; set; }
|
||
public string remark { get; set; }
|
||
public decimal? opendays { get; set; }
|
||
|
||
public string softusername { get; set; }
|
||
|
||
/// <summary>
|
||
/// 订单数量
|
||
/// </summary>
|
||
public int count { get; set; }
|
||
|
||
/// <summary>
|
||
/// 公司ID,用于推送标志
|
||
/// </summary>
|
||
public string companycode { get; set; }
|
||
|
||
public string upgradeorderids { get; set; }
|
||
|
||
public decimal? totalupgradevalue { get; set; }
|
||
|
||
public int istest { get; set; }
|
||
public int? giftdays { get; set; }
|
||
|
||
public int? giftdays2 { get; set; }
|
||
public string external_userid { get; set; }
|
||
public string corpid { get; set; }
|
||
public string jobuserid { get; set; }
|
||
public string wework_remoteid { get; set; }
|
||
public string customerusername { get; set; }
|
||
public string fujian { get; set; }
|
||
public decimal? channel { get; set; }
|
||
public decimal? discount { get; set; }
|
||
public decimal? customprisce { get; set; }
|
||
public string deptcode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 预计开通时间
|
||
/// </summary>
|
||
public DateTime? estimateotime { get; set; }
|
||
|
||
public decimal? eid { get; set; }
|
||
public string ai_hgrecord_stime { get; set; }
|
||
public string ai_hgrecord_etime { get; set; }
|
||
}
|
||
|
||
public class CreateOrderRsp
|
||
{
|
||
public int retCode { get; set; } //状态码同旧有逻辑
|
||
public string orderId { get; set; } //Node.JS接口返回的订单号
|
||
public string selfOirderId { get; set; } //中心点自己生成的ID
|
||
public string userName { get; set; }
|
||
public string retMsg { get; set; }
|
||
}
|
||
|
||
public class retMsg<T>
|
||
{
|
||
public bool result { get; set; }
|
||
public int retcode { get; set; }
|
||
public T retmsg { get; set; }
|
||
}
|
||
|
||
public class DepositInfoDto
|
||
{
|
||
public int id { get; set; }
|
||
public string payno { get; set; }
|
||
public string companycode { get; set; }
|
||
}
|
||
|
||
#endregion
|
||
} |