package cn.reghao.tnb.content.app.vod.model.po;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 稿件标签
 *
 * @author reghao
 * @date 2022-06-09 15:07:40
 */
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
public class PostTag extends BaseObject<Integer> {
    @NotNull
    private String tagId;
    @NotBlank
    @Size(min = 1, max = 5, message = "标签名字不能超过 5 个字符")
    private String tagName;
}
