All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.entity.table.MenuTableDef Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class MenuTableDef extends TableDef {

    /**
     * 菜单表 实体类。

 @author sheng
 @since 2024-04-06
     */
    public static final MenuTableDef MENU = new MenuTableDef();

    /**
     * 菜单ID
     */
    public final QueryColumn ID = new QueryColumn(this, "id");

    /**
     * 菜单编码
     */
    public final QueryColumn CODE = new QueryColumn(this, "code");

    /**
     * 菜单图标
     */
    public final QueryColumn ICON = new QueryColumn(this, "icon");

    /**
     * 菜单名称
     */
    public final QueryColumn NAME = new QueryColumn(this, "name");

    /**
     * 路由地址
     */
    public final QueryColumn PATH = new QueryColumn(this, "path");

    /**
     * 菜单类型(0菜单,1按钮)
     */
    public final QueryColumn TYPE = new QueryColumn(this, "type");

    /**
     * 是否删除(0未删除,1已删除)
     */
    public final QueryColumn IS_DEL = new QueryColumn(this, "is_del");

    /**
     * 是否新标签(0否,1是)
     */
    public final QueryColumn IS_TAG = new QueryColumn(this, "is_tag");

    /**
     * 菜单序号
     */
    public final QueryColumn ORDER = new QueryColumn(this, "order");

    /**
     * 路由参数
     */
    public final QueryColumn QUERY = new QueryColumn(this, "query");

    /**
     * 状态(0正常,1停用)
     */
    public final QueryColumn STATUS = new QueryColumn(this, "status");

    /**
     * 是否缓存(0否,1是)
     */
    public final QueryColumn IS_CACHE = new QueryColumn(this, "is_cache");

    /**
     * 是否为外部链接(0否,1是)
     */
    public final QueryColumn IS_FRAME = new QueryColumn(this, "is_frame");

    /**
     * 上级菜单ID
     */
    public final QueryColumn PARENT_ID = new QueryColumn(this, "parent_id");

    /**
     * 前端组件地址
     */
    public final QueryColumn COMPONENT = new QueryColumn(this, "component");

    /**
     * 是否可见(0显示,1隐藏)
     */
    public final QueryColumn IS_VISIBLE = new QueryColumn(this, "is_visible");

    /**
     * 创建时间
     */
    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    /**
     * 创建人
     */
    public final QueryColumn CREATE_USER = new QueryColumn(this, "create_user");

    /**
     * 修改时间
     */
    public final QueryColumn UPDATE_TIME = new QueryColumn(this, "update_time");

    /**
     * 修改人
     */
    public final QueryColumn UPDATE_USER = new QueryColumn(this, "update_user");

    /**
     * 是否全屏(0否,1是)
     */
    public final QueryColumn IS_FULLSCREEN = new QueryColumn(this, "is_fullscreen");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段,不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, CODE, ICON, NAME, PATH, TYPE, IS_DEL, IS_TAG, ORDER, QUERY, STATUS, IS_CACHE, IS_FRAME, PARENT_ID, COMPONENT, IS_VISIBLE, CREATE_TIME, CREATE_USER, UPDATE_TIME, UPDATE_USER, IS_FULLSCREEN};

    public MenuTableDef() {
        super("", "sys_menu");
    }

    private MenuTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public MenuTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new MenuTableDef("", "sys_menu", alias));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy