package com.cpop.jambox.business.bo;

import com.mybatisflex.annotation.Id;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author DB
 * @version 1.0.0
 * @since 2024-01-05 12:47
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "PlugBo对象", description = "插件请求参数")
public class PlugBo {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String id;

    /**
     * 插件名
     */
    @NotBlank(message = "插件名不能为空")
    @ApiModelProperty(value = "插件名",required = true)
    private String name;

    /**
     * 插件标签
     */
    @NotBlank(message = "插件标签不能为空")
    @ApiModelProperty(value = "插件标签",required = true)
    private String plugTag;

    /**
     * 插件图标地址
     */
    @ApiModelProperty("插件图标地址")
    private String picUrl;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序",required = true)
    private Integer orderNo;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 状态(0:禁用;1:使用)
     */
    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态",required = true)
    private Integer status;
}
