feat: 数据库迁移

This commit is contained in:
橙子
2023-10-07 17:51:05 +08:00
parent ca5697fb9c
commit c271f3005a
68 changed files with 222 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
namespace Yi.Furion.Core.App.Dtos.Trends
{
/// <summary>
/// Trends输入创建对象
/// </summary>
public class TrendsCreateInput
{
public string Title { get; set; }
public string Content { get; set; }
public string? Remark { get; set; }
public List<long>? Images { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using Yi.Framework.Infrastructure.Ddd.Dtos;
namespace Yi.Furion.Core.App.Dtos.Trends
{
/// <summary>
/// 查询参数
/// </summary>
public class TrendsGetListInput : PagedAllResultRequestDto
{
}
}

View File

@@ -0,0 +1,20 @@
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
namespace Yi.Furion.Core.App.Dtos.Trends
{
public class TrendsGetListOutputDto : IEntityDto<long>
{
public long Id { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public long UserId { get; set; }
public bool IsDeleted { get; set; }
public string? Remark { get; set; }
public List<long>? Images { get; set; }
public DateTime CreationTime { get; set; }
public long? CreatorId { get; set; }
public long? LastModifierId { get; set; }
public DateTime? LastModificationTime { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
namespace Yi.Furion.Core.App.Dtos.Trends
{
public class TrendsGetOutputDto : IEntityDto<long>
{
public long Id { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public long UserId { get; set; }
public bool IsDeleted { get; set; }
public string? Remark { get; set; }
public List<long>? Images { get; set; }
public DateTime CreationTime { get; set; }
public long? CreatorId { get; set; }
public long? LastModifierId { get; set; }
public DateTime? LastModificationTime { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace Yi.Furion.Core.App.Dtos.Trends
{
public class TrendsUpdateInputVo
{
public string? Title { get; set; }
public string? Content { get; set; }
public string? Remark { get; set; }
public List<long>? Images { get; set; }
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using Yi.Framework.Infrastructure.Data.Auditing;
using Yi.Framework.Infrastructure.Data.Entities;
using Yi.Framework.Infrastructure.Ddd.Entities;
using Yi.Framework.Infrastructure.Helper;
namespace Yi.Furion.Core.App.Entities
{
/// <summary>
/// 动态
/// </summary>
[SugarTable("Trends")]
public class TrendsEntity : AuditedObject, IEntity<long>, ISoftDelete
{
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
public string Title { get; set; }
[SugarColumn(Length = 99999)]
public string Content { get; set; }
public bool IsDeleted { get; set; }
public string? Remark { get; set; }
[SugarColumn(IsJson = true, Length = 99999)]
public List<long> Images { get; set; }
}
}

View File

@@ -4,6 +4,21 @@
<name>Yi.Furion.Core</name>
</assembly>
<members>
<member name="T:Yi.Furion.Core.App.Dtos.Trends.TrendsCreateInput">
<summary>
Trends输入创建对象
</summary>
</member>
<member name="T:Yi.Furion.Core.App.Dtos.Trends.TrendsGetListInput">
<summary>
查询参数
</summary>
</member>
<member name="T:Yi.Furion.Core.App.Entities.TrendsEntity">
<summary>
动态
</summary>
</member>
<member name="T:Yi.Furion.Core.Bbs.Consts.ArticleConst">
<summary>
常量定义