package com.xindazhou.business.controller.admin.agreement.vo;

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

@Schema(description = "管理后台 - APP协议管理新增/修改 Request VO")
@Data
public class AgreementSaveReqVO {

    @Schema(description = "协议ID", example = "1")
    private Long id;

    @Schema(description = "协议名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "隐私政策")
    @NotBlank(message = "协议名称不能为空")
    private String name;

    @Schema(description = "协议类型：privacy-隐私政策，user-用户协议，service-服务协议", requiredMode = Schema.RequiredMode.REQUIRED, example = "privacy")
    @NotBlank(message = "协议类型不能为空")
    private String type;

    @Schema(description = "版本号", example = "1.0.0")
    private String version;

    @Schema(description = "协议内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "本协议规定了...")
    @NotBlank(message = "协议内容不能为空")
    private String content;

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

}

