package com.xinelu.manage.domain.infocategory;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 资讯分类对象 info_category
 *
 * @author xinelu
 * @date 2024-04-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "资讯分类对象", description = "info_category")
public class InfoCategory extends BaseEntity
        {
private static final long serialVersionUID=1L;

    /** 主键id */
    private Long id;

    /** 资讯分类编码 */
        @ApiModelProperty(value = "资讯分类编码")
            @Excel(name = "资讯分类编码")
    private String infoCategoryCode;

    /** 资讯分类名称 */
        @ApiModelProperty(value = "资讯分类名称")
            @Excel(name = "资讯分类名称")
    private String infoCategoryName;

    /** 资讯分类类型 */
        @ApiModelProperty(value = "资讯分类类型")
            @Excel(name = "资讯分类类型")
    private String infoCategoryType;

    /** 资讯分类排序 */
        @ApiModelProperty(value = "资讯分类排序")
            @Excel(name = "资讯分类排序")
    private Long infoCategorySort;

    /** 资讯创建人 */
        @ApiModelProperty(value = "资讯创建人")
            @Excel(name = "资讯创建人")
    private String infoCategoryCreator;

    /** 资讯创建时间 */
        @ApiModelProperty(value = "资讯创建时间")
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "资讯创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime infoCategoryCreateTime;



@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("infoCategoryCode",getInfoCategoryCode())
            .append("infoCategoryName",getInfoCategoryName())
            .append("infoCategoryType",getInfoCategoryType())
            .append("infoCategorySort",getInfoCategorySort())
            .append("infoCategoryCreator",getInfoCategoryCreator())
            .append("infoCategoryCreateTime",getInfoCategoryCreateTime())
        .toString();
        }
        }
