初始提交
This commit is contained in:
21
Services/Hncore.Pass.OSS/Domain/Asset.cs
Normal file
21
Services/Hncore.Pass.OSS/Domain/Asset.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Hncore.Infrastructure.DDD;
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Pass.OSS.Domain
|
||||
{
|
||||
public partial class Asset : EntityWithDelete<int>, ITenant
|
||||
{
|
||||
public int TenantId { get; set; }
|
||||
public int? GroupId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int AssetType { get; set; }
|
||||
public string Image { get; set; }
|
||||
public string BaseUrl { get; set; }
|
||||
public string Path { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
|
||||
public string Url { get => BaseUrl.Has() ? $"{BaseUrl}/{Path}" : Path; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user