package org.dromara.demo.domain.bo;
|
|
import org.dromara.demo.domain.RsGeographyData;
|
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.*;
|
|
/**
|
* 数据上图业务对象 rs_geography_data
|
*
|
* @author gonghl
|
* @date 2024-03-07
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@AutoMapper(target = RsGeographyData.class, reverseConvertGenerate = false)
|
public class RsGeographyDataBo extends BaseEntity {
|
|
/**
|
* 编号
|
*/
|
@NotBlank(message = "编号不能为空", groups = { EditGroup.class })
|
private String id;
|
|
/**
|
* 类型
|
*/
|
@NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
|
private String type;
|
|
/**
|
* 名称
|
*/
|
@NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
private String name;
|
|
/**
|
* 描述
|
*/
|
@NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
|
private String description;
|
|
}
|