package com.hc.business.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 新闻标签表(NewsTag)实体类
 *
 * @author java
 * @since 2020-11-20 13:13:47
 */

@ApiModel(value = "资讯标签表")
@Data
public class ZccmNewsTag implements Serializable {

    private static final long serialVersionUID = -31343210313614099L;


    /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键id")
    private Integer tagId;

    /**
     * 类别名称
     */
    @ApiModelProperty(value = "类别名称", required = true)
    @NotNull
    private String tagName;

}