package com.lesingle.creation.dto.config;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 创建配置 DTO
 */
@Data
@Schema(description = "创建配置请求")
public class CreateConfigDTO {

    @NotBlank(message = "配置键不能为空")
    @Schema(description = "配置键", example = "system.title")
    private String configKey;

    @NotBlank(message = "配置值不能为空")
    @Schema(description = "配置值", example = "图书馆创作平台")
    private String configValue;

    @Schema(description = "配置名称", example = "系统标题")
    private String configName;

    @Schema(description = "配置描述")
    private String description;
}
