package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.WhiteList;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 白名单业务对象 t_white_list
 *
 * @author yxy
 * @date 2025-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WhiteList.class, reverseConvertGenerate = false)
public class WhiteListBo extends BaseEntity {

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

    /**
     * ip
     */
    private String ip;

    /**
     * 状态（0正常 1停用）
     */
    private String status;


}
