package com.njcn.advance.pojo.param.assess;

import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 冲击负荷字典查询参数
 * </p>
 *
 * @author cdf
 * @since 2025-06-06
 */
@Getter
@Setter
@ApiModel(value = "AssessDicShockLoadQuery", description = "冲击负荷字典查询参数")
public class AssessDicShockLoadQuery extends BaseParam implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "冲击负荷类型名称，例：电机", required = true)
    @NotBlank(message = "冲击负荷类型名称不可为空")
    private String inpactloadtypeName;

    @ApiModelProperty(value = "冲击负荷启动方式，例：直接启动")
    @NotBlank(message = "冲击负荷启动方式不可为空")
    private String inpactloadStartup;

    @ApiModelProperty(value = "冲击负荷启动容量倍数，例：4")
    @NotNull(message = "冲击负荷启动容量倍数不可为空")
    private BigDecimal inpactloadMultiple;

    /**
     * 更新冲击负荷字典的查询参数
     */
    @EqualsAndHashCode(callSuper = true)
    @ApiModel(value = "UpdateAssessDicShockLoadQuery", description = "更新冲击负荷字典的查询参数")
    @Data
    public static class UpdateAssessDicShockLoadQuery extends AssessDicShockLoadQuery {

        @ApiModelProperty(value = "冲击负荷类型ID（更新时必填），例：d19c10178eeb4da2bca1df18a050524d", required = true)
        @NotBlank(message = "冲击负荷类型ID不可为空")
        private String inpactloadtypeId;
    }
}