From 4e06d652aa2463de2e62a92a1f27edf060a7006c Mon Sep 17 00:00:00 2001 From: zpc Date: Wed, 24 Jul 2024 15:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DbSqlServer/Db_MiaoYu/MiaoYuContext.cs | 3 +++ .../DbSqlServer/Db_MiaoYu/T_ShoppingMall.cs | 5 +++++ .../HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs | 11 +++++++++++ 3 files changed, 19 insertions(+) diff --git a/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/MiaoYuContext.cs b/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/MiaoYuContext.cs index 0778289..2ae112f 100644 --- a/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/MiaoYuContext.cs +++ b/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/MiaoYuContext.cs @@ -583,6 +583,9 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext entity.Property(e => e.PropDesc) .HasMaxLength(255) .HasComment("道具描述"); + entity.Property(e => e.PropId) + .HasMaxLength(1) + .HasComment("道具Id"); entity.Property(e => e.PropImgId).HasComment("道具图片配置 图片id"); entity.Property(e => e.PropName) .HasMaxLength(100) diff --git a/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/T_ShoppingMall.cs b/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/T_ShoppingMall.cs index 688c3bc..d139b58 100644 --- a/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/T_ShoppingMall.cs +++ b/src/0-core/HuanMeng.MiaoYu.Model/DbSqlServer/Db_MiaoYu/T_ShoppingMall.cs @@ -62,4 +62,9 @@ public partial class T_ShoppingMall: MultiTenantEntity /// 价格 /// public decimal Price { get; set; } + + /// + /// 道具Id + /// + public string PropId { get; set; } = null!; } diff --git a/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs b/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs index 2457ec5..28092da 100644 --- a/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs +++ b/src/0-core/HuanMeng.MiaoYu.Model/Dto/Chat/ChatHistoryInfo.cs @@ -41,6 +41,17 @@ namespace HuanMeng.MiaoYu.Model.Dto.Chat /// public DateTime? LastContactTime { get; set; } + /// + /// 最后一次联系时间 + /// + public string LastContactTimeStr + { + get + { + return LastContactTime?.ToString("MM-dd HH:mm"); + } + } + /// /// 最后一次消息 ///