菜单管理

This commit is contained in:
2026-01-13 14:06:36 +08:00
parent aaa2d25367
commit 1516caa21a
15 changed files with 938 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
package com.cczsa.xinghe.codegen.entity;
import com.cczsa.xinghe.codegen.entity.enums.ClientTypeEnum;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.io.Serial;
import com.mybatisflex.core.keygen.KeyGenerators;
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;
/**
* 路由路径
*/
private String path;
/**
* 菜单图标
*/
private String icon;
/**
* 是否租户
*/
private Boolean isTenant;
/**
* 是否隐藏
*/
private Boolean isHide;
/**
* 排序
*/
private Integer sortOrder;
}