package com.njcn.supervision.pojo.param.databank;

import com.njcn.db.bo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 
 * Description:
 * Date: 2024/9/10  14:17【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LibStandardParam extends BaseEntity {

    /**
     * 上级id
     */
    @ApiModelProperty(value="上级id")
    private String pid;


    /**
     * 名称
     */
    @NotBlank(message ="名称不能为空")
    @ApiModelProperty(value="名称")
    private String name;

    /**
     * 文件地址
     */
    @ApiModelProperty(value="文件地址")
    private String url;



    @Data
    @EqualsAndHashCode(callSuper = true)
    public  static class LibStandardParamUpdate extends LibStandardParam {

        @ApiModelProperty("id")
        private String id;

    }



}