/**
 * 开源代码，仅供学习和交流研究使用，商用请联系三丙
 * 微信：mohan_88888
 * 抖音：程序员三丙
 * 付费课程知识星球：https://t.zsxq.com/aKtXo
 */
package sanbing.jcpp.app.adapter.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import sanbing.jcpp.app.dal.config.ibatis.enums.PileTypeEnum;
import sanbing.jcpp.infrastructure.util.validation.NoXss;

import java.util.UUID;

@Data
public class PileCreateRequest {
    
    @NotBlank(message = "充电桩名称不能为空")
    @NoXss
    private String pileName;
    
    @NotBlank(message = "充电桩编码不能为空")
    @NoXss
    private String pileCode;
    
    @NotBlank(message = "协议不能为空")
    @NoXss
    private String protocol;
    
    @NotNull(message = "充电站ID不能为空")
    private UUID stationId;
    
    @NoXss
    private String brand;
    
    @NoXss
    private String model;
    
    @NoXss
    private String manufacturer;
    
    private PileTypeEnum type = PileTypeEnum.DC;
}
