package com.xindazhou.business.controller.admin.community.sensitive.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 敏感词保存 Request VO")
@Data
public class SensitiveWordSaveReqVO {

    @Schema(description = "敏感词ID", example = "1")
    private Long id;

    @Schema(description = "敏感词", requiredMode = Schema.RequiredMode.REQUIRED, example = "敏感词")
    @NotBlank(message = "敏感词不能为空")
    private String word;

    @Schema(description = "类型：1-禁用词，2-替换词", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @Schema(description = "替换词（仅替换词类型）", example = "***")
    private String replaceWord;

    @Schema(description = "状态：1-启用，2-禁用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

}

