package com.propertyManagement.business.domain.bo;

import com.propertyManagement.common.core.domain.BaseEntity;
import com.propertyManagement.common.core.validate.AddGroup;
import com.propertyManagement.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户协议业务对象 wx_protocol
 *
 * @author liushuai
 * @date 2025-05-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxProtocolBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 协议名称
     */
    @NotBlank(message = "协议名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 协议内容
     */
    @NotBlank(message = "协议内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 协议类型(1用户协议 2隐私协议)
     */
    @NotNull(message = "协议类型(1用户协议 2隐私协议)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 是否启用（0否 1是）
     */
    @NotNull(message = "是否启用（0否 1是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isEnable;


}
