1. 新增用户状态枚举UserStatusEnum,统一用户状态定义 2. 重构用户体系:合并WxUser与User实体为Users实体,统一用户管理 3. 新增微信小程序认证相关服务与控制器,实现一键登录功能 4. 新增商品管理完整服务与控制器,修复商品表字段映射问题 5. 删除冗余的WxUser相关服务与控制器代码 6. 新增Newtonsoft.Json依赖用于微信接口响应解析 7. 清理无用的文件夹引用配置
81 lines
2.0 KiB
C#
81 lines
2.0 KiB
C#
using SqlSugar;
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Entity
|
|
{
|
|
///<summary>
|
|
///虚拟商品表
|
|
///</summary>
|
|
[SugarTable("Product")]
|
|
public partial class Product : SqlSugarBaseEntity
|
|
{
|
|
public Product(){
|
|
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Desc:商品名称
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public string Name {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:描述
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
public string Description {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:商品图片
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
public string ImageUrl {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:所需积分
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int Price {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:商品类型: MakeUpCard, PetBg
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public string Type {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:售卖状态: OnSale, OffSale
|
|
/// Default:OnSale
|
|
/// Nullable:False
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "SaleStatus")]
|
|
public string SaleStatus {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:扩展数据
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
public string MetaData {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:是否上架
|
|
/// Default:b'1'
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public bool IsActive {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:库存(-1无限)
|
|
/// Default:-1
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int Stock {get;set;}
|
|
}
|
|
}
|