浏览器推荐修改
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-07-04 17:22:54 +08:00
parent 0c7495870b
commit 6264d105ab
3 changed files with 9 additions and 5 deletions

View File

@ -43,7 +43,9 @@ namespace IRaCIS.Core.Application.ViewModel
///<summary> ExploreRecommendAddOrEdit 列表查询参数模型</summary>
public class ExploreRecommendAddOrEdit
{
public Guid Id { get; set; }
public Guid? Id { get; set; }
public string ExploreType { get; set; }
public string Version { get; set; }
public string Title { get; set; }

View File

@ -51,9 +51,9 @@ namespace IRaCIS.Core.Application.Service
{
var verifyExp2 = new EntityVerifyExp<ExploreRecommend>()
{
VerifyExp = u => u.IsDeleted == addOrEditExploreRecommend.IsDeleted,
VerifyExp = u => u.IsDeleted == addOrEditExploreRecommend.IsDeleted && u.ExploreType == addOrEditExploreRecommend.ExploreType,
VerifyMsg = "当前启用版本只允许有一个",
VerifyMsg = "当前浏览器启用版本只允许有一个",
IsVerify = addOrEditExploreRecommend.IsDeleted == false
};

View File

@ -15,8 +15,10 @@ namespace IRaCIS.Core.Domain.Models
[Table("ExploreRecommend")]
public class ExploreRecommend : Entity, IAuditUpdate, IAuditAdd,ISoftDelete
{
public string Version { get; set; }=string.Empty;
public string ExploreType { get; set; } = string.Empty;
public string Version { get; set; }=string.Empty;
public string Title { get; set; } = string.Empty;