初始提交

This commit is contained in:
wanyongkang
2020-10-07 20:25:03 +08:00
commit d318014316
3809 changed files with 263103 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
namespace Hncore.Pass.Vpn.Response.Product
{
public class CodeResponse
{
public string CodeImage { get; set; }
public string Key { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using Hncore.Pass.Vpn.Domain;
namespace Hncore.Pass.Vpn.Response.Product
{
public class PackageInfoResponse
{
public ProductPackageEntity Package { get; set; }
public ProductUserPriceEntity UserPrice { get; set; }
public ProductEntity Product { get; set; }
public int RestTimes { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
using Hncore.Infrastructure.Tree;
using Hncore.Pass.Vpn.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Hncore.Pass.Vpn.Response.Product
{
public class PackageUserPriceResponse
{
public ProductPackageEntity Package { get; set; }
public ProductUserPriceEntity UserPrice { get; set; }
}
public class ProductWithPackageUserPriceResponse
{
public ProductResponse Product { get; set; }
public List<PackageUserPriceResponse> PackageUserPrices { get; set; }
}
}

View File

@@ -0,0 +1,30 @@
using Hncore.Infrastructure.Tree;
using Hncore.Pass.Vpn.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hncore.Infrastructure.Extension;
namespace Hncore.Pass.Vpn.Response.Product
{
public class ProductResponse
{
public int Id { get; set; }
public string Name { get; set; }
public string Image { get; set; }
public int Sort { get; set; }
public string Content { get; set; }
public string Profile { get; set; }
public int OnLine { get; set; } = 1;
public List<string> ContentLine=> this.Profile.Has()?this.Profile.Split('\n').ToList():new List<string>();
}
public class ProductWithPackageResponse
{
public ProductResponse Product { get; set; }
public List<ProductPackageEntity> Packages { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using Hncore.Infrastructure.Tree;
using Hncore.Pass.Vpn.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hncore.Infrastructure.Extension;
namespace Hncore.Pass.Vpn.Response.Product
{
public class PackagePriceDiscount
{
public ProductPackageEntity Package { get; set; }
public ProductPriceDiscountEntity PriceDiscount { get; set; }
}
public class ProductWithPriceDiscountResponse
{
public ProductResponse Product { get; set; }
public List<PackagePriceDiscount> PackageDiscounts { get; set; }
}
}