package com.panzhihua.sangeshenbian.model.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
|
/**
|
* @author zhibing.pu
|
* @Date 2025/2/23 0:54
|
*/
|
@Data
|
@ApiModel
|
@TableName("sgsb_system_menu")
|
public class SystemMenu {
|
/** 菜单ID */
|
@TableId(value = "id", type = IdType.AUTO)
|
@ApiModelProperty("菜单ID")
|
private Integer id;
|
|
/** 菜单名称 */
|
@TableField("name")
|
@ApiModelProperty("菜单名称")
|
private String name;
|
|
/** 父菜单ID */
|
@TableField("parent_id")
|
private Long parentId;
|
|
/** 显示顺序 */
|
@TableField("order_num")
|
private String orderNum;
|
|
/** 菜单URL */
|
@TableField("url")
|
@ApiModelProperty("菜单URL")
|
private String url;
|
|
/** 子菜单 */
|
@TableField(exist = false)
|
@ApiModelProperty("子菜单")
|
private List<SystemMenu> children = new ArrayList<SystemMenu>();
|
}
|