package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cyksj.model.views.GoodsDonCategoryGoodsView;
import com.ejlchina.searcher.bean.DbIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/*
 *项目名: netflix
 *文件名: GoodsDonCategory
 *创建者: JavaZou
 *创建时间:2023/8/11 13:38
 */
@Getter
@Setter
public class GoodsDonCategory extends BaseEntity {
	@NotEmpty(message = "名称不为空")
	private String name;

	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String icon;

	private Integer sorted;

	private Boolean status;

	@DbIgnore
	@TableField(exist = false)
	private List<GoodsDonCategoryGoodsView> categoryGoodsList;
}
