mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-17 14:37:35 +08:00
Initial commit
This commit is contained in:
15
Models/Request/Config/SetConfigRequest.cs
Normal file
15
Models/Request/Config/SetConfigRequest.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Foxel.Models.Request.Config;
|
||||
|
||||
public class SetConfigRequest
|
||||
{
|
||||
[Required(ErrorMessage = "配置键不能为空")]
|
||||
[StringLength(50, ErrorMessage = "配置键长度不能超过50个字符")]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
public string? Value { get; set; }
|
||||
|
||||
[StringLength(255, ErrorMessage = "描述长度不能超过255个字符")]
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user