商城模块

This commit is contained in:
陈淳
2022-10-18 19:27:58 +08:00
parent ab8cdd88b9
commit 0a27cd7403
43 changed files with 861 additions and 122 deletions

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using SqlSugar;
namespace Yi.Framework.Model.Models
{
public partial class SpuEntity:IBaseModelEntity
{
/// <summary>
/// 规格Spu完整信息
///</summary>
[SugarColumn(ColumnName = "SpecsAllInfo", IsJson = true)]
public List<SpecsSpuAllInfoModel> SpecsSpuAllInfo { get; set; }
/// <summary>
/// 规格Spu信息
///</summary>
[SugarColumn(ColumnName = "SpecsInfo", IsJson = true)]
public List<SpecsSpuInfoModel> SpecsSpuInfo { get; set; }
[Navigate(NavigateType.OneToMany, nameof(SkuEntity.SpuId))]
public List<SpuEntity> Spus { get; set; }
}
public class SpecsSpuAllInfoModel
{
public string? SpecsGroupName { get; set; }
public List<string>? SpecsNames{ get;set;}
}
public class SpecsSpuInfoModel
{
public long? SpecsGroupId{ get; set; }
public List<long>? SpecsIds { get; set; }
}
}