添加项目文件。
This commit is contained in:
parent
53090a69d9
commit
16f9f82db4
30
.dockerignore
Normal file
30
.dockerignore
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
**/.classpath
|
||||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/*.*proj.user
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/azds.yaml
|
||||
**/bin
|
||||
**/charts
|
||||
**/docker-compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
LICENSE
|
||||
README.md
|
||||
!**/.gitignore
|
||||
!.git/HEAD
|
||||
!.git/config
|
||||
!.git/packed-refs
|
||||
!.git/refs/heads/**
|
||||
224
ChouBox.Code/AppExtend/ChouBoxCodeBase.cs
Normal file
224
ChouBox.Code/AppExtend/ChouBoxCodeBase.cs
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
using AutoMapper;
|
||||
|
||||
using ChouBox.Code.TencentCloudExtend.Model;
|
||||
using ChouBox.Model.Entities;
|
||||
|
||||
using HuanMeng.DotNetCore.Base;
|
||||
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
using StackExchange.Redis;
|
||||
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ChouBox.Code.AppExtend;
|
||||
|
||||
/// <summary>
|
||||
/// bll 基础类
|
||||
/// </summary>
|
||||
public class ChouBoxCodeBase
|
||||
{
|
||||
/// <summary>
|
||||
/// _serviceProvider,提供基本依赖注入支持
|
||||
/// </summary>
|
||||
protected readonly IServiceProvider _serviceProvider;
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="serviceProvider"></param>
|
||||
public ChouBoxCodeBase(IServiceProvider serviceProvider)
|
||||
{
|
||||
_serviceProvider = serviceProvider;
|
||||
}
|
||||
|
||||
private EfCoreDaoBase<YoudaContext>? _dao;
|
||||
/// <summary>
|
||||
/// 数据库,
|
||||
/// 更新删除,尽量只操作本bll实例dao获取到的对象,取和存要同一个dao
|
||||
/// </summary>
|
||||
public EfCoreDaoBase<YoudaContext> Dao
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_dao == null)
|
||||
{
|
||||
_dao = new EfCoreDaoBase<YoudaContext>(_serviceProvider.GetRequiredService<YoudaContext>());
|
||||
|
||||
}
|
||||
return _dao;
|
||||
}
|
||||
}
|
||||
|
||||
#region 映射
|
||||
private IMapper _mapper;
|
||||
/// <summary>
|
||||
/// DTO 映射
|
||||
/// </summary>
|
||||
public virtual IMapper Mapper
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_mapper == null)
|
||||
{
|
||||
_mapper = _serviceProvider.GetRequiredService<IMapper>();
|
||||
}
|
||||
return _mapper;
|
||||
}
|
||||
set
|
||||
{
|
||||
_mapper = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 请求信息
|
||||
private IHttpContextAccessor _httpContextAccessor;
|
||||
/// <summary>
|
||||
/// HttpContextAccessor
|
||||
/// </summary>
|
||||
public IHttpContextAccessor HttpContextAccessor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_httpContextAccessor == null)
|
||||
{
|
||||
_httpContextAccessor = _serviceProvider.GetRequiredService<IHttpContextAccessor>();
|
||||
}
|
||||
return _httpContextAccessor;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 日志
|
||||
private ILogger<ChouBoxCodeBase> _logger;
|
||||
/// <summary>
|
||||
/// 日志
|
||||
/// </summary>
|
||||
public ILogger<ChouBoxCodeBase> Logger
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_logger == null)
|
||||
{
|
||||
_logger = _serviceProvider.GetRequiredService<ILogger<ChouBoxCodeBase>>();
|
||||
}
|
||||
return _logger;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
public IConfiguration Configuration()
|
||||
{
|
||||
return _serviceProvider.GetRequiredService<IConfiguration>();
|
||||
}
|
||||
|
||||
#region Redis
|
||||
private IDatabase _redis;
|
||||
/// <summary>
|
||||
/// Redis 缓存
|
||||
/// </summary>
|
||||
public IDatabase RedisCache
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_redis == null)
|
||||
{
|
||||
var connectionMultiplexer = _serviceProvider.GetRequiredService<IConnectionMultiplexer>();
|
||||
_redis = connectionMultiplexer.GetDatabase();
|
||||
}
|
||||
return _redis;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 获取腾讯云短信配置
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<TencentSMSConfig> GetTencentSMSConfigAsync()
|
||||
{
|
||||
var config = await this.GetConfigAsync<TencentSMSConfig>("tencent_sms_config");
|
||||
if (config == null)
|
||||
{
|
||||
config = new TencentSMSConfig()
|
||||
{
|
||||
SecretId = "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6",
|
||||
SecretKey = "",
|
||||
ReqMethod = "POST",
|
||||
Timeout = 30,
|
||||
SmsSdkAppId = "1400923253",
|
||||
SignName = "上海寰梦科技发展",
|
||||
TemplateId = "2209122"
|
||||
|
||||
};
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统配置
|
||||
/// </summary>
|
||||
/// <param name="type">配置关键词</param>
|
||||
/// <returns>配置信息</returns>
|
||||
public Dictionary<string, object> GetConfig(string type)
|
||||
{
|
||||
// 生成缓存键
|
||||
string cacheKey = $"config:{type}";
|
||||
|
||||
// 尝试从缓存获取数据
|
||||
var cachedData = RedisCache.StringGet<Dictionary<string, object>>(cacheKey);
|
||||
if (cachedData != null)
|
||||
{
|
||||
return cachedData;
|
||||
}
|
||||
|
||||
// 从数据库查询
|
||||
var content = Dao.Context.Config.Where(it => it.Key == type).FirstOrDefault();
|
||||
Dictionary<string, object> config = null;
|
||||
|
||||
if (content != null)
|
||||
{
|
||||
|
||||
var d = JsonConvert.DeserializeObject<Dictionary<string, object>>(content.Value);
|
||||
RedisCache.StringSet(cacheKey, content.Value, TimeSpan.FromMinutes(10));
|
||||
return d;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统配置
|
||||
/// </summary>
|
||||
/// <typeparam name="T">实体类</typeparam>
|
||||
/// <param name="type">配置key</param>
|
||||
/// <returns></returns>
|
||||
public async Task<T?> GetConfigAsync<T>(string type) where T : class
|
||||
{
|
||||
// 生成缓存键
|
||||
string cacheKey = $"config:{type}";
|
||||
|
||||
// 尝试从缓存获取数据
|
||||
var cachedData = RedisCache.StringGet<T>(cacheKey);
|
||||
if (cachedData != null)
|
||||
{
|
||||
return cachedData;
|
||||
}
|
||||
// 从数据库查询
|
||||
var content = await Dao.Context.Config.Where(it => it.Key == type).FirstOrDefaultAsync();
|
||||
|
||||
if (content != null && !string.IsNullOrEmpty(content.Value))
|
||||
{
|
||||
var d = JsonConvert.DeserializeObject<T>(content.Value);
|
||||
RedisCache.StringSet(cacheKey, content.Value, TimeSpan.FromMinutes(10));
|
||||
return d;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
24
ChouBox.Code/ChouBox.Code.csproj
Normal file
24
ChouBox.Code/ChouBox.Code.csproj
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="14.0.0" />
|
||||
<PackageReference Include="TencentCloudSDK.Common" Version="3.0.1223" />
|
||||
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1223" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ChouBox.Model\ChouBox.Model.csproj" />
|
||||
<ProjectReference Include="..\Utile\HuanMeng.DotNetCore\HuanMeng.DotNetCore.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="MiddlewareExtend\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
22
ChouBox.Code/Contract/ISendVerificationCode.cs
Normal file
22
ChouBox.Code/Contract/ISendVerificationCode.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ChouBox.Code.Contract;
|
||||
|
||||
/// <summary>
|
||||
/// 发送验证码
|
||||
/// </summary>
|
||||
public interface ISendVerificationCode
|
||||
{
|
||||
/// <summary>
|
||||
/// 发送验证码
|
||||
/// </summary>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="expireTime"></param>
|
||||
/// <returns></returns>
|
||||
public Task<bool> SendVerificationCode(string code, int expireTime);
|
||||
|
||||
}
|
||||
2
ChouBox.Code/GlobalUsings.cs
Normal file
2
ChouBox.Code/GlobalUsings.cs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
global using ChouBox.Code;
|
||||
global using HuanMeng.DotNetCore.Redis;
|
||||
26
ChouBox.Code/Goods/GoodsBLL.cs
Normal file
26
ChouBox.Code/Goods/GoodsBLL.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using ChouBox.Code.AppExtend;
|
||||
using ChouBox.Model.Entities;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Primitives;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
using StackExchange.Redis;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ChouBox.Code.Goods;
|
||||
|
||||
public class GoodsBLL : ChouBoxCodeBase
|
||||
{
|
||||
public GoodsBLL(IServiceProvider serviceProvider) : base(serviceProvider)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BIN
ChouBox.Code/MiddlewareExtend/SignatureVerifyMiddleware.cs
Normal file
BIN
ChouBox.Code/MiddlewareExtend/SignatureVerifyMiddleware.cs
Normal file
Binary file not shown.
|
|
@ -0,0 +1,20 @@
|
|||
using Microsoft.AspNetCore.Builder;
|
||||
|
||||
namespace ChouBox.Code.MiddlewareExtend
|
||||
{
|
||||
/// <summary>
|
||||
/// 签名验证中间件扩展方法
|
||||
/// </summary>
|
||||
public static class SignatureVerifyMiddlewareExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// 使用请求签名验证中间件
|
||||
/// </summary>
|
||||
/// <param name="builder">应用程序构建器</param>
|
||||
/// <returns>应用程序构建器</returns>
|
||||
public static IApplicationBuilder UseSignatureVerify(this IApplicationBuilder builder)
|
||||
{
|
||||
return builder.UseMiddleware<SignatureVerifyMiddleware>();
|
||||
}
|
||||
}
|
||||
}
|
||||
59
ChouBox.Code/Other/SMSBLL.cs
Normal file
59
ChouBox.Code/Other/SMSBLL.cs
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
using AutoMapper;
|
||||
|
||||
using ChouBox.Code.AppExtend;
|
||||
using ChouBox.Code.TencentCloudExtend;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ChouBox.Code.Other;
|
||||
|
||||
/// <summary>
|
||||
/// 发送验证码服务
|
||||
/// </summary>
|
||||
public class SMSBLL : ChouBoxCodeBase
|
||||
{
|
||||
public SMSBLL(IServiceProvider serviceProvider) : base(serviceProvider)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送验证码
|
||||
/// </summary>
|
||||
/// <param name="phone"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="ArgumentNullException"></exception>
|
||||
/// <exception cref="Exception"></exception>
|
||||
public async Task<string> SendPhoneAsync(string phone)
|
||||
{
|
||||
if (string.IsNullOrEmpty(phone))
|
||||
{
|
||||
throw new ArgumentNullException("手机号不能为空");
|
||||
}
|
||||
var smsConfig = await this.GetTencentSMSConfigAsync();
|
||||
if (smsConfig == null)
|
||||
{
|
||||
throw new ArgumentNullException("暂未开放发送验证码!");
|
||||
}
|
||||
Random random = new Random();
|
||||
var verificationCode = random.Next(1000, 9999);
|
||||
var redisKey = $"VerificationCode:{phone}";
|
||||
var redisVerificationCode = RedisCache.StringGet<string>(redisKey);
|
||||
if (redisVerificationCode != null && !string.IsNullOrEmpty(redisVerificationCode))
|
||||
{
|
||||
throw new Exception("验证码已发送!");
|
||||
}
|
||||
|
||||
TencentSMSSendVerificationCode tencentSMSSendVerificationCode = new TencentSMSSendVerificationCode(smsConfig, phone);
|
||||
var result = await tencentSMSSendVerificationCode.SendVerificationCode(verificationCode.ToString(), 5);
|
||||
if (!result)
|
||||
{
|
||||
throw new Exception("验证码发送失败");
|
||||
}
|
||||
await RedisCache.StringSetAsync(redisKey, verificationCode.ToString(), TimeSpan.FromMinutes(5));
|
||||
|
||||
return "验证码已发送";
|
||||
}
|
||||
}
|
||||
22
ChouBox.Code/TencentCloudExtend/Model/TencentBaseConfig.cs
Normal file
22
ChouBox.Code/TencentCloudExtend/Model/TencentBaseConfig.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ChouBox.Code.TencentCloudExtend.Model;
|
||||
|
||||
/// <summary>
|
||||
/// 腾讯云配置
|
||||
/// </summary>
|
||||
public class TencentBaseConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 腾讯云id
|
||||
/// </summary>
|
||||
public string SecretId { get; set; }
|
||||
/// <summary>
|
||||
/// 密钥
|
||||
/// </summary>
|
||||
public string SecretKey { get; set; }
|
||||
}
|
||||
37
ChouBox.Code/TencentCloudExtend/Model/TencentSMSConfig.cs
Normal file
37
ChouBox.Code/TencentCloudExtend/Model/TencentSMSConfig.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ChouBox.Code.TencentCloudExtend.Model;
|
||||
|
||||
/// <summary>
|
||||
/// 模板短信
|
||||
/// </summary>
|
||||
public class TencentSMSConfig : TencentBaseConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 请求方式
|
||||
/// </summary>
|
||||
public string ReqMethod { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 超时时间,秒
|
||||
/// </summary>
|
||||
public int Timeout { get; set; }
|
||||
/// <summary>
|
||||
/// 短信应用ID:
|
||||
/// </summary>
|
||||
public string SmsSdkAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 短信签名内容: 使用 UTF-8 编码,必须填写已审核通过的签名
|
||||
/// </summary>
|
||||
public string SignName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 短信模板Id,必须填写已审核通过的模板
|
||||
/// </summary>
|
||||
public string TemplateId { get; set; }
|
||||
}
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Sms.V20210111;
|
||||
using TencentCloud.Sms.V20210111.Models;
|
||||
using ChouBox.Code.Contract;
|
||||
using ChouBox.Model.Entities;
|
||||
using ChouBox.Code.TencentCloudExtend.Model;
|
||||
|
||||
namespace ChouBox.Code.TencentCloudExtend;
|
||||
|
||||
/// <summary>
|
||||
/// 腾讯云发送短信
|
||||
/// </summary>
|
||||
/// <param name="tencentSMSConfig"></param>
|
||||
public class TencentSMSSendVerificationCode(TencentSMSConfig tencentSMSConfig, string PhoneNum) : ISendVerificationCode
|
||||
{
|
||||
public async Task<bool> SendVerificationCode(string code, int expireTime)
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(code))
|
||||
{
|
||||
throw new ArgumentNullException("参数错误");
|
||||
}
|
||||
string phoneNum = PhoneNum;
|
||||
string verificationCode = code;
|
||||
if (!phoneNum.StartsWith("+86"))
|
||||
{
|
||||
phoneNum = "+86" + phoneNum;
|
||||
}
|
||||
try
|
||||
{
|
||||
// 必要步骤:
|
||||
// 实例化一个认证对象,入参需要传入腾讯云账户密钥对 SecretId,SecretKey。
|
||||
// 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中。
|
||||
// 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。
|
||||
// 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
// SecretId、SecretKey 查询:https://console.cloud.tencent.com/cam/capi
|
||||
Credential cred = new Credential
|
||||
{
|
||||
SecretId = tencentSMSConfig.SecretId,
|
||||
SecretKey = tencentSMSConfig.SecretKey
|
||||
};
|
||||
|
||||
|
||||
/* 非必要步骤:
|
||||
* 实例化一个客户端配置对象,可以指定超时时间等配置 */
|
||||
ClientProfile clientProfile = new ClientProfile();
|
||||
/* SDK默认用TC3-HMAC-SHA256进行签名
|
||||
* 非必要请不要修改这个字段 */
|
||||
clientProfile.SignMethod = ClientProfile.SIGN_TC3SHA256;
|
||||
/* 非必要步骤
|
||||
* 实例化一个客户端配置对象,可以指定超时时间等配置 */
|
||||
HttpProfile httpProfile = new HttpProfile();
|
||||
/* SDK默认使用POST方法。
|
||||
* 如果您一定要使用GET方法,可以在这里设置。GET方法无法处理一些较大的请求 */
|
||||
httpProfile.ReqMethod = tencentSMSConfig.ReqMethod;
|
||||
httpProfile.Timeout = tencentSMSConfig.Timeout; // 请求连接超时时间,单位为秒(默认60秒)
|
||||
/* 指定接入地域域名,默认就近地域接入域名为 sms.tencentcloudapi.com ,也支持指定地域域名访问,例如广州地域的域名为 sms.ap-guangzhou.tencentcloudapi.com */
|
||||
httpProfile.Endpoint = "sms.tencentcloudapi.com";
|
||||
// 代理服务器,当您的环境下有代理服务器时设定(无需要直接忽略)
|
||||
// httpProfile.WebProxy = Environment.GetEnvironmentVariable("HTTPS_PROXY");
|
||||
|
||||
|
||||
clientProfile.HttpProfile = httpProfile;
|
||||
/* 实例化要请求产品(以sms为例)的client对象
|
||||
* 第二个参数是地域信息,可以直接填写字符串ap-guangzhou,支持的地域列表参考 https://cloud.tencent.com/document/api/382/52071#.E5.9C.B0.E5.9F.9F.E5.88.97.E8.A1.A8 */
|
||||
SmsClient client = new SmsClient(cred, "ap-nanjing", clientProfile);
|
||||
|
||||
|
||||
/* 实例化一个请求对象,根据调用的接口和实际情况,可以进一步设置请求参数
|
||||
* 您可以直接查询SDK源码确定SendSmsRequest有哪些属性可以设置
|
||||
* 属性可能是基本类型,也可能引用了另一个数据结构
|
||||
* 推荐使用IDE进行开发,可以方便的跳转查阅各个接口和数据结构的文档说明 */
|
||||
SendSmsRequest req = new SendSmsRequest();
|
||||
|
||||
|
||||
/* 基本类型的设置:
|
||||
* SDK采用的是指针风格指定参数,即使对于基本类型您也需要用指针来对参数赋值。
|
||||
* SDK提供对基本类型的指针引用封装函数
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/smsv2
|
||||
* 腾讯云短信小助手: https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81 */
|
||||
/* 短信应用ID: 短信SdkAppId在 [短信控制台] 添加应用后生成的实际SdkAppId,示例如1400006666 */
|
||||
// 应用 ID 可前往 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 查看
|
||||
req.SmsSdkAppId = tencentSMSConfig.SmsSdkAppId;
|
||||
|
||||
|
||||
/* 短信签名内容: 使用 UTF-8 编码,必须填写已审核通过的签名 */
|
||||
// 签名信息可前往 [国内短信](https://console.cloud.tencent.com/smsv2/csms-sign) 或 [国际/港澳台短信](https://console.cloud.tencent.com/smsv2/isms-sign) 的签名管理查看
|
||||
req.SignName = tencentSMSConfig.SignName;
|
||||
|
||||
|
||||
/* 模板 ID: 必须填写已审核通过的模板 ID */
|
||||
// 模板 ID 可前往 [国内短信](https://console.cloud.tencent.com/smsv2/csms-template) 或 [国际/港澳台短信](https://console.cloud.tencent.com/smsv2/isms-template) 的正文模板管理查看
|
||||
req.TemplateId = tencentSMSConfig.TemplateId;
|
||||
|
||||
|
||||
/* 模板参数: 模板参数的个数需要与 TemplateId 对应模板的变量个数保持一致,若无模板参数,则设置为空 */
|
||||
req.TemplateParamSet = new String[] { verificationCode, expireTime.ToString() };
|
||||
|
||||
|
||||
/* 下发手机号码,采用 E.164 标准,+[国家或地区码][手机号]
|
||||
* 示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号,最多不要超过200个手机号*/
|
||||
req.PhoneNumberSet = new String[] { phoneNum };
|
||||
|
||||
|
||||
/* 用户的 session 内容(无需要可忽略): 可以携带用户侧 ID 等上下文信息,server 会原样返回 */
|
||||
req.SessionContext = "";
|
||||
|
||||
|
||||
/* 短信码号扩展号(无需要可忽略): 默认未开通,如需开通请联系 [腾讯云短信小助手] */
|
||||
req.ExtendCode = "";
|
||||
|
||||
|
||||
/* 国内短信无需填写该项;国际/港澳台短信已申请独立 SenderId 需要填写该字段,默认使用公共 SenderId,无需填写该字段。注:月度使用量达到指定量级可申请独立 SenderId 使用,详情请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。 */
|
||||
req.SenderId = "";
|
||||
|
||||
SendSmsResponse resp = await client.SendSms(req);
|
||||
|
||||
Console.WriteLine(AbstractModel.ToJsonString(resp));
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
Console.WriteLine(e.ToString());
|
||||
return false;
|
||||
}
|
||||
//Console.Read();
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
23
ChouBox.Model/ChouBox.Model.csproj
Normal file
23
ChouBox.Model/ChouBox.Model.csproj
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper" Version="14.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.8">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Entities\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
7
ChouBox.Model/Class1.cs
Normal file
7
ChouBox.Model/Class1.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace ChouBox.Model
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
363
ChouBox.Model/CodeTemplates/EFCore/DbContext.t4
Normal file
363
ChouBox.Model/CodeTemplates/EFCore/DbContext.t4
Normal file
|
|
@ -0,0 +1,363 @@
|
|||
<#@ template hostSpecific="true" #>
|
||||
<#@ assembly name="Microsoft.EntityFrameworkCore" #>
|
||||
<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #>
|
||||
<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #>
|
||||
<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #>
|
||||
<#@ parameter name="Model" type="Microsoft.EntityFrameworkCore.Metadata.IModel" #>
|
||||
<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #>
|
||||
<#@ parameter name="NamespaceHint" type="System.String" #>
|
||||
<#@ import namespace="System.Collections.Generic" #>
|
||||
<#@ import namespace="System.Linq" #>
|
||||
<#@ import namespace="System.Text" #>
|
||||
<#@ import namespace="Microsoft.EntityFrameworkCore" #>
|
||||
<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #>
|
||||
<#@ import namespace="Microsoft.EntityFrameworkCore.Infrastructure" #>
|
||||
<#@ import namespace="Microsoft.EntityFrameworkCore.Scaffolding" #>
|
||||
<#@ import namespace="Microsoft.Extensions.DependencyInjection" #>
|
||||
<#
|
||||
if (!ProductInfo.GetVersion().StartsWith("9.0"))
|
||||
{
|
||||
Warning("Your templates were created using an older version of Entity Framework. Additional features and bug fixes may be available. See https://aka.ms/efcore-docs-updating-templates for more information.");
|
||||
}
|
||||
|
||||
var services = (IServiceProvider)Host;
|
||||
var providerCode = services.GetRequiredService<IProviderConfigurationCodeGenerator>();
|
||||
var annotationCodeGenerator = services.GetRequiredService<IAnnotationCodeGenerator>();
|
||||
var code = services.GetRequiredService<ICSharpHelper>();
|
||||
|
||||
var usings = new List<string>
|
||||
{
|
||||
"System",
|
||||
"System.Collections.Generic",
|
||||
"Microsoft.EntityFrameworkCore"
|
||||
};
|
||||
|
||||
if (NamespaceHint != Options.ModelNamespace
|
||||
&& !string.IsNullOrEmpty(Options.ModelNamespace))
|
||||
{
|
||||
usings.Add(Options.ModelNamespace);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(NamespaceHint))
|
||||
{
|
||||
#>
|
||||
namespace <#= NamespaceHint #>;
|
||||
|
||||
<#
|
||||
}
|
||||
#>
|
||||
public partial class <#= Options.ContextName #> : DbContext
|
||||
{
|
||||
<#
|
||||
if (!Options.SuppressOnConfiguring)
|
||||
{
|
||||
#>
|
||||
public <#= Options.ContextName #>()
|
||||
{
|
||||
}
|
||||
|
||||
<#
|
||||
}
|
||||
#>
|
||||
public <#= Options.ContextName #>(DbContextOptions<<#= Options.ContextName #>> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
<#
|
||||
foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType()))
|
||||
{
|
||||
var comment = entityType.GetComment();
|
||||
var tableName = entityType.GetTableName();
|
||||
|
||||
// 添加XML文档注释
|
||||
#>
|
||||
/// <summary>
|
||||
/// <#= !string.IsNullOrEmpty(comment) ? comment : tableName #>
|
||||
/// </summary>
|
||||
public virtual DbSet<<#= entityType.Name #>> <#= entityType.GetDbSetName() #> { get; set; }
|
||||
|
||||
<#
|
||||
}
|
||||
|
||||
if (!Options.SuppressOnConfiguring)
|
||||
{
|
||||
#>
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
<#
|
||||
if (!Options.SuppressConnectionStringWarning)
|
||||
{
|
||||
#>
|
||||
<#
|
||||
}
|
||||
|
||||
var useProviderCall = providerCode.GenerateUseProvider(Options.ConnectionString);
|
||||
usings.AddRange(useProviderCall.GetRequiredUsings());
|
||||
#>
|
||||
{
|
||||
//optionsBuilder.UseMySql("server=192.168.1.56;database=youda;user=youda;password=youda", Microsoft.EntityFrameworkCore.ServerVersion.Parse("5.7.44-mysql"));
|
||||
}
|
||||
|
||||
<#
|
||||
}
|
||||
|
||||
#>
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
<#
|
||||
var anyConfiguration = false;
|
||||
|
||||
var modelFluentApiCalls = Model.GetFluentApiCalls(annotationCodeGenerator);
|
||||
if (modelFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(modelFluentApiCalls.GetRequiredUsings());
|
||||
#>
|
||||
modelBuilder<#= code.Fragment(modelFluentApiCalls, indent: 3) #>;
|
||||
<#
|
||||
anyConfiguration = true;
|
||||
}
|
||||
|
||||
StringBuilder mainEnvironment;
|
||||
foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType()))
|
||||
{
|
||||
// Save all previously generated code, and start generating into a new temporary environment
|
||||
mainEnvironment = GenerationEnvironment;
|
||||
GenerationEnvironment = new StringBuilder();
|
||||
|
||||
if (anyConfiguration)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
|
||||
var anyEntityTypeConfiguration = false;
|
||||
#>
|
||||
modelBuilder.Entity<<#= entityType.Name #>>(entity =>
|
||||
{
|
||||
<#
|
||||
var key = entityType.FindPrimaryKey();
|
||||
if (key != null)
|
||||
{
|
||||
var keyFluentApiCalls = key.GetFluentApiCalls(annotationCodeGenerator);
|
||||
if (keyFluentApiCalls != null
|
||||
|| (!key.IsHandledByConvention() && !Options.UseDataAnnotations))
|
||||
{
|
||||
if (keyFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(keyFluentApiCalls.GetRequiredUsings());
|
||||
}
|
||||
#>
|
||||
entity.HasKey(<#= code.Lambda(key.Properties, "e") #>)<#= code.Fragment(keyFluentApiCalls, indent: 4) #>;
|
||||
<#
|
||||
anyEntityTypeConfiguration = true;
|
||||
}
|
||||
}
|
||||
|
||||
var entityTypeFluentApiCalls = entityType.GetFluentApiCalls(annotationCodeGenerator)
|
||||
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations));
|
||||
if (entityTypeFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(entityTypeFluentApiCalls.GetRequiredUsings());
|
||||
|
||||
if (anyEntityTypeConfiguration)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
#>
|
||||
entity<#= code.Fragment(entityTypeFluentApiCalls, indent: 4) #>;
|
||||
<#
|
||||
anyEntityTypeConfiguration = true;
|
||||
}
|
||||
|
||||
foreach (var index in entityType.GetIndexes()
|
||||
.Where(i => !(Options.UseDataAnnotations && i.IsHandledByDataAnnotations(annotationCodeGenerator))))
|
||||
{
|
||||
if (anyEntityTypeConfiguration)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
|
||||
var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator);
|
||||
if (indexFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(indexFluentApiCalls.GetRequiredUsings());
|
||||
}
|
||||
#>
|
||||
entity.HasIndex(<#= code.Lambda(index.Properties, "e") #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 4) #>;
|
||||
<#
|
||||
anyEntityTypeConfiguration = true;
|
||||
}
|
||||
|
||||
var firstProperty = true;
|
||||
foreach (var property in entityType.GetProperties())
|
||||
{
|
||||
var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator)
|
||||
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations)
|
||||
&& !(c.Method == "IsRequired" && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType));
|
||||
if (propertyFluentApiCalls == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
usings.AddRange(propertyFluentApiCalls.GetRequiredUsings());
|
||||
|
||||
if (anyEntityTypeConfiguration && firstProperty)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
#>
|
||||
entity.Property(e => e.<#= property.Name #>)<#= code.Fragment(propertyFluentApiCalls, indent: 4) #>;
|
||||
<#
|
||||
anyEntityTypeConfiguration = true;
|
||||
firstProperty = false;
|
||||
}
|
||||
|
||||
foreach (var foreignKey in entityType.GetForeignKeys())
|
||||
{
|
||||
var foreignKeyFluentApiCalls = foreignKey.GetFluentApiCalls(annotationCodeGenerator)
|
||||
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations));
|
||||
if (foreignKeyFluentApiCalls == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
usings.AddRange(foreignKeyFluentApiCalls.GetRequiredUsings());
|
||||
|
||||
if (anyEntityTypeConfiguration)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
#>
|
||||
entity.HasOne(d => d.<#= foreignKey.DependentToPrincipal.Name #>).<#= foreignKey.IsUnique ? "WithOne" : "WithMany" #>(<#= foreignKey.PrincipalToDependent != null ? $"p => p.{foreignKey.PrincipalToDependent.Name}" : "" #>)<#= code.Fragment(foreignKeyFluentApiCalls, indent: 4) #>;
|
||||
<#
|
||||
anyEntityTypeConfiguration = true;
|
||||
}
|
||||
|
||||
foreach (var skipNavigation in entityType.GetSkipNavigations().Where(n => n.IsLeftNavigation()))
|
||||
{
|
||||
if (anyEntityTypeConfiguration)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
|
||||
var left = skipNavigation.ForeignKey;
|
||||
var leftFluentApiCalls = left.GetFluentApiCalls(annotationCodeGenerator, useStrings: true);
|
||||
var right = skipNavigation.Inverse.ForeignKey;
|
||||
var rightFluentApiCalls = right.GetFluentApiCalls(annotationCodeGenerator, useStrings: true);
|
||||
var joinEntityType = skipNavigation.JoinEntityType;
|
||||
|
||||
if (leftFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(leftFluentApiCalls.GetRequiredUsings());
|
||||
}
|
||||
|
||||
if (rightFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(rightFluentApiCalls.GetRequiredUsings());
|
||||
}
|
||||
#>
|
||||
entity.HasMany(d => d.<#= skipNavigation.Name #>).WithMany(p => p.<#= skipNavigation.Inverse.Name #>)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
<#= code.Literal(joinEntityType.Name) #>,
|
||||
r => r.HasOne<<#= right.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(rightFluentApiCalls, indent: 6) #>,
|
||||
l => l.HasOne<<#= left.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(leftFluentApiCalls, indent: 6) #>,
|
||||
j =>
|
||||
{
|
||||
<#
|
||||
var joinKey = joinEntityType.FindPrimaryKey();
|
||||
var joinKeyFluentApiCalls = joinKey.GetFluentApiCalls(annotationCodeGenerator);
|
||||
|
||||
if (joinKeyFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(joinKeyFluentApiCalls.GetRequiredUsings());
|
||||
}
|
||||
#>
|
||||
j.HasKey(<#= code.Arguments(joinKey.Properties.Select(e => e.Name)) #>)<#= code.Fragment(joinKeyFluentApiCalls, indent: 7) #>;
|
||||
<#
|
||||
var joinEntityTypeFluentApiCalls = joinEntityType.GetFluentApiCalls(annotationCodeGenerator);
|
||||
if (joinEntityTypeFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(joinEntityTypeFluentApiCalls.GetRequiredUsings());
|
||||
#>
|
||||
j<#= code.Fragment(joinEntityTypeFluentApiCalls, indent: 7) #>;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var index in joinEntityType.GetIndexes())
|
||||
{
|
||||
var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator);
|
||||
if (indexFluentApiCalls != null)
|
||||
{
|
||||
usings.AddRange(indexFluentApiCalls.GetRequiredUsings());
|
||||
}
|
||||
#>
|
||||
j.HasIndex(<#= code.Literal(index.Properties.Select(e => e.Name).ToArray()) #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 7) #>;
|
||||
<#
|
||||
}
|
||||
|
||||
foreach (var property in joinEntityType.GetProperties())
|
||||
{
|
||||
var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator);
|
||||
if (propertyFluentApiCalls == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
usings.AddRange(propertyFluentApiCalls.GetRequiredUsings());
|
||||
#>
|
||||
j.IndexerProperty<<#= code.Reference(property.ClrType) #>>(<#= code.Literal(property.Name) #>)<#= code.Fragment(propertyFluentApiCalls, indent: 7) #>;
|
||||
<#
|
||||
}
|
||||
#>
|
||||
});
|
||||
<#
|
||||
anyEntityTypeConfiguration = true;
|
||||
}
|
||||
#>
|
||||
});
|
||||
<#
|
||||
// If any signicant code was generated, append it to the main environment
|
||||
if (anyEntityTypeConfiguration)
|
||||
{
|
||||
mainEnvironment.Append(GenerationEnvironment);
|
||||
anyConfiguration = true;
|
||||
}
|
||||
|
||||
// Resume generating code into the main environment
|
||||
GenerationEnvironment = mainEnvironment;
|
||||
}
|
||||
|
||||
foreach (var sequence in Model.GetSequences())
|
||||
{
|
||||
var needsType = sequence.Type != typeof(long);
|
||||
var needsSchema = !string.IsNullOrEmpty(sequence.Schema) && sequence.Schema != sequence.Model.GetDefaultSchema();
|
||||
var sequenceFluentApiCalls = sequence.GetFluentApiCalls(annotationCodeGenerator);
|
||||
#>
|
||||
modelBuilder.HasSequence<#= needsType ? $"<{code.Reference(sequence.Type)}>" : "" #>(<#= code.Literal(sequence.Name) #><#= needsSchema ? $", {code.Literal(sequence.Schema)}" : "" #>)<#= code.Fragment(sequenceFluentApiCalls, indent: 3) #>;
|
||||
<#
|
||||
}
|
||||
|
||||
if (anyConfiguration)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
#>
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
}
|
||||
|
||||
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||
}
|
||||
<#
|
||||
mainEnvironment = GenerationEnvironment;
|
||||
GenerationEnvironment = new StringBuilder();
|
||||
|
||||
foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer()))
|
||||
{
|
||||
#>
|
||||
using <#= ns #>;
|
||||
<#
|
||||
}
|
||||
|
||||
WriteLine("");
|
||||
|
||||
GenerationEnvironment.Append(mainEnvironment);
|
||||
#>
|
||||
173
ChouBox.Model/CodeTemplates/EFCore/EntityType.t4
Normal file
173
ChouBox.Model/CodeTemplates/EFCore/EntityType.t4
Normal file
|
|
@ -0,0 +1,173 @@
|
|||
<#@ template hostSpecific="true" #>
|
||||
<#@ assembly name="Microsoft.EntityFrameworkCore" #>
|
||||
<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #>
|
||||
<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #>
|
||||
<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #>
|
||||
<#@ parameter name="EntityType" type="Microsoft.EntityFrameworkCore.Metadata.IEntityType" #>
|
||||
<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #>
|
||||
<#@ parameter name="NamespaceHint" type="System.String" #>
|
||||
<#@ import namespace="System.Collections.Generic" #>
|
||||
<#@ import namespace="System.ComponentModel.DataAnnotations" #>
|
||||
<#@ import namespace="System.Linq" #>
|
||||
<#@ import namespace="System.Text" #>
|
||||
<#@ import namespace="Microsoft.EntityFrameworkCore" #>
|
||||
<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #>
|
||||
<#@ import namespace="Microsoft.Extensions.DependencyInjection" #>
|
||||
<#
|
||||
if (EntityType.IsSimpleManyToManyJoinEntityType())
|
||||
{
|
||||
// Don't scaffold these
|
||||
return "";
|
||||
}
|
||||
|
||||
var services = (IServiceProvider)Host;
|
||||
var annotationCodeGenerator = services.GetRequiredService<IAnnotationCodeGenerator>();
|
||||
var code = services.GetRequiredService<ICSharpHelper>();
|
||||
|
||||
var usings = new List<string>
|
||||
{
|
||||
"System",
|
||||
"System.Collections.Generic"
|
||||
};
|
||||
|
||||
if (Options.UseDataAnnotations)
|
||||
{
|
||||
usings.Add("System.ComponentModel.DataAnnotations");
|
||||
usings.Add("System.ComponentModel.DataAnnotations.Schema");
|
||||
usings.Add("Microsoft.EntityFrameworkCore");
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(NamespaceHint))
|
||||
{
|
||||
#>
|
||||
namespace <#= NamespaceHint #>;
|
||||
|
||||
<#
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(EntityType.GetComment()))
|
||||
{
|
||||
#>
|
||||
/// <summary>
|
||||
/// <#= code.XmlComment(EntityType.GetComment()) #>
|
||||
/// </summary>
|
||||
<#
|
||||
}
|
||||
|
||||
if (Options.UseDataAnnotations)
|
||||
{
|
||||
foreach (var dataAnnotation in EntityType.GetDataAnnotations(annotationCodeGenerator))
|
||||
{
|
||||
#>
|
||||
<#= code.Fragment(dataAnnotation) #>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
public partial class <#= EntityType.Name #>
|
||||
{
|
||||
<#
|
||||
var firstProperty = true;
|
||||
foreach (var property in EntityType.GetProperties().OrderBy(p => p.GetColumnOrder() ?? -1))
|
||||
{
|
||||
if (!firstProperty)
|
||||
{
|
||||
WriteLine("");
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(property.GetComment()))
|
||||
{
|
||||
#>
|
||||
/// <summary>
|
||||
/// <#= code.XmlComment(property.GetComment(), indent: 1) #>
|
||||
/// </summary>
|
||||
<#
|
||||
}
|
||||
|
||||
if (Options.UseDataAnnotations)
|
||||
{
|
||||
var dataAnnotations = property.GetDataAnnotations(annotationCodeGenerator)
|
||||
.Where(a => !(a.Type == typeof(RequiredAttribute) && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType));
|
||||
foreach (var dataAnnotation in dataAnnotations)
|
||||
{
|
||||
#>
|
||||
<#= code.Fragment(dataAnnotation) #>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
usings.AddRange(code.GetRequiredUsings(property.ClrType));
|
||||
|
||||
var needsNullable = Options.UseNullableReferenceTypes && property.IsNullable && !property.ClrType.IsValueType;
|
||||
var needsInitializer = Options.UseNullableReferenceTypes && !property.IsNullable && !property.ClrType.IsValueType;
|
||||
#>
|
||||
public <#= code.Reference(property.ClrType) #><#= needsNullable ? "?" : "" #> <#= property.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #>
|
||||
<#
|
||||
firstProperty = false;
|
||||
}
|
||||
|
||||
foreach (var navigation in EntityType.GetNavigations())
|
||||
{
|
||||
WriteLine("");
|
||||
|
||||
if (Options.UseDataAnnotations)
|
||||
{
|
||||
foreach (var dataAnnotation in navigation.GetDataAnnotations(annotationCodeGenerator))
|
||||
{
|
||||
#>
|
||||
<#= code.Fragment(dataAnnotation) #>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
var targetType = navigation.TargetEntityType.Name;
|
||||
if (navigation.IsCollection)
|
||||
{
|
||||
#>
|
||||
public virtual ICollection<<#= targetType #>> <#= navigation.Name #> { get; set; } = new List<<#= targetType #>>();
|
||||
<#
|
||||
}
|
||||
else
|
||||
{
|
||||
var needsNullable = Options.UseNullableReferenceTypes && !(navigation.ForeignKey.IsRequired && navigation.IsOnDependent);
|
||||
var needsInitializer = Options.UseNullableReferenceTypes && navigation.ForeignKey.IsRequired && navigation.IsOnDependent;
|
||||
#>
|
||||
public virtual <#= targetType #><#= needsNullable ? "?" : "" #> <#= navigation.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #>
|
||||
<#
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var skipNavigation in EntityType.GetSkipNavigations())
|
||||
{
|
||||
WriteLine("");
|
||||
|
||||
if (Options.UseDataAnnotations)
|
||||
{
|
||||
foreach (var dataAnnotation in skipNavigation.GetDataAnnotations(annotationCodeGenerator))
|
||||
{
|
||||
#>
|
||||
<#= code.Fragment(dataAnnotation) #>
|
||||
<#
|
||||
}
|
||||
}
|
||||
#>
|
||||
public virtual ICollection<<#= skipNavigation.TargetEntityType.Name #>> <#= skipNavigation.Name #> { get; set; } = new List<<#= skipNavigation.TargetEntityType.Name #>>();
|
||||
<#
|
||||
}
|
||||
#>
|
||||
}
|
||||
<#
|
||||
var previousOutput = GenerationEnvironment;
|
||||
GenerationEnvironment = new StringBuilder();
|
||||
|
||||
foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer()))
|
||||
{
|
||||
#>
|
||||
using <#= ns #>;
|
||||
<#
|
||||
}
|
||||
|
||||
WriteLine("");
|
||||
|
||||
GenerationEnvironment.Append(previousOutput);
|
||||
#>
|
||||
64
ChouBox.Model/Entities/Admin.cs
Normal file
64
ChouBox.Model/Entities/Admin.cs
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 管理员
|
||||
/// </summary>
|
||||
public partial class Admin
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账号
|
||||
/// </summary>
|
||||
public string? Username { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 姓名
|
||||
/// </summary>
|
||||
public string Nickname { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 登录密码
|
||||
/// </summary>
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权限ID
|
||||
/// </summary>
|
||||
public uint? Qid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0正常 1禁用
|
||||
/// </summary>
|
||||
public uint? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录刷新时间
|
||||
/// </summary>
|
||||
public uint GetTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// token随机数
|
||||
/// </summary>
|
||||
public string Random { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// token
|
||||
/// </summary>
|
||||
public string? Token { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人
|
||||
/// </summary>
|
||||
public uint AdminId { get; set; }
|
||||
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
}
|
||||
35
ChouBox.Model/Entities/AdminGoodsLog.cs
Normal file
35
ChouBox.Model/Entities/AdminGoodsLog.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 管理员登录日志
|
||||
/// </summary>
|
||||
public partial class AdminGoodsLog
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 管理员ID
|
||||
/// </summary>
|
||||
public int AId { get; set; }
|
||||
|
||||
public int? GoodsId { get; set; }
|
||||
|
||||
public int? GoodsListId { get; set; }
|
||||
|
||||
public string? OriginalData { get; set; }
|
||||
|
||||
public string? NewData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录ip
|
||||
/// </summary>
|
||||
public string Ip { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 登录时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
27
ChouBox.Model/Entities/AdminLoginLog.cs
Normal file
27
ChouBox.Model/Entities/AdminLoginLog.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 管理员登录日志
|
||||
/// </summary>
|
||||
public partial class AdminLoginLog
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 管理员ID
|
||||
/// </summary>
|
||||
public int AId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录ip
|
||||
/// </summary>
|
||||
public string Ip { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 登录时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
34
ChouBox.Model/Entities/AdminOperationLog.cs
Normal file
34
ChouBox.Model/Entities/AdminOperationLog.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 管理员操作日志
|
||||
/// </summary>
|
||||
public partial class AdminOperationLog
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 管理员ID
|
||||
/// </summary>
|
||||
public int AId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作ip
|
||||
/// </summary>
|
||||
public string Ip { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 操作控制器
|
||||
/// </summary>
|
||||
public string? Operation { get; set; }
|
||||
|
||||
public string? Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
27
ChouBox.Model/Entities/AdminQuanxian.cs
Normal file
27
ChouBox.Model/Entities/AdminQuanxian.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 权限
|
||||
/// </summary>
|
||||
public partial class AdminQuanxian
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string? Title { get; set; }
|
||||
|
||||
public string? Describe { get; set; }
|
||||
|
||||
public string? Quanxian { get; set; }
|
||||
|
||||
public int? Addtime { get; set; }
|
||||
|
||||
public int? UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人
|
||||
/// </summary>
|
||||
public int? AdminId { get; set; }
|
||||
}
|
||||
31
ChouBox.Model/Entities/Ads.cs
Normal file
31
ChouBox.Model/Entities/Ads.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Ads
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号
|
||||
/// </summary>
|
||||
public int? Ads1 { get; set; }
|
||||
|
||||
public string? Title { get; set; }
|
||||
|
||||
public string? AccountId { get; set; }
|
||||
|
||||
public string? AccessToken { get; set; }
|
||||
|
||||
public string? UserActionSetId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1.正常 2.已禁用
|
||||
/// </summary>
|
||||
public int? Status { get; set; }
|
||||
|
||||
public string? CreateTime { get; set; }
|
||||
|
||||
public string? UpdateTime { get; set; }
|
||||
}
|
||||
54
ChouBox.Model/Entities/Advert.cs
Normal file
54
ChouBox.Model/Entities/Advert.cs
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Advert
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片
|
||||
/// </summary>
|
||||
public string Imgurl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 跳转路径
|
||||
/// </summary>
|
||||
public string? Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public uint Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型 1首页轮播图 2抽卡机轮播图
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 跳转类型 0不跳转 1优惠券 2一番赏 3无限赏
|
||||
/// </summary>
|
||||
public byte? Ttype { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券id
|
||||
/// </summary>
|
||||
public uint? CouponId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子id
|
||||
/// </summary>
|
||||
public uint? GoodsId { get; set; }
|
||||
}
|
||||
13
ChouBox.Model/Entities/AdvertType.cs
Normal file
13
ChouBox.Model/Entities/AdvertType.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class AdvertType
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
public int? Sort { get; set; }
|
||||
}
|
||||
29
ChouBox.Model/Entities/CardLevel.cs
Normal file
29
ChouBox.Model/Entities/CardLevel.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class CardLevel
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 卡名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 等级图片
|
||||
/// </summary>
|
||||
public string? Imgurl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public int? Addtime { get; set; }
|
||||
}
|
||||
32
ChouBox.Model/Entities/Category.cs
Normal file
32
ChouBox.Model/Entities/Category.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子分类
|
||||
/// </summary>
|
||||
public partial class Category
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public uint Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
}
|
||||
40
ChouBox.Model/Entities/Code.cs
Normal file
40
ChouBox.Model/Entities/Code.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 短信记录
|
||||
/// </summary>
|
||||
public partial class Code
|
||||
{
|
||||
/// <summary>
|
||||
/// 验证码id
|
||||
/// </summary>
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手机号
|
||||
/// </summary>
|
||||
public string Phone { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 验证码
|
||||
/// </summary>
|
||||
public string Code1 { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public int Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型,1 登录注册
|
||||
/// </summary>
|
||||
public bool Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0正常,-1失效
|
||||
/// </summary>
|
||||
public bool Status { get; set; }
|
||||
}
|
||||
34
ChouBox.Model/Entities/Collect.cs
Normal file
34
ChouBox.Model/Entities/Collect.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Collect
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子ID
|
||||
/// </summary>
|
||||
public uint GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱号
|
||||
/// </summary>
|
||||
public uint Num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1一番赏 2无限赏 3擂台赏 4抽卡机 5积分赏 6全局赏 7福利盲盒 8领主赏 9连击赏
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
13
ChouBox.Model/Entities/Config.cs
Normal file
13
ChouBox.Model/Entities/Config.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Config
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Key { get; set; } = null!;
|
||||
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
57
ChouBox.Model/Entities/Coupon.cs
Normal file
57
ChouBox.Model/Entities/Coupon.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券表
|
||||
/// </summary>
|
||||
public partial class Coupon
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1新人优惠券 2权益优惠卷
|
||||
/// </summary>
|
||||
public byte? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 排序值
|
||||
/// </summary>
|
||||
public uint? Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 减多少
|
||||
/// </summary>
|
||||
public decimal? Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 满多少减多少
|
||||
/// </summary>
|
||||
public decimal? ManPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效时间(天)
|
||||
/// </summary>
|
||||
public int? EffectiveDay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0上架 2下架 4已删除
|
||||
/// </summary>
|
||||
public bool Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否限制使用 0不限制 1一番赏 2无限赏 3擂台赏 6全局赏 9领主赏 9连击赏
|
||||
/// </summary>
|
||||
public byte? Ttype { get; set; }
|
||||
}
|
||||
56
ChouBox.Model/Entities/CouponReceive.cs
Normal file
56
ChouBox.Model/Entities/CouponReceive.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户优惠券表
|
||||
/// </summary>
|
||||
public partial class CouponReceive
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品价格
|
||||
/// </summary>
|
||||
public decimal? Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 满多少减多少
|
||||
/// </summary>
|
||||
public decimal? ManPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过期时间
|
||||
/// </summary>
|
||||
public int? EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0未使用1已使用2已过期
|
||||
/// </summary>
|
||||
public bool Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 会员id
|
||||
/// </summary>
|
||||
public int? UserId { get; set; }
|
||||
|
||||
public int? CouponId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否限制使用 0不限制 1一番赏 2无限赏 3擂台赏 6全局赏 9领主赏 9连击赏
|
||||
/// </summary>
|
||||
public byte? State { get; set; }
|
||||
|
||||
public int Ttype { get; set; }
|
||||
}
|
||||
37
ChouBox.Model/Entities/Danye.cs
Normal file
37
ChouBox.Model/Entities/Danye.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Danye
|
||||
{
|
||||
/// <summary>
|
||||
/// 类型,1服务协议,2隐私政策
|
||||
/// </summary>
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 内容
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0正常 1隐藏
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启图片优化
|
||||
/// </summary>
|
||||
public sbyte IsImageOptimizer { get; set; }
|
||||
}
|
||||
22
ChouBox.Model/Entities/Delivery.cs
Normal file
22
ChouBox.Model/Entities/Delivery.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 快递公司
|
||||
/// </summary>
|
||||
public partial class Delivery
|
||||
{
|
||||
public ushort Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 快递公司
|
||||
/// </summary>
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 快递编码
|
||||
/// </summary>
|
||||
public string Code { get; set; } = null!;
|
||||
}
|
||||
15
ChouBox.Model/Entities/ErrorLog.cs
Normal file
15
ChouBox.Model/Entities/ErrorLog.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class ErrorLog
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
}
|
||||
105
ChouBox.Model/Entities/FloatBallConfig.cs
Normal file
105
ChouBox.Model/Entities/FloatBallConfig.cs
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 悬浮球配置表
|
||||
/// </summary>
|
||||
public partial class FloatBallConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0=关闭 1=开启
|
||||
/// </summary>
|
||||
public bool Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型 1=展示图片 2=跳转页面
|
||||
/// </summary>
|
||||
public bool? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片路径
|
||||
/// </summary>
|
||||
public string Image { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 跳转链接
|
||||
/// </summary>
|
||||
public string LinkUrl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// X坐标位置
|
||||
/// </summary>
|
||||
public string PositionX { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Y坐标位置
|
||||
/// </summary>
|
||||
public string PositionY { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 宽度
|
||||
/// </summary>
|
||||
public string Width { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 高度
|
||||
/// </summary>
|
||||
public string Height { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 特效 0=无 1=特效1
|
||||
/// </summary>
|
||||
public bool Effect { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public int CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public int UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 展示的图片
|
||||
/// </summary>
|
||||
public string? ImageDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 背景图
|
||||
/// </summary>
|
||||
public string? ImageBj { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 详情图坐标
|
||||
/// </summary>
|
||||
public string? ImageDetailsX { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 详情图y
|
||||
/// </summary>
|
||||
public string? ImageDetailsY { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 宽度
|
||||
/// </summary>
|
||||
public string? ImageDetailsW { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 高度
|
||||
/// </summary>
|
||||
public string? ImageDetailsH { get; set; }
|
||||
}
|
||||
28
ChouBox.Model/Entities/Give.cs
Normal file
28
ChouBox.Model/Entities/Give.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 无限令领取记录
|
||||
/// </summary>
|
||||
public partial class Give
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 会员id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
public string? TimeInt { get; set; }
|
||||
|
||||
public string? TimeDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
299
ChouBox.Model/Entities/Goods.cs
Normal file
299
ChouBox.Model/Entities/Goods.cs
Normal file
|
|
@ -0,0 +1,299 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子
|
||||
/// </summary>
|
||||
public partial class Goods
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
public uint CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子封面图
|
||||
/// </summary>
|
||||
public string Imgurl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子详情图
|
||||
/// </summary>
|
||||
public string ImgurlDetail { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品价格
|
||||
/// </summary>
|
||||
public decimal? Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 套数
|
||||
/// </summary>
|
||||
public uint? Stock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销量库存
|
||||
/// </summary>
|
||||
public uint SaleStock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 锁箱 0否 1是
|
||||
/// </summary>
|
||||
public byte LockIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 锁箱时间
|
||||
/// </summary>
|
||||
public uint LockTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发券开关0关闭 1开启
|
||||
/// </summary>
|
||||
public byte CouponIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发券概率
|
||||
/// </summary>
|
||||
public uint CouponPro { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发积分开关0关闭 1开启
|
||||
/// </summary>
|
||||
public byte IntegralIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 擂台赏抽全局赏数量
|
||||
/// </summary>
|
||||
public uint PrizeNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1上架 2下架 3售罄
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序值
|
||||
/// </summary>
|
||||
public uint? Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1一番赏 2无限赏 3擂台赏 4抽卡机 5积分赏 6全局赏 7福利盲盒 8领主赏 9连击赏
|
||||
/// </summary>
|
||||
public byte? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 首页显示 0是 1否
|
||||
/// </summary>
|
||||
public byte ShowIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 卡册显示价格
|
||||
/// </summary>
|
||||
public string? ShowPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽卡机卡牌背面图
|
||||
/// </summary>
|
||||
public string? PrizeImgurl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 卡册banner
|
||||
/// </summary>
|
||||
public string? CardBanner { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽卡机抽奖设置
|
||||
/// </summary>
|
||||
public string? CardSet { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽卡机描述
|
||||
/// </summary>
|
||||
public string? CardNotice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预售时间
|
||||
/// </summary>
|
||||
public uint SaleTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
|
||||
public int? DeleteTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 一包几张
|
||||
/// </summary>
|
||||
public int? CardNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 怒气值开关 0关 1开
|
||||
/// </summary>
|
||||
public byte? RageIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 怒气值
|
||||
/// </summary>
|
||||
public uint? Rage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 道具卡ID
|
||||
/// </summary>
|
||||
public uint? ItemCardId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 领主开关 0关 1开
|
||||
/// </summary>
|
||||
public bool? LingzhuIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 领主每发返
|
||||
/// </summary>
|
||||
public int? LingzhuFan { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 请选择抽中领主
|
||||
/// </summary>
|
||||
public int? LingzhuShangId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前领主
|
||||
/// </summary>
|
||||
public int? KingUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连击赏连击次数
|
||||
/// </summary>
|
||||
public int? LianJiNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连击赏赏id
|
||||
/// </summary>
|
||||
public int? LianJiShangId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否首抽五折 1是 0否
|
||||
/// </summary>
|
||||
public byte? IsShouZhe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最新开关0关闭 1开启
|
||||
/// </summary>
|
||||
public byte NewIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string? GoodsDescribe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 全局赏限购次数
|
||||
/// </summary>
|
||||
public int? QuanjuXiangou { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要的流水
|
||||
/// </summary>
|
||||
public decimal DayPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 月总流水
|
||||
/// </summary>
|
||||
public decimal MouthPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 月实付
|
||||
/// </summary>
|
||||
public decimal MouthPayPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日实付
|
||||
/// </summary>
|
||||
public decimal DayPayPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 多少级之下能买
|
||||
/// </summary>
|
||||
public int UserLv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否福利屋
|
||||
/// </summary>
|
||||
public int IsFlw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 福利屋开始时间
|
||||
/// </summary>
|
||||
public int FlwStartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 福利屋结束时间
|
||||
/// </summary>
|
||||
public int FlwEndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开奖时间
|
||||
/// </summary>
|
||||
public int OpenTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0未开奖 1已开奖
|
||||
/// </summary>
|
||||
public int IsOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽奖门槛
|
||||
/// </summary>
|
||||
public int ChoujiangXianzhi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 同步编码,guid
|
||||
/// </summary>
|
||||
public string? AsyncCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后一次同步时间
|
||||
/// </summary>
|
||||
public DateTime? AsyncDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否自动下架
|
||||
/// </summary>
|
||||
public sbyte IsAutoXiajia { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下架利润率
|
||||
/// </summary>
|
||||
public int XiajiaLirun { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下架生效抽数
|
||||
/// </summary>
|
||||
public int XiajiaAutoCoushu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费多少额度解锁盒子
|
||||
/// </summary>
|
||||
public decimal UnlockAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 每日限购次数
|
||||
/// </summary>
|
||||
public int DailyXiangou { get; set; }
|
||||
}
|
||||
50
ChouBox.Model/Entities/GoodsExtend.cs
Normal file
50
ChouBox.Model/Entities/GoodsExtend.cs
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子扩展表
|
||||
/// </summary>
|
||||
public partial class GoodsExtend
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品Id
|
||||
/// </summary>
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信支付
|
||||
/// </summary>
|
||||
public bool? PayWechat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 余额支付
|
||||
/// </summary>
|
||||
public bool? PayBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货币支付
|
||||
/// </summary>
|
||||
public bool? PayCurrency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货币2支付
|
||||
/// </summary>
|
||||
public bool? PayCurrency2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券支付
|
||||
/// </summary>
|
||||
public bool? PayCoupon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否抵扣 1:抵扣 0:支付
|
||||
/// </summary>
|
||||
public bool? IsDeduction { get; set; }
|
||||
}
|
||||
42
ChouBox.Model/Entities/GoodsExtendList.cs
Normal file
42
ChouBox.Model/Entities/GoodsExtendList.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class GoodsExtendList
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品Id
|
||||
/// </summary>
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盲盒id
|
||||
/// </summary>
|
||||
public int GoodsListId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最低抽奖次数
|
||||
/// </summary>
|
||||
public int RewardNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品编号
|
||||
/// </summary>
|
||||
public string PrizeCode { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 1,默认最低抽奖次数,2指定多少抽出,3指定范围内必出,4:指定用户
|
||||
/// </summary>
|
||||
public int RawrdType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最低抽奖次数
|
||||
/// </summary>
|
||||
public int? RewardNum1 { get; set; }
|
||||
}
|
||||
43
ChouBox.Model/Entities/GoodsKingRank.cs
Normal file
43
ChouBox.Model/Entities/GoodsKingRank.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 无限赏领主
|
||||
/// </summary>
|
||||
public partial class GoodsKingRank
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public uint UserId { get; set; }
|
||||
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 多少发升级为领主
|
||||
/// </summary>
|
||||
public int? Count { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 占领了多少发
|
||||
/// </summary>
|
||||
public uint? ZNums { get; set; }
|
||||
|
||||
public decimal? Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品ID
|
||||
/// </summary>
|
||||
public int? OrderListId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
public int? Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
public int? EndTime { get; set; }
|
||||
}
|
||||
156
ChouBox.Model/Entities/GoodsList.cs
Normal file
156
ChouBox.Model/Entities/GoodsList.cs
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子奖品
|
||||
/// </summary>
|
||||
public partial class GoodsList
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盲盒id 0无限令 -1周榜 -2月榜
|
||||
/// </summary>
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 第几套
|
||||
/// </summary>
|
||||
public uint Num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 奖品图片
|
||||
/// </summary>
|
||||
public string Imgurl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 库存
|
||||
/// </summary>
|
||||
public uint Stock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 剩余库存
|
||||
/// </summary>
|
||||
public uint SurplusStock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品价值
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品兑换价
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 市场参考价
|
||||
/// </summary>
|
||||
public decimal? ScMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 真实概率
|
||||
/// </summary>
|
||||
public decimal RealPro { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1现货 2预售
|
||||
/// </summary>
|
||||
public byte GoodsType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预售时间
|
||||
/// </summary>
|
||||
public uint SaleTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public uint Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 赏ID
|
||||
/// </summary>
|
||||
public int? ShangId { get; set; }
|
||||
|
||||
public uint RewardNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 榜单排名
|
||||
/// </summary>
|
||||
public uint Rank { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费阀值
|
||||
/// </summary>
|
||||
public uint GiveMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽卡机特殊库存
|
||||
/// </summary>
|
||||
public int SpecialStock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品赠送编号
|
||||
/// </summary>
|
||||
public string? CardNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品编号
|
||||
/// </summary>
|
||||
public string? PrizeCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public int? Addtime { get; set; }
|
||||
|
||||
public uint UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 擂台赏抽全局赏数量
|
||||
/// </summary>
|
||||
public int? PrizeNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 7抽奖券的奖品
|
||||
/// </summary>
|
||||
public bool? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连击赏奖池分类 1秘宝池 0否
|
||||
/// </summary>
|
||||
public bool? LianJiType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发放奖励id
|
||||
/// </summary>
|
||||
public string? RewardId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品详情图
|
||||
/// </summary>
|
||||
public string? ImgurlDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 倍率
|
||||
/// </summary>
|
||||
public int Doubling { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父节点id
|
||||
/// </summary>
|
||||
public int GoodsListId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为领主
|
||||
/// </summary>
|
||||
public bool IsLingzhu { get; set; }
|
||||
}
|
||||
29
ChouBox.Model/Entities/GoodsLock.cs
Normal file
29
ChouBox.Model/Entities/GoodsLock.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子锁箱信息
|
||||
/// </summary>
|
||||
public partial class GoodsLock
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子id_num
|
||||
/// </summary>
|
||||
public string GoodsIdNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 过期时间
|
||||
/// </summary>
|
||||
public uint Endtime { get; set; }
|
||||
|
||||
public uint UpdateTime { get; set; }
|
||||
}
|
||||
42
ChouBox.Model/Entities/GoodsOffshelfLog.cs
Normal file
42
ChouBox.Model/Entities/GoodsOffshelfLog.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 盒子自动下架日志表
|
||||
/// </summary>
|
||||
public partial class GoodsOffshelfLog
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子ID
|
||||
/// </summary>
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前利润率
|
||||
/// </summary>
|
||||
public decimal ProfitRate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 配置的下架利润阈值
|
||||
/// </summary>
|
||||
public decimal XiajiaLirun { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单总价值
|
||||
/// </summary>
|
||||
public decimal OrderTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出货总价值
|
||||
/// </summary>
|
||||
public decimal GoodsTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下架时间
|
||||
/// </summary>
|
||||
public int CreateTime { get; set; }
|
||||
}
|
||||
82
ChouBox.Model/Entities/GoodsType.cs
Normal file
82
ChouBox.Model/Entities/GoodsType.cs
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class GoodsType
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// key
|
||||
/// </summary>
|
||||
public int Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序字段
|
||||
/// </summary>
|
||||
public int SortOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否首页显示
|
||||
/// </summary>
|
||||
public bool IsShow { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信支付
|
||||
/// </summary>
|
||||
public bool? PayWechat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 余额支付
|
||||
/// </summary>
|
||||
public bool? PayBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货币支付
|
||||
/// </summary>
|
||||
public bool? PayCurrency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货币2支付
|
||||
/// </summary>
|
||||
public bool? PayCurrency2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券支付
|
||||
/// </summary>
|
||||
public bool? PayCoupon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否抵扣 1:抵扣 0:支付
|
||||
/// </summary>
|
||||
public bool? IsDeduction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否显示在分类中
|
||||
/// </summary>
|
||||
public sbyte IsFenlei { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类名称
|
||||
/// </summary>
|
||||
public string FlName { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 角标文字
|
||||
/// </summary>
|
||||
public string? CornerText { get; set; }
|
||||
}
|
||||
39
ChouBox.Model/Entities/ItemCard.cs
Normal file
39
ChouBox.Model/Entities/ItemCard.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 道具卡
|
||||
/// </summary>
|
||||
public partial class ItemCard
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1重抽卡
|
||||
/// </summary>
|
||||
public byte? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 排序值
|
||||
/// </summary>
|
||||
public uint? Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1正常 2下架 3删除
|
||||
/// </summary>
|
||||
public bool? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
}
|
||||
79
ChouBox.Model/Entities/KkOrder.cs
Normal file
79
ChouBox.Model/Entities/KkOrder.cs
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 发货订单表
|
||||
/// </summary>
|
||||
public partial class KkOrder
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 会员id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
/// </summary>
|
||||
public string OrderNo { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品总金额
|
||||
/// </summary>
|
||||
public decimal TotalPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实付金额
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 余额抵扣
|
||||
/// </summary>
|
||||
public decimal? Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Woo币抵扣
|
||||
/// </summary>
|
||||
public decimal? Integral { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运费金额
|
||||
/// </summary>
|
||||
public decimal FreightPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0待付款 1待发货 2待收货 3确认收货
|
||||
/// </summary>
|
||||
public bool Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 留言
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付时间
|
||||
/// </summary>
|
||||
public uint PayTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货时间
|
||||
/// </summary>
|
||||
public uint DeliverTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货时间
|
||||
/// </summary>
|
||||
public uint ConfirmTime { get; set; }
|
||||
|
||||
public int? UpdateTime { get; set; }
|
||||
}
|
||||
67
ChouBox.Model/Entities/KkOrderGood.cs
Normal file
67
ChouBox.Model/Entities/KkOrderGood.cs
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 订单商品
|
||||
/// </summary>
|
||||
public partial class KkOrderGood
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 会员id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单id
|
||||
/// </summary>
|
||||
public uint OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品id
|
||||
/// </summary>
|
||||
public uint GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
public string GoodsName { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品主图
|
||||
/// </summary>
|
||||
public string GoodsImage { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品规格id
|
||||
/// </summary>
|
||||
public uint GoodsSpecId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品规格
|
||||
/// </summary>
|
||||
public string GoodsSpec { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品售价
|
||||
/// </summary>
|
||||
public decimal GoodsPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品秒杀价
|
||||
/// </summary>
|
||||
public decimal GoodsSeckillPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public uint GoodsNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
54
ChouBox.Model/Entities/KkOrderSend.cs
Normal file
54
ChouBox.Model/Entities/KkOrderSend.cs
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 发货订单地址物流信息
|
||||
/// </summary>
|
||||
public partial class KkOrderSend
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 会员id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单ID
|
||||
/// </summary>
|
||||
public uint OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货人姓名
|
||||
/// </summary>
|
||||
public string? ShouName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货人手机号
|
||||
/// </summary>
|
||||
public string? ShouMobile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所在地区 省/市/区(名称)
|
||||
/// </summary>
|
||||
public string? ShouRegion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 详细地址
|
||||
/// </summary>
|
||||
public string? Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物流名称
|
||||
/// </summary>
|
||||
public string? DeliveryName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物流单号
|
||||
/// </summary>
|
||||
public string? DeliveryNo { get; set; }
|
||||
|
||||
public int? UpdateTime { get; set; }
|
||||
}
|
||||
82
ChouBox.Model/Entities/KkProduct.cs
Normal file
82
ChouBox.Model/Entities/KkProduct.cs
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 商品表
|
||||
/// </summary>
|
||||
public partial class KkProduct
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 秒杀时间段id
|
||||
/// </summary>
|
||||
public uint SeckillId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类父级id
|
||||
/// </summary>
|
||||
public uint CateId1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类子级id
|
||||
/// </summary>
|
||||
public uint CateId2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品主图
|
||||
/// </summary>
|
||||
public string Image { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 详情图
|
||||
/// </summary>
|
||||
public string DetailImage { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品详情
|
||||
/// </summary>
|
||||
public string? Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运费
|
||||
/// </summary>
|
||||
public decimal Freight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销量
|
||||
/// </summary>
|
||||
public uint SaleNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品排序
|
||||
/// </summary>
|
||||
public uint Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0上架 1下架
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规格信息
|
||||
/// </summary>
|
||||
public string? SpecData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
}
|
||||
47
ChouBox.Model/Entities/KkProductCate.cs
Normal file
47
ChouBox.Model/Entities/KkProductCate.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 商品分类
|
||||
/// </summary>
|
||||
public partial class KkProductCate
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类标题
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 分类图片
|
||||
/// </summary>
|
||||
public string? Imgurl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序值
|
||||
/// </summary>
|
||||
public uint? Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1 正常 2 删除
|
||||
/// </summary>
|
||||
public byte? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上级id
|
||||
/// </summary>
|
||||
public int? Pid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 英文标题
|
||||
/// </summary>
|
||||
public string? Title2 { get; set; }
|
||||
}
|
||||
47
ChouBox.Model/Entities/KkProductCategory.cs
Normal file
47
ChouBox.Model/Entities/KkProductCategory.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 普通商城商品分类
|
||||
/// </summary>
|
||||
public partial class KkProductCategory
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级id
|
||||
/// </summary>
|
||||
public uint Pid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 分类图片
|
||||
/// </summary>
|
||||
public string Imgurl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 1显示 0隐藏
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0
|
||||
/// </summary>
|
||||
public uint Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
}
|
||||
52
ChouBox.Model/Entities/KkProductSpec.cs
Normal file
52
ChouBox.Model/Entities/KkProductSpec.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 商品规格
|
||||
/// </summary>
|
||||
public partial class KkProductSpec
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品id
|
||||
/// </summary>
|
||||
public int ProId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 售价
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 秒杀价
|
||||
/// </summary>
|
||||
public decimal SeckillPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 库存
|
||||
/// </summary>
|
||||
public uint Stock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片
|
||||
/// </summary>
|
||||
public string? Pic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标识
|
||||
/// </summary>
|
||||
public string? Ks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Time { get; set; }
|
||||
}
|
||||
32
ChouBox.Model/Entities/KkSeckill.cs
Normal file
32
ChouBox.Model/Entities/KkSeckill.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 秒杀设置
|
||||
/// </summary>
|
||||
public partial class KkSeckill
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 秒杀时间段
|
||||
/// </summary>
|
||||
public string SeckillTime { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品限购数量
|
||||
/// </summary>
|
||||
public uint GoodsNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
}
|
||||
32
ChouBox.Model/Entities/KkShare.cs
Normal file
32
ChouBox.Model/Entities/KkShare.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 商品分享记录表
|
||||
/// </summary>
|
||||
public partial class KkShare
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 点击人ID
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品id
|
||||
/// </summary>
|
||||
public uint GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分享用户id
|
||||
/// </summary>
|
||||
public uint ShareUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
42
ChouBox.Model/Entities/Market.cs
Normal file
42
ChouBox.Model/Entities/Market.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 集市
|
||||
/// </summary>
|
||||
public partial class Market
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 挂售单号
|
||||
/// </summary>
|
||||
public string OrderNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 价格
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// id字符串
|
||||
/// </summary>
|
||||
public string OrderListIds { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 0在售 1已售 2已撤回
|
||||
/// </summary>
|
||||
public byte? Status { get; set; }
|
||||
|
||||
public byte Stock { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int UpdateTime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
61
ChouBox.Model/Entities/MarketOrder.cs
Normal file
61
ChouBox.Model/Entities/MarketOrder.cs
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 集市订单
|
||||
/// </summary>
|
||||
public partial class MarketOrder
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int MarketId { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 挂售单号
|
||||
/// </summary>
|
||||
public string OrderNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 价格
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// id字符串
|
||||
/// </summary>
|
||||
public string OrderListIds { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 1未支付 2已支付 3卡单
|
||||
/// </summary>
|
||||
public byte? Status { get; set; }
|
||||
|
||||
public int? PayTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总价
|
||||
/// </summary>
|
||||
public decimal Total { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实际支付
|
||||
/// </summary>
|
||||
public decimal TotalPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付了多少市集余额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int UpdateTime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
|
||||
public byte ZdfhIs { get; set; }
|
||||
}
|
||||
17
ChouBox.Model/Entities/Migrations.cs
Normal file
17
ChouBox.Model/Entities/Migrations.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Migrations
|
||||
{
|
||||
public long Version { get; set; }
|
||||
|
||||
public string? MigrationName { get; set; }
|
||||
|
||||
public DateTime? StartTime { get; set; }
|
||||
|
||||
public DateTime? EndTime { get; set; }
|
||||
|
||||
public bool Breakpoint { get; set; }
|
||||
}
|
||||
15
ChouBox.Model/Entities/NotifyLog.cs
Normal file
15
ChouBox.Model/Entities/NotifyLog.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class NotifyLog
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string OrderNo { get; set; } = null!;
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public string? Xml { get; set; }
|
||||
}
|
||||
176
ChouBox.Model/Entities/Order.cs
Normal file
176
ChouBox.Model/Entities/Order.cs
Normal file
|
|
@ -0,0 +1,176 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 订单表
|
||||
/// </summary>
|
||||
public partial class Order
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
/// </summary>
|
||||
public string OrderNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 订单总金额
|
||||
/// </summary>
|
||||
public decimal OrderTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单折扣金额
|
||||
/// </summary>
|
||||
public decimal OrderZheTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信支付
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 钻石支付
|
||||
/// </summary>
|
||||
public decimal UseMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// UU币支付
|
||||
/// </summary>
|
||||
public decimal UseIntegral { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 积分抵扣,未使用
|
||||
/// </summary>
|
||||
public decimal UseScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽奖券抵扣
|
||||
/// </summary>
|
||||
public int? UseDraw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 道具卡抵扣 (使用的数量)
|
||||
/// </summary>
|
||||
public int? UseItemCard { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 折扣
|
||||
/// </summary>
|
||||
public decimal Zhe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子id
|
||||
/// </summary>
|
||||
public uint GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 第几套
|
||||
/// </summary>
|
||||
public uint Num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子单价
|
||||
/// </summary>
|
||||
public decimal GoodsPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子标题
|
||||
/// </summary>
|
||||
public string? GoodsTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子图片
|
||||
/// </summary>
|
||||
public string? GoodsImgurl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽奖数量
|
||||
/// </summary>
|
||||
public uint PrizeNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽卡机必出设置
|
||||
/// </summary>
|
||||
public string? PrizeCardSet { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0未支付 1支付
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下单时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 付款时间
|
||||
/// </summary>
|
||||
public uint PayTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1微信 2支付宝
|
||||
/// </summary>
|
||||
public byte PayType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子类型
|
||||
/// </summary>
|
||||
public byte OrderType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1卡单
|
||||
/// </summary>
|
||||
public byte KdIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券id
|
||||
/// </summary>
|
||||
public int? CouponId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券抵扣
|
||||
/// </summary>
|
||||
public decimal? UseCoupon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连击赏下 是否是抽的秘宝池 1是 0否
|
||||
/// </summary>
|
||||
public bool? IsMibao { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否首抽五折
|
||||
/// </summary>
|
||||
public bool? IsShouZhe { get; set; }
|
||||
|
||||
public byte ZdfhIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 广告id
|
||||
/// </summary>
|
||||
public int? AdId { get; set; }
|
||||
|
||||
public int? ClickId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否为福利屋
|
||||
/// </summary>
|
||||
public int IsFlw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自动发货时间
|
||||
/// </summary>
|
||||
public int? ZdfhTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 达达卷支付
|
||||
/// </summary>
|
||||
public decimal UseMoney2 { get; set; }
|
||||
}
|
||||
159
ChouBox.Model/Entities/OrderList.cs
Normal file
159
ChouBox.Model/Entities/OrderList.cs
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 订单明细
|
||||
/// </summary>
|
||||
public partial class OrderList
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单id
|
||||
/// </summary>
|
||||
public uint OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 回收订单
|
||||
/// </summary>
|
||||
public string? RecoveryNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货订单号
|
||||
/// </summary>
|
||||
public string? SendNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0待选择 1回收 2选择发货 3发布集市
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子ID
|
||||
/// </summary>
|
||||
public int? GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 第几箱
|
||||
/// </summary>
|
||||
public uint Num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 赏ID
|
||||
/// </summary>
|
||||
public uint ShangId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品id
|
||||
/// </summary>
|
||||
public uint GoodslistId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品名称
|
||||
/// </summary>
|
||||
public string? GoodslistTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品封面图
|
||||
/// </summary>
|
||||
public string? GoodslistImgurl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品价值
|
||||
/// </summary>
|
||||
public decimal GoodslistPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品回收
|
||||
/// </summary>
|
||||
public decimal GoodslistMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1现货 2预售,3货币,4 宝箱
|
||||
/// </summary>
|
||||
public byte GoodslistType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预售时间
|
||||
/// </summary>
|
||||
public uint GoodslistSaleTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 选择发货/回收时间
|
||||
/// </summary>
|
||||
public uint ChoiceTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 保险柜0否 1是
|
||||
/// </summary>
|
||||
public byte InsuranceIs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盒子类型
|
||||
/// </summary>
|
||||
public byte OrderType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 特殊奖品中奖订单id
|
||||
/// </summary>
|
||||
public uint OrderListId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽奖序号
|
||||
/// </summary>
|
||||
public uint LuckNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品code
|
||||
/// </summary>
|
||||
public string? PrizeCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否使用重抽卡 0否 1是
|
||||
/// </summary>
|
||||
public bool? IsChong { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1抽奖 2集市购买
|
||||
/// </summary>
|
||||
public byte? Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货状态,1已发货,2未发货
|
||||
/// </summary>
|
||||
public int FhStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货备注
|
||||
/// </summary>
|
||||
public string? FhRemarks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抽奖倍率
|
||||
/// </summary>
|
||||
public int Doubling { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属宝箱id
|
||||
/// </summary>
|
||||
public int ParentGoodsListId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是领主奖品
|
||||
/// </summary>
|
||||
public sbyte IsLingzhu { get; set; }
|
||||
}
|
||||
34
ChouBox.Model/Entities/OrderListRecovery.cs
Normal file
34
ChouBox.Model/Entities/OrderListRecovery.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 打包记录
|
||||
/// </summary>
|
||||
public partial class OrderListRecovery
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打包订单号
|
||||
/// </summary>
|
||||
public string RecoveryNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 打包金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打包数量
|
||||
/// </summary>
|
||||
public uint Count { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打包时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
117
ChouBox.Model/Entities/OrderListSend.cs
Normal file
117
ChouBox.Model/Entities/OrderListSend.cs
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 发货记录
|
||||
/// </summary>
|
||||
public partial class OrderListSend
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货订单号
|
||||
/// </summary>
|
||||
public string SendNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 运费
|
||||
/// </summary>
|
||||
public decimal Freight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0待支付 1待发货 2待收货 3已完成 4后台取消
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货数量
|
||||
/// </summary>
|
||||
public uint Count { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货人姓名
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货人电话
|
||||
/// </summary>
|
||||
public string? Mobile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货地址
|
||||
/// </summary>
|
||||
public string? Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 快递单号
|
||||
/// </summary>
|
||||
public string? CourierNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 快递名称
|
||||
/// </summary>
|
||||
public string? CourierName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 快递code
|
||||
/// </summary>
|
||||
public string? CourierCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物流轨迹信息
|
||||
/// </summary>
|
||||
public string? DeliveryList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物流状态
|
||||
/// </summary>
|
||||
public bool? DeliveryStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物流请求时间
|
||||
/// </summary>
|
||||
public uint DeliveryTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 下单时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付时间
|
||||
/// </summary>
|
||||
public uint PayTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货时间
|
||||
/// </summary>
|
||||
public uint SendTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货时间
|
||||
/// </summary>
|
||||
public uint ShouTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 取消时间
|
||||
/// </summary>
|
||||
public uint CancelTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 管理员id
|
||||
/// </summary>
|
||||
public uint AdminId { get; set; }
|
||||
}
|
||||
25
ChouBox.Model/Entities/Picture.cs
Normal file
25
ChouBox.Model/Entities/Picture.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Picture
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public string Imgurl { get; set; } = null!;
|
||||
|
||||
public string Token { get; set; } = null!;
|
||||
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1 正常 2 删除
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 存储位置 1=本地 2= 阿里云
|
||||
/// </summary>
|
||||
public bool? Type { get; set; }
|
||||
}
|
||||
49
ChouBox.Model/Entities/ProfitDraw.cs
Normal file
49
ChouBox.Model/Entities/ProfitDraw.cs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 财务明细
|
||||
/// </summary>
|
||||
public partial class ProfitDraw
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化的金额
|
||||
/// </summary>
|
||||
public decimal ChangeMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化后的金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1后台充值 2在线充值 3抽赏消费 4背包回收 5推荐奖励
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源ID
|
||||
/// </summary>
|
||||
public uint ShareUid { get; set; }
|
||||
|
||||
public string? Other { get; set; }
|
||||
}
|
||||
45
ChouBox.Model/Entities/ProfitExpenses.cs
Normal file
45
ChouBox.Model/Entities/ProfitExpenses.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 利润支出表
|
||||
/// </summary>
|
||||
public partial class ProfitExpenses
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支出类型
|
||||
/// </summary>
|
||||
public int ExpenseType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支出金额
|
||||
/// </summary>
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账单日期
|
||||
/// </summary>
|
||||
public DateOnly ProfitDate { get; set; }
|
||||
}
|
||||
49
ChouBox.Model/Entities/ProfitIntegral.cs
Normal file
49
ChouBox.Model/Entities/ProfitIntegral.cs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 财务明细
|
||||
/// </summary>
|
||||
public partial class ProfitIntegral
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化的金额
|
||||
/// </summary>
|
||||
public decimal ChangeMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化后的金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1后台充值 2抽赏消费 3开券获得 4领主返币 5分享欧气券
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源ID
|
||||
/// </summary>
|
||||
public uint ShareUid { get; set; }
|
||||
|
||||
public string? Other { get; set; }
|
||||
}
|
||||
49
ChouBox.Model/Entities/ProfitMoney.cs
Normal file
49
ChouBox.Model/Entities/ProfitMoney.cs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 财务明细
|
||||
/// </summary>
|
||||
public partial class ProfitMoney
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化的金额
|
||||
/// </summary>
|
||||
public decimal ChangeMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化后的金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1后台充值 2在线充值 3抽赏消费 4背包回收 5推荐奖励
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源ID
|
||||
/// </summary>
|
||||
public uint ShareUid { get; set; }
|
||||
|
||||
public string? Other { get; set; }
|
||||
}
|
||||
49
ChouBox.Model/Entities/ProfitMoney2.cs
Normal file
49
ChouBox.Model/Entities/ProfitMoney2.cs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 财务明细
|
||||
/// </summary>
|
||||
public partial class ProfitMoney2
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化的金额
|
||||
/// </summary>
|
||||
public decimal ChangeMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化后的金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1后台充值 2在线充值 3市集消费 4市集售卖 5提现 6提现驳回 7提现手续费
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源ID
|
||||
/// </summary>
|
||||
public uint ShareUid { get; set; }
|
||||
|
||||
public string? Other { get; set; }
|
||||
}
|
||||
44
ChouBox.Model/Entities/ProfitOuQi.cs
Normal file
44
ChouBox.Model/Entities/ProfitOuQi.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 欧气值明细
|
||||
/// </summary>
|
||||
public partial class ProfitOuQi
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化的金额
|
||||
/// </summary>
|
||||
public decimal ChangeMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化后的金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1完成任务 2消费赠送 3升级清空 4升级后多出
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
public string? Other { get; set; }
|
||||
}
|
||||
42
ChouBox.Model/Entities/ProfitPay.cs
Normal file
42
ChouBox.Model/Entities/ProfitPay.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// (微信/支付宝)支付
|
||||
/// </summary>
|
||||
public partial class ProfitPay
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
/// </summary>
|
||||
public string OrderNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 变化的金额
|
||||
/// </summary>
|
||||
public decimal ChangeMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 1微信 2支付宝
|
||||
/// </summary>
|
||||
public byte PayType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
}
|
||||
55
ChouBox.Model/Entities/ProfitRevenue.cs
Normal file
55
ChouBox.Model/Entities/ProfitRevenue.cs
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 利润收入表
|
||||
/// </summary>
|
||||
public partial class ProfitRevenue
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收入类型
|
||||
/// </summary>
|
||||
public int ExpenseType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收入金额
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发放货币
|
||||
/// </summary>
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账单日期
|
||||
/// </summary>
|
||||
public DateOnly ProfitDate { get; set; }
|
||||
}
|
||||
49
ChouBox.Model/Entities/ProfitScore.cs
Normal file
49
ChouBox.Model/Entities/ProfitScore.cs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 财务明细
|
||||
/// </summary>
|
||||
public partial class ProfitScore
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化的金额
|
||||
/// </summary>
|
||||
public decimal ChangeMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变化后的金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1后台充值 2抽赏消费 3升级获得 4抽赏奖励
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Content { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 来源ID
|
||||
/// </summary>
|
||||
public uint ShareUid { get; set; }
|
||||
|
||||
public string? Other { get; set; }
|
||||
}
|
||||
27
ChouBox.Model/Entities/QuanYiLevel.cs
Normal file
27
ChouBox.Model/Entities/QuanYiLevel.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 权益等级表
|
||||
/// </summary>
|
||||
public partial class QuanYiLevel
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int Level { get; set; }
|
||||
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 需要多少欧气值
|
||||
/// </summary>
|
||||
public int Number { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
83
ChouBox.Model/Entities/QuanYiLevelJiang.cs
Normal file
83
ChouBox.Model/Entities/QuanYiLevelJiang.cs
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 权益中心等级奖品
|
||||
/// </summary>
|
||||
public partial class QuanYiLevelJiang
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int QyLevelId { get; set; }
|
||||
|
||||
public int? QyLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1普通降临(优惠券) 2高级奖励(奖品)
|
||||
/// </summary>
|
||||
public bool Type { get; set; }
|
||||
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 减多少
|
||||
/// </summary>
|
||||
public decimal? JianPrice { get; set; }
|
||||
|
||||
public uint? CouponId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 满多少
|
||||
/// </summary>
|
||||
public decimal? ManPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 概率
|
||||
/// </summary>
|
||||
public decimal? Probability { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效时间(天)
|
||||
/// </summary>
|
||||
public int? EffectiveDay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券赠送多少
|
||||
/// </summary>
|
||||
public uint? ZNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品图片
|
||||
/// </summary>
|
||||
public string? Imgurl { get; set; }
|
||||
|
||||
public int? ShangId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品价值
|
||||
/// </summary>
|
||||
public decimal? JiangPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品兑换价
|
||||
/// </summary>
|
||||
public decimal? Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 市场参考价
|
||||
/// </summary>
|
||||
public decimal? ScMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品编号
|
||||
/// </summary>
|
||||
public string? PrizeCode { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
46
ChouBox.Model/Entities/RankMonth.cs
Normal file
46
ChouBox.Model/Entities/RankMonth.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 排行榜月榜
|
||||
/// </summary>
|
||||
public partial class RankMonth
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排名
|
||||
/// </summary>
|
||||
public uint Rank { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 统计范围
|
||||
/// </summary>
|
||||
public string MonthTime { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品ID
|
||||
/// </summary>
|
||||
public uint OrderListId { get; set; }
|
||||
|
||||
public string? PrizeTitle { get; set; }
|
||||
|
||||
public string? PrizeImgurl { get; set; }
|
||||
}
|
||||
46
ChouBox.Model/Entities/RankWeek.cs
Normal file
46
ChouBox.Model/Entities/RankWeek.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 排行榜周榜
|
||||
/// </summary>
|
||||
public partial class RankWeek
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排名
|
||||
/// </summary>
|
||||
public uint Rank { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 统计范围
|
||||
/// </summary>
|
||||
public string WeekTime { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品ID
|
||||
/// </summary>
|
||||
public uint OrderListId { get; set; }
|
||||
|
||||
public string? PrizeTitle { get; set; }
|
||||
|
||||
public string? PrizeImgurl { get; set; }
|
||||
}
|
||||
41
ChouBox.Model/Entities/Reward.cs
Normal file
41
ChouBox.Model/Entities/Reward.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 奖励表
|
||||
/// </summary>
|
||||
public partial class Reward
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖励类型(1:钻石,2:货币1,3:货币2,4:优惠券)
|
||||
/// </summary>
|
||||
public int RewardType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖励ID(当reward_type=1时为优惠券ID)
|
||||
/// </summary>
|
||||
public int? RewardExtend { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖励值
|
||||
/// </summary>
|
||||
public decimal RewardValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖励描述
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
public int? CreateTime { get; set; }
|
||||
|
||||
public int? UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联表id
|
||||
/// </summary>
|
||||
public string RewardId { get; set; } = null!;
|
||||
}
|
||||
25
ChouBox.Model/Entities/Shang.cs
Normal file
25
ChouBox.Model/Entities/Shang.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Shang
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
public decimal Pro { get; set; }
|
||||
|
||||
public string? Imgurl { get; set; }
|
||||
|
||||
public string? Color { get; set; }
|
||||
|
||||
public uint GoodsId { get; set; }
|
||||
|
||||
public string? SpecialImgurl { get; set; }
|
||||
|
||||
public uint Sort { get; set; }
|
||||
|
||||
public uint? UpdateTime { get; set; }
|
||||
}
|
||||
56
ChouBox.Model/Entities/SignConfig.cs
Normal file
56
ChouBox.Model/Entities/SignConfig.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 签到配置表
|
||||
/// </summary>
|
||||
public partial class SignConfig
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 配置类型(1:累计签到配置,2:每日签到配置)
|
||||
/// </summary>
|
||||
public bool Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指定星期几(type=2时有效,1-7代表周一到周日)
|
||||
/// </summary>
|
||||
public bool? Day { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 配置标题
|
||||
/// </summary>
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public string? Icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态(0禁用,1启用)
|
||||
/// </summary>
|
||||
public bool? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int? Sort { get; set; }
|
||||
|
||||
public int? CreateTime { get; set; }
|
||||
|
||||
public int? UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖励id
|
||||
/// </summary>
|
||||
public string RewardId { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
53
ChouBox.Model/Entities/TaskList.cs
Normal file
53
ChouBox.Model/Entities/TaskList.cs
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 任务表
|
||||
/// </summary>
|
||||
public partial class TaskList
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 1每日任务 2每周任务
|
||||
/// </summary>
|
||||
public bool Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务分类 1邀请好友注册 2抽赏任务
|
||||
/// </summary>
|
||||
public bool Cate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是重要任务 1是 0否
|
||||
/// </summary>
|
||||
public bool? IsImportant { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要完成任务几次
|
||||
/// </summary>
|
||||
public int? Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 赠送多少欧气值
|
||||
/// </summary>
|
||||
public uint? ZNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public uint? Sort { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
133
ChouBox.Model/Entities/User.cs
Normal file
133
ChouBox.Model/Entities/User.cs
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class User
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信openid
|
||||
/// </summary>
|
||||
public string Openid { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 手机号
|
||||
/// </summary>
|
||||
public string? Mobile { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 昵称
|
||||
/// </summary>
|
||||
public string Nickname { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 头像
|
||||
/// </summary>
|
||||
public string Headimg { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 父级id
|
||||
/// </summary>
|
||||
public uint Pid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 余额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 集市余额
|
||||
/// </summary>
|
||||
public decimal? Money2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 幸运币
|
||||
/// </summary>
|
||||
public decimal Integral { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 积分
|
||||
/// </summary>
|
||||
public decimal Score { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 欧气值
|
||||
/// </summary>
|
||||
public uint? OuQi { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 欧气值等级
|
||||
/// </summary>
|
||||
public uint? OuQiLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// vip等级
|
||||
/// </summary>
|
||||
public byte Vip { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分享海报
|
||||
/// </summary>
|
||||
public string? ShareImage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态:1正常,2禁用
|
||||
/// </summary>
|
||||
public bool? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后操作时间
|
||||
/// </summary>
|
||||
public uint LastLoginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券的数量
|
||||
/// </summary>
|
||||
public int? DrawNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0未领取1已领取
|
||||
/// </summary>
|
||||
public sbyte? IsUseCoupon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连击赏秘宝池抽奖次数
|
||||
/// </summary>
|
||||
public uint? MbNumber { get; set; }
|
||||
|
||||
public int? ClickId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户唯一id
|
||||
/// </summary>
|
||||
public string? Unionid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公众号openid
|
||||
/// </summary>
|
||||
public string? GzhOpenid { get; set; }
|
||||
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否测试账号
|
||||
/// </summary>
|
||||
public int Istest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一编号
|
||||
/// </summary>
|
||||
public string Uid { get; set; } = null!;
|
||||
}
|
||||
44
ChouBox.Model/Entities/UserAccount.cs
Normal file
44
ChouBox.Model/Entities/UserAccount.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class UserAccount
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登陆秘钥
|
||||
/// </summary>
|
||||
public string AccountToken { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 秘钥随机数
|
||||
/// </summary>
|
||||
public string TokenNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 秘钥时间戳
|
||||
/// </summary>
|
||||
public uint TokenTime { get; set; }
|
||||
|
||||
public uint LastLoginTime { get; set; }
|
||||
|
||||
public string LastLoginIp { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// ip
|
||||
/// </summary>
|
||||
public string? LastLoginIp1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ip邮编
|
||||
/// </summary>
|
||||
public string? IpAdcode { get; set; }
|
||||
|
||||
public string? IpProvince { get; set; }
|
||||
|
||||
public string? IpCity { get; set; }
|
||||
}
|
||||
94
ChouBox.Model/Entities/UserCoupon.cs
Normal file
94
ChouBox.Model/Entities/UserCoupon.cs
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 欧气劵
|
||||
/// </summary>
|
||||
public partial class UserCoupon
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户的id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1特级赏券 2终极赏券 3高级赏券 4普通赏券
|
||||
/// </summary>
|
||||
public uint? Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开奖总金额
|
||||
/// </summary>
|
||||
public uint Num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 领取多少
|
||||
/// </summary>
|
||||
public decimal? LNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1未分享 2已分享 3已领取 4被消耗融合
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1下单赠送 2领取 3融合得到
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 劵名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 来源id (订单、领取)
|
||||
/// </summary>
|
||||
public string FromId { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 分享时间
|
||||
/// </summary>
|
||||
public int? ShareTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
public int? Updatetime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自己可以获得多少
|
||||
/// </summary>
|
||||
public decimal? Own { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自己可以获得多少
|
||||
/// </summary>
|
||||
public decimal? Own2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 其他人可以获得多少
|
||||
/// </summary>
|
||||
public decimal? Other { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 其他人可以获得多少
|
||||
/// </summary>
|
||||
public decimal? Other2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最多可参与人数
|
||||
/// </summary>
|
||||
public uint? KlNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最多可参与人数
|
||||
/// </summary>
|
||||
public uint? KlNum2 { get; set; }
|
||||
}
|
||||
27
ChouBox.Model/Entities/UserGoodsLianJi.cs
Normal file
27
ChouBox.Model/Entities/UserGoodsLianJi.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户连击赏连击次数
|
||||
/// </summary>
|
||||
public partial class UserGoodsLianJi
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连击次数
|
||||
/// </summary>
|
||||
public uint Number { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
42
ChouBox.Model/Entities/UserItemCard.cs
Normal file
42
ChouBox.Model/Entities/UserItemCard.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户的道具卡
|
||||
/// </summary>
|
||||
public partial class UserItemCard
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
public byte? Type { get; set; }
|
||||
|
||||
public int ItemCardId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 1未使用 2已使用
|
||||
/// </summary>
|
||||
public bool? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 抵扣的订单ID
|
||||
/// </summary>
|
||||
public int? OrderId { get; set; }
|
||||
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
29
ChouBox.Model/Entities/UserLoginIp.cs
Normal file
29
ChouBox.Model/Entities/UserLoginIp.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class UserLoginIp
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public uint UserId { get; set; }
|
||||
|
||||
public uint LastLoginTime { get; set; }
|
||||
|
||||
public string LastLoginIp { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// ip
|
||||
/// </summary>
|
||||
public string? LastLoginIp1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ip邮编
|
||||
/// </summary>
|
||||
public string? IpAdcode { get; set; }
|
||||
|
||||
public string? IpProvince { get; set; }
|
||||
|
||||
public string? IpCity { get; set; }
|
||||
}
|
||||
60
ChouBox.Model/Entities/UserLoginLog.cs
Normal file
60
ChouBox.Model/Entities/UserLoginLog.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户登录记录表
|
||||
/// </summary>
|
||||
public partial class UserLoginLog
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录日期
|
||||
/// </summary>
|
||||
public DateOnly LoginDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录时间戳
|
||||
/// </summary>
|
||||
public uint LoginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录设备
|
||||
/// </summary>
|
||||
public string? Device { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录IP
|
||||
/// </summary>
|
||||
public string? Ip { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录地点
|
||||
/// </summary>
|
||||
public string? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 年份
|
||||
/// </summary>
|
||||
public uint Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 月份
|
||||
/// </summary>
|
||||
public uint Month { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 周数
|
||||
/// </summary>
|
||||
public uint Week { get; set; }
|
||||
}
|
||||
65
ChouBox.Model/Entities/UserPosterCache.cs
Normal file
65
ChouBox.Model/Entities/UserPosterCache.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户海报COS存储记录
|
||||
/// </summary>
|
||||
public partial class UserPosterCache
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键ID
|
||||
/// </summary>
|
||||
public ulong Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public long UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 微信APPID
|
||||
/// </summary>
|
||||
public string AppId { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 模板内容哈希值
|
||||
/// </summary>
|
||||
public string TemplateHash { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// COS访问URL
|
||||
/// </summary>
|
||||
public string CosUrl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 文件大小(字节)
|
||||
/// </summary>
|
||||
public uint? FileSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 文件类型
|
||||
/// </summary>
|
||||
public string? MimeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态(1-有效 0-无效)
|
||||
/// </summary>
|
||||
public bool? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过期时间
|
||||
/// </summary>
|
||||
public DateTime? ExpiresAt { get; set; }
|
||||
}
|
||||
87
ChouBox.Model/Entities/UserQuanYiLevelJiang.cs
Normal file
87
ChouBox.Model/Entities/UserQuanYiLevelJiang.cs
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户领取的权益中心等级奖品
|
||||
/// </summary>
|
||||
public partial class UserQuanYiLevelJiang
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int? UserId { get; set; }
|
||||
|
||||
public int QyLevelId { get; set; }
|
||||
|
||||
public int? QyLevel { get; set; }
|
||||
|
||||
public uint? CouponId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1普通降临(优惠券) 2高级奖励(奖品)
|
||||
/// </summary>
|
||||
public bool Type { get; set; }
|
||||
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 减多少
|
||||
/// </summary>
|
||||
public decimal? JianPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 满多少
|
||||
/// </summary>
|
||||
public decimal? ManPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 有效时间(天)
|
||||
/// </summary>
|
||||
public int? EffectiveDay { get; set; }
|
||||
|
||||
public int? EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 优惠券赠送多少
|
||||
/// </summary>
|
||||
public uint? ZNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品图片
|
||||
/// </summary>
|
||||
public string? Imgurl { get; set; }
|
||||
|
||||
public int? ShangId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品价值
|
||||
/// </summary>
|
||||
public decimal? JiangPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品兑换价
|
||||
/// </summary>
|
||||
public decimal? Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 市场参考价
|
||||
/// </summary>
|
||||
public decimal? ScMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 奖品编号
|
||||
/// </summary>
|
||||
public string? PrizeCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 概率
|
||||
/// </summary>
|
||||
public decimal? Probability { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
27
ChouBox.Model/Entities/UserRage.cs
Normal file
27
ChouBox.Model/Entities/UserRage.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户的怒气值
|
||||
/// </summary>
|
||||
public partial class UserRage
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 怒气值
|
||||
/// </summary>
|
||||
public int Rage { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
42
ChouBox.Model/Entities/UserRecharge.cs
Normal file
42
ChouBox.Model/Entities/UserRecharge.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户充值表
|
||||
/// </summary>
|
||||
public partial class UserRecharge
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
/// </summary>
|
||||
public string OrderNum { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 充值金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1待支付 2已完成
|
||||
/// </summary>
|
||||
public byte Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建订单时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付时间
|
||||
/// </summary>
|
||||
public uint PayTime { get; set; }
|
||||
}
|
||||
65
ChouBox.Model/Entities/UserSign.cs
Normal file
65
ChouBox.Model/Entities/UserSign.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户签到表
|
||||
/// </summary>
|
||||
public partial class UserSign
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键id
|
||||
/// </summary>
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户id
|
||||
/// </summary>
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签到日期
|
||||
/// </summary>
|
||||
public string SignDate { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 签到当月天数
|
||||
/// </summary>
|
||||
public byte SignDay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连续签到天数
|
||||
/// </summary>
|
||||
public uint Days { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签到月份
|
||||
/// </summary>
|
||||
public int? Month { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签到年份
|
||||
/// </summary>
|
||||
public int? Year { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签到数量
|
||||
/// </summary>
|
||||
public int Num { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签到时间
|
||||
/// </summary>
|
||||
public uint CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 月签到还是累计签到
|
||||
/// </summary>
|
||||
public sbyte SignType { get; set; }
|
||||
}
|
||||
110
ChouBox.Model/Entities/UserStatistics.cs
Normal file
110
ChouBox.Model/Entities/UserStatistics.cs
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户统计表
|
||||
/// </summary>
|
||||
public partial class UserStatistics
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录人数
|
||||
/// </summary>
|
||||
public int? LoginCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 注册人数
|
||||
/// </summary>
|
||||
public int? RegisterCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录日期
|
||||
/// </summary>
|
||||
public DateOnly RecordDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 充值金额
|
||||
/// </summary>
|
||||
public decimal RechargeAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录当天消费的用户人数(去重)
|
||||
/// </summary>
|
||||
public int ConsumeUserCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录当天用户使用余额消费的总金额(单位:元)。
|
||||
/// </summary>
|
||||
public decimal BalanceConsume { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录当天系统发放给用户的余额总金额
|
||||
/// </summary>
|
||||
public decimal BalanceIssue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付的订单笔数
|
||||
/// </summary>
|
||||
public int ConsumeOrderCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消费rmb人数
|
||||
/// </summary>
|
||||
public int ConsumeRmbCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 今日总收入
|
||||
/// </summary>
|
||||
public decimal RechargeSum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出货价值
|
||||
/// </summary>
|
||||
public decimal ShipmentMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发货价值
|
||||
/// </summary>
|
||||
public decimal SendMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 回收价值
|
||||
/// </summary>
|
||||
public decimal RecycleMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 利润率
|
||||
/// </summary>
|
||||
public decimal ProfitMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总支出
|
||||
/// </summary>
|
||||
public decimal AllShipmentMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总收入
|
||||
/// </summary>
|
||||
public decimal AllRecycleMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总利润
|
||||
/// </summary>
|
||||
public decimal AllMoney { get; set; }
|
||||
}
|
||||
47
ChouBox.Model/Entities/UserTaskList.cs
Normal file
47
ChouBox.Model/Entities/UserTaskList.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 用户完成任务记录表
|
||||
/// </summary>
|
||||
public partial class UserTaskList
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
public int TaskListId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1每日任务 2每周任务
|
||||
/// </summary>
|
||||
public bool Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务分类 1邀请好友注册 2抽赏任务
|
||||
/// </summary>
|
||||
public bool Cate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否是重要任务 1是 0否
|
||||
/// </summary>
|
||||
public bool? IsImportant { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 需要完成任务几次
|
||||
/// </summary>
|
||||
public int? Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 赠送多少欧气值
|
||||
/// </summary>
|
||||
public uint? ZNumber { get; set; }
|
||||
|
||||
public int Addtime { get; set; }
|
||||
|
||||
public int Updatetime { get; set; }
|
||||
|
||||
public int? Deltime { get; set; }
|
||||
}
|
||||
42
ChouBox.Model/Entities/UserVip.cs
Normal file
42
ChouBox.Model/Entities/UserVip.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 会员vip
|
||||
/// </summary>
|
||||
public partial class UserVip
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 等级名称
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public string Imgurl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 升级消费
|
||||
/// </summary>
|
||||
public uint Condition { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 享受折扣
|
||||
/// </summary>
|
||||
public decimal Discount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权益说明
|
||||
/// </summary>
|
||||
public string Notice { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public uint UpdateTime { get; set; }
|
||||
}
|
||||
47
ChouBox.Model/Entities/WelfareHouse.cs
Normal file
47
ChouBox.Model/Entities/WelfareHouse.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 福利屋管理
|
||||
/// </summary>
|
||||
public partial class WelfareHouse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 图片路径
|
||||
/// </summary>
|
||||
public string Image { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 跳转路径
|
||||
/// </summary>
|
||||
public string Url { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 排序(数字越小越靠前)
|
||||
/// </summary>
|
||||
public int? Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态:0=禁用,1=启用
|
||||
/// </summary>
|
||||
public bool? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public int? CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
public int? UpdateTime { get; set; }
|
||||
}
|
||||
74
ChouBox.Model/Entities/Withdraw.cs
Normal file
74
ChouBox.Model/Entities/Withdraw.cs
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
public partial class Withdraw
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提现人
|
||||
/// </summary>
|
||||
public uint? UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提现:1=未审核,2=已通过3=未通过
|
||||
/// </summary>
|
||||
public byte? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提现时间
|
||||
/// </summary>
|
||||
public uint? Addtime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 审核时间
|
||||
/// </summary>
|
||||
public uint? EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 原因
|
||||
/// </summary>
|
||||
public string? Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提现金额
|
||||
/// </summary>
|
||||
public decimal TalMoney { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 到账金额
|
||||
/// </summary>
|
||||
public decimal Money { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 手续费
|
||||
/// </summary>
|
||||
public decimal Sxf { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提现方式:1=微信,2=银行卡 3支付宝
|
||||
/// </summary>
|
||||
public byte Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收款二维码
|
||||
/// </summary>
|
||||
public string? Imgurl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提现姓名/银行户名
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支付宝账号/银行卡号
|
||||
/// </summary>
|
||||
public string? Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开户行
|
||||
/// </summary>
|
||||
public string? Bank { get; set; }
|
||||
}
|
||||
33
ChouBox.Model/Entities/WxpayLog.cs
Normal file
33
ChouBox.Model/Entities/WxpayLog.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 微信/支付宝支付信息
|
||||
/// </summary>
|
||||
public partial class WxpayLog
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
public uint UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 订单号
|
||||
/// </summary>
|
||||
public string? OrderNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
public string? Content { get; set; }
|
||||
|
||||
public byte? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 1微信 2支付宝
|
||||
/// </summary>
|
||||
public int Channel { get; set; }
|
||||
|
||||
public uint? Addtime { get; set; }
|
||||
}
|
||||
4975
ChouBox.Model/Entities/YoudaContext.cs
Normal file
4975
ChouBox.Model/Entities/YoudaContext.cs
Normal file
File diff suppressed because it is too large
Load Diff
44
ChouBox.Model/Entities/Yushou.cs
Normal file
44
ChouBox.Model/Entities/Yushou.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ChouBox.Model.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 预售日历
|
||||
/// </summary>
|
||||
public partial class Yushou
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 图片
|
||||
/// </summary>
|
||||
public string Imgurl { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// 商品id
|
||||
/// </summary>
|
||||
public uint GoodsId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 预售日期
|
||||
/// </summary>
|
||||
public uint SaleTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public uint Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
public uint Addtime { get; set; }
|
||||
|
||||
public int UpdateTime { get; set; }
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user