package com.xinyilu.system.domain.testcategoryitem;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinyilu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDateTime;

/**
 * 测试分类和测试项目关系对象 test_category_item
 *
 * @author xinyilu
 * @date 2022-11-03
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "测试分类和测试项目关系对象", description = "test_category_item")
public class TestCategoryItem {
    private static final long serialVersionUID = 1506586548733611482L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 测试项目分类表id
     */
    @ApiModelProperty(value = "测试项目分类表id")
    @Excel(name = "测试项目分类表id")
    private Long itemCategoryId;

    /**
     * 测试项目表id
     */
    @ApiModelProperty(value = "测试项目表id")
    @Excel(name = "测试项目表id")
    private Long itemId;

    /**
     * 是否删除，0：否，1：是
     */
    private Integer delFlag;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("itemCategoryId", getItemCategoryId())
                .append("itemId", getItemId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
