21 lines
554 B
C#
21 lines
554 B
C#
|
|
|
|||
|
|
using LMS.Common.Enums;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|
|||
|
|
namespace LMS.Repository.Options;
|
|||
|
|
|
|||
|
|
public class ModifyOptionByKeyModel
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Value of the option,这个值是一个json字符串
|
|||
|
|
/// </summary>
|
|||
|
|
|
|||
|
|
public required string Value { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
public required OptionTypeEnum Type { get; set; } = OptionTypeEnum.String;
|
|||
|
|
|
|||
|
|
public required OptionCategory Category { get; set; } = OptionCategory.System;
|
|||
|
|
[Required]
|
|||
|
|
public required List<string> RoleNames { get; set; } = [];
|
|||
|
|
}
|