package com.cf.imes.module.system.controller.admin.systemconfig.vo;

import com.cf.imes.module.system.validation.common.CommonStatus;
import com.cf.imes.module.system.validation.config.SystemConfigTypeEnumValid;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

/**
 * 系统配置状态更新 reqvo
 *
 * @author Gqr
 * @since 2024/11/8 10:41
 */
@Schema(description = "管理后台 - 系统配置状态更新 Request VO")
@Data
public class ConfigUpdateStatusReqVO {
    @Schema(description = "系统配置编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "系统配置编号不能为空")
    private Long id;

    @Schema(description = "状态，见 CommonStatusEnum 枚举（0启用1禁用） ", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    @CommonStatus
    private Integer status;

    @Schema(description = "配置类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "配置类型不能为空")
    @SystemConfigTypeEnumValid
    private Integer type;
}
