22 lines
566 B
C#
22 lines
566 B
C#
|
|
using LMS.Common.Enums;
|
|||
|
|
|
|||
|
|
namespace LMS.Repository.DTO.OptionDto
|
|||
|
|
{
|
|||
|
|
public class OptionSimpleDto
|
|||
|
|
{
|
|||
|
|
public required string Key { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Value of the option,这个值是一个json字符串
|
|||
|
|
/// </summary>
|
|||
|
|
public string? Value { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
|
|||
|
|
public OptionTypeEnum Type { get; set; } = OptionTypeEnum.String;
|
|||
|
|
|
|||
|
|
public OptionCategory Category { get; set; } = OptionCategory.System;
|
|||
|
|
|
|||
|
|
public List<string> RoleNames { get; set; } = [];
|
|||
|
|
}
|
|||
|
|
}
|