package com.example.demo.model;

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

/**
 * 系统参数配置实体。
 * <p>对应数据库 config 表，存储系统运行参数。</p>
 */
@Schema(description = "系统参数配置实体")
public class Config {

    @Schema(description = "参数ID", example = "1")
    private Long configId;

    @Schema(description = "参数名称", example = "系统名称")
    private String configName;

    @Schema(description = "参数键", example = "system.name")
    private String configKey;

    @Schema(description = "参数值", example = "综合管理平台")
    private String configValue;

    @Schema(description = "备注", example = "系统显示名称")
    private String remark;

    @Schema(description = "状态：0-停用，1-启用", example = "1")
    private Integer status;

    public Config() {}

    public Config(Long configId, String configName, String configKey,
                  String configValue, String remark, Integer status) {
        this.configId = configId;
        this.configName = configName;
        this.configKey = configKey;
        this.configValue = configValue;
        this.remark = remark;
        this.status = status;
    }

    public Long getConfigId() { return configId; }
    public void setConfigId(Long configId) { this.configId = configId; }
    public String getConfigName() { return configName; }
    public void setConfigName(String configName) { this.configName = configName; }
    public String getConfigKey() { return configKey; }
    public void setConfigKey(String configKey) { this.configKey = configKey; }
    public String getConfigValue() { return configValue; }
    public void setConfigValue(String configValue) { this.configValue = configValue; }
    public String getRemark() { return remark; }
    public void setRemark(String remark) { this.remark = remark; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
}
