46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using CloudBuilder.Core.Authorization;
|
||
using CloudBuilder.Master.Entity;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel.DataAnnotations.Schema;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace CloudBuilder.Master.Data
|
||
{
|
||
/// <summary>
|
||
/// 排除实体类标记
|
||
/// </summary>
|
||
[NotMapped]
|
||
[TypeScript]
|
||
public class ArticleDisplayData : ArticleEntity
|
||
{
|
||
public ArticleDisplayData()
|
||
{
|
||
}
|
||
public ArticleDisplayData(ArticleEntity entity)
|
||
{
|
||
CopyFrom(entity);
|
||
}
|
||
|
||
/// <summary>作者中文名(按 CreatedBy join security_user.user_local_name)</summary>
|
||
public string? AuthorLocalName { get; set; }
|
||
|
||
/// <summary>作者头像访问地址(按 CreatedBy join security_user.user_icon_img_path 打包)</summary>
|
||
public string? AuthorAvatarUrl { get; set; }
|
||
|
||
/// <summary>封面访问地址(由 ArticleCoverFilename 物理名打包,未设置为空)</summary>
|
||
public string? CoverUrl { get; set; }
|
||
|
||
/// <summary>当前登录人是否作者本人(前端据此显示编辑/删除/审核/置顶)</summary>
|
||
public bool IsOwner { get; set; }
|
||
|
||
/// <summary>当前登录人是否关联群组的正式成员</summary>
|
||
public bool IsMember { get; set; }
|
||
|
||
/// <summary>当前登录人是否关联群组的管理员</summary>
|
||
public bool IsManager { get; set; }
|
||
}
|
||
}
|