package org.dromara.inspection.domain.bo;

import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.inspection.domain.ArPoint;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.Map;

/**
 * 巡检点位业务对象 ar_point
 *
 * @author Lion Li
 * @date 2025-01-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ArPoint.class, reverseConvertGenerate = false)
public class ArPointBo extends BaseEntity {

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

    /**
     * 所属区域ID
     */
    @NotNull(message = "所属区域ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long regionId;

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

    /**
     * 点位编码
     */
    private String pointCode;

    /**
     * 点位业务数据(包含坐标、预设等)
     */
    @NotNull(message = "点位业务数据不能为空", groups = {AddGroup.class, EditGroup.class})
    private Map<String, Object> positionData;

    /**
     * 备注
     */
    private String remark;

}
