回滚main

This commit is contained in:
橙子
2021-11-09 19:51:35 +08:00
parent 08ba7207bb
commit 2d2dd55cc0
20 changed files with 6 additions and 672 deletions

View File

@@ -1,25 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class brand:baseModel<int>
{
[Comment("品牌名称")]
public string name { get; set; }
[Comment("品牌图片")]
public string image { get; set; }
[Comment("品牌首字母")]
public string letter { get; set; }
[Comment("类别")]
public List<category > categories { get; set; }
[Comment("spu")]
public List<spu> spus { get; set; }
}
}

View File

@@ -1,30 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class category:baseModel<int>
{
[Comment("类别名称")]
public string name { get; set; }
[Comment("排序")]
public int sort { get; set; }
[Comment("是否父类别")]
public int is_parent { get; set; }
[Comment("子类别")]
public List<category> chidrens { get; set; }
[Comment("品牌")]
public List<brand> brands { get; set; }
[Comment("spu")]
public List<spu> spus { get; set; }
[Comment("规格组")]
public List<spec_group> spec_Groups { get; set; }
[Comment("规格")]
public List<spec_param> spec_Params { get; set; }
}
}

View File

@@ -1,53 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class order : baseModel<int>
{
[Comment("总金额,单位为分")]
public int total_pay { get; set; }
[Comment("实付金额。单位:分。如:20007表示:200元7分")]
public int actual_pay { get; set; }
[Comment("支付类型1、在线支付2、货到付款")]
public int payment_type { get; set; }
[Comment("邮费。单位:分。如:20007表示:200元7分")]
public int post_fee { get; set; }
[Comment("promotion_ids")]
public string promotion_ids { get; set; }
[Comment("订单创建时间")]
public DateTime creat_time { get; set; }
[Comment("物流名称")]
public string shipping_name { get; set; }
[Comment("物流单号")]
public string shipping_code { get; set; }
[Comment("买家留言")]
public string buyer_message { get; set; }
[Comment("买家昵称")]
public string buyer_nick { get; set; }
[Comment("买家是否已经评价,0未评价1已评价")]
public int buyer_rate { get; set; }
[Comment("收获地址(省)")]
public string receiver_state { get; set; }
[Comment("收获地址(市)")]
public string receiver_city { get; set; }
[Comment("收获地址(区/县)")]
public string receiver_district { get; set; }
[Comment("收获地址(街道、住址等详细地址)")]
public string receiver_address { get; set; }
[Comment("收货人手机")]
public string receiver_mobile { get; set; }
[Comment("收货人邮编")]
public string receiver_zip { get; set; }
[Comment("收货人")]
public string receiver { get; set; }
[Comment("发票类型:0无发票1普通发票2电子发票3增值税发票")]
public int invoice_type { get; set; }
[Comment("订单来源1:app端2pc端3M端4微信端5手机qq端")]
public int source_type { get; set; }
}
}

View File

@@ -1,33 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class sku : baseModel<int>
{
[Comment("商品标题")]
public string title { get; set; }
[Comment("商品的图片,多个图片以‘,’分割")]
public string images { get; set; }
[Comment("销售价格,单位为分")]
public int price { get; set; }
[Comment("特有规格属性在spu属性模板中的对应下标组合")]
public string indexes { get; set; }
[Comment("是否有效0无效1有效")]
public int enable { get; set; }
[Comment("sku的特有规格参数键值对json格式反序列化时请使用linkedHashMap保证有序")]
public string own_spec { get; set; }
[Comment("创建时间")]
public DateTime crate_time { get; set; }
[Comment("最后更新时间")]
public DateTime last_update_time { get; set; }
[Comment("spu")]
public spu spu { get; set; }
[Comment("订单")]
public List<order> orders { get; set; }
}
}

View File

@@ -1,19 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class spec_group : baseModel<int>
{
[Comment("规格组名称")]
public string name { get; set; }
[Comment("类别")]
public category category { get; set; }
[Comment("规格")]
public List<spec_param> spec_Params { get; set; }
}
}

View File

@@ -1,29 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class spec_param:baseModel<int>
{
[Comment("参数名")]
public string name { get; set; }
[Comment("是否是数字类型参数true或false")]
public int numeric { get; set; }
[Comment("数字类型参数的单位,非数字类型可以为空")]
public string unit { get; set; }
[Comment("是否是sku通用属性true或false")]
public int generic { get; set; }
[Comment("是否用于搜索过滤true或false")]
public int searching { get; set; }
[Comment("数值类型参数如果需要搜索则添加分段间隔值如CPU频率间隔0.5-1.0")]
public string segments { get; set; }
[Comment("规格组")]
public spec_group spec_Group { get; set; }
[Comment("类别")]
public category category { get; set; }
}
}

View File

@@ -1,35 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class spu : baseModel<int>
{
[Comment("标题")]
public string title { get; set; }
[Comment("子标题")]
public string sub_title { get; set; }
[Comment("是否上架")]
public int saleable { get; set; }
[Comment("是否有效")]
public int valid { get; set; }
[Comment("创建时间")]
public DateTime crate_time { get; set; }
[Comment("最后更新时间")]
public DateTime last_update_time { get; set; }
[Comment("类别")]
public List<category> categories { get; set; }
[Comment("品牌")]
public brand brand { get; set; }
[Comment("spu详情")]
public spu_detail spu_Detail { get; set; }
[Comment("skus")]
public List<sku> skus { get; set; }
}
}

View File

@@ -1,23 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class spu_detail : baseModel<int>
{
[Comment("描述")]
public string description { get; set; }
[Comment("通用规格参数数据")]
public string generic_spec { get; set; }
[Comment("特有规格参数及可选值信息json格式")]
public string special_spec { get; set; }
[Comment("包装清单")]
public string packing_list { get; set; }
[Comment("售后服务")]
public string after_service { get; set; }
}
}

View File

@@ -1,21 +0,0 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Model.Models
{
public class stock:baseModel<int>
{
[Comment("可秒杀库存")]
public int seckill_stock { get; set; }
[Comment("秒杀总数量")]
public int seckill_total { get; set; }
[Comment("库存数量")]
public int stock_count { get; set; }
[Comment("sku")]
public sku sku { get; set; }
}
}