package com.heketai.website.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


/**
 * 门户菜单
 */
@Data
@TableName("website_menu")
@SuppressWarnings("all")
public class WebsiteMenu extends Model<WebsiteMenu> {

    private static final long serialVersionUID = 1146131313131L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer language;

    private Integer sort;

    private String code;

    @TableField(exist = false)
    private List<WebsiteMenuContent> list;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
