Files
xinghe-codegen/src/main/java/com/cczsa/xinghe/codegen/entity/MenuEntity.java

92 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.cczsa.xinghe.codegen.entity;
import com.cczsa.xinghe.codegen.entity.enums.ClientTypeEnum;
import com.cczsa.xinghe.codegen.entity.enums.MenuTypeEnum;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
/**
* 菜单 实体类。
*
* @author My
* @since 0.0.1
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("cg_menu")
public class MenuEntity extends BaseEntity implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@Id(keyType = KeyType.Auto)
private Long id;
/**
* 客户端类型0 PC端1 小程序端2 H5端
*/
private ClientTypeEnum clientType;
/**
* 菜单名称
*/
private String menuName;
/**
* 父菜单ID
*/
private Long parentId;
/**
* 操作ID/来自操作表
*/
private Long funId;
/**
* 0菜单1按钮
*/
private MenuTypeEnum menuType;
/**
* 路由路径
*/
private String path;
/**
* 菜单图标
*/
private String icon;
/**
* 是否租户
*/
private Boolean isTenant;
/**
* 是否隐藏
*/
private Boolean isHide;
/**
* 排序
*/
private Integer sortOrder;
}