using Crm.Core.Entity;
namespace Crm.Core.External.Web.Models
{
public class FollowUpRecordDetailModel
{
///
/// 记录类型
///
public string RecordType { get; set; }
///
/// 客服
///
public string? User { get; set; }
///
/// 标题
///
public string? Title
{
get
{
return RecordType switch
{
"电话" => "打电话",
_ => "写跟进",
};
}
}
///
/// 描述
///
public string? Description { get; set; }
///
/// 时间
///
public DateTime Date { get; set; }
///
/// 时间
///
public string? DateStr {
get
{
var now = DateTime.Now;
return Date.ToString("yyyy-MM-dd") == now.ToString("yyyy-MM-dd")? "今天"
: Date.ToString("yyyy-MM-dd") == now.AddDays(-1).ToString("yyyy-MM-dd")? "昨天"
: Date.ToString("yyyy/MM/dd");
}
}
public bool Hidden { get; set; }
///
/// 是否私密内容
///
public bool Private { get; set; }
}
}