package com.njcn.csharmonic.param;

import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;

/**
 * 
 * Description:
 * Date: 2023/5/31  14:31【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
@NoArgsConstructor
public class CsPageParm {

    /**
     * 组态项目id
     */
    @ApiModelProperty(value="组态项目id")
    private String pid;

    private MultipartFile multipartFile;

    /**
     * 组态页面文件路径
     */
    @ApiModelProperty(value = "组态页面json文件")
    private String jsonFile;

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class CsPageParmAuditParam extends CsPageParm {
        @ApiModelProperty("Id")
        @NotBlank(message = "id不为空")
        private String id;
        @ApiModelProperty(value = "状态")
        private String status;
    }
    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class CsPageParmQueryParam extends BaseParam {
        @ApiModelProperty("pid")
        private String pid;
    }
}