package com.fizz.business.form;


import com.fizz.business.constants.enums.L1OperateMatEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 状态变更form
 *
 * @author chenhao
 * @date 2023/04/27
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class L1OperateMatForm extends OperateMatForm implements Serializable {

    @NotNull(message = "操作不存在")
    @Schema(description = "ONLINE-钢卷上线，UNLOAD-手动卸卷，ALL_RETURN-整卷回退，HALF_RETURN-半卷回退，BLOCK-卸卷并封闭，THROW_TAIL-甩尾")
    private L1OperateMatEnum operation;

    @Builder
    public L1OperateMatForm(Integer porIdx, Integer trIdx, String planId, String entryMatId, String planNo, L1OperateMatEnum operation) {
        super(porIdx, trIdx, planId, entryMatId, planNo);
        this.operation = operation;
    }
}
