package com.yongqi.xinrenli.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件业务对象 db_file
 *
 * @author zyf
 * @date 2023-03-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DbFileBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 业务类型
     */
    @NotBlank(message = "业务类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String serviceType;

    /**
     * 文件地址
     */
    @NotBlank(message = "文件地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String url;

    /**
     * 文件类型
     */
    @NotBlank(message = "文件类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileType;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long sort;

    /**
     * 删除状态 0正常 1删除
     */
    @NotNull(message = "删除状态 0正常 1删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer deleteStatus;

    /**
     * 创建人
     */
    @NotBlank(message = "创建人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String createName;

    /**
     * 修改时间
     */
    @NotNull(message = "修改时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date modifyTime;

    /**
     * 修改人
     */
    @NotBlank(message = "修改人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modifyName;


}
