|
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
@@ -15,98 +17,65 @@ import java.util.Date;
|
|
* </p>
|
|
* </p>
|
|
*/
|
|
*/
|
|
@Data
|
|
@Data
|
|
-@TableName("sys_menu_info")
|
|
|
|
-public class MenuInfo implements Serializable {
|
|
|
|
|
|
+@TableName("sys_menu")
|
|
|
|
+@ApiModel(value="Menu对象", description="菜单功能表")
|
|
|
|
+public class Menu implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
- /**
|
|
|
|
- * 编号
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "编号")
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
private Long id;
|
|
private Long id;
|
|
|
|
|
|
- /**
|
|
|
|
- * 父级编号
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "父级编号")
|
|
@TableField("parent_id")
|
|
@TableField("parent_id")
|
|
private Long parentId;
|
|
private Long parentId;
|
|
|
|
|
|
- /**
|
|
|
|
- * 系统id
|
|
|
|
- */
|
|
|
|
- @TableField("system_id")
|
|
|
|
- private Long systemId;
|
|
|
|
|
|
+ @ApiModelProperty(value = "服务id")
|
|
|
|
+ @TableField("service_id")
|
|
|
|
+ private Long serviceId;
|
|
|
|
|
|
- /**
|
|
|
|
- * 功能名称
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "功能名称")
|
|
@TableField("name")
|
|
@TableField("name")
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
- /**
|
|
|
|
- * 类型:0:目录,1菜单,2按钮,3:超链接
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "类型:0:目录,1菜单,2按钮,3:超链接")
|
|
@TableField("type")
|
|
@TableField("type")
|
|
private String type;
|
|
private String type;
|
|
|
|
|
|
- /**
|
|
|
|
- * 页面路由
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "页面路由")
|
|
@TableField("url")
|
|
@TableField("url")
|
|
private String url;
|
|
private String url;
|
|
|
|
|
|
- /**
|
|
|
|
- * 权限标识
|
|
|
|
- */
|
|
|
|
- @TableField("permission")
|
|
|
|
- private String permission;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 图标
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "图标")
|
|
@TableField("icon")
|
|
@TableField("icon")
|
|
private String icon;
|
|
private String icon;
|
|
|
|
|
|
- /**
|
|
|
|
- * 排序
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "排序")
|
|
@TableField("order_no")
|
|
@TableField("order_no")
|
|
private String orderNo;
|
|
private String orderNo;
|
|
|
|
|
|
- /**
|
|
|
|
- * 状态 0:禁用,1:启用
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "状态 0:禁用,1:启用")
|
|
@TableField("status")
|
|
@TableField("status")
|
|
private String status;
|
|
private String status;
|
|
|
|
|
|
- /**
|
|
|
|
- * 描述
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "描述")
|
|
@TableField("describe")
|
|
@TableField("describe")
|
|
private String describe;
|
|
private String describe;
|
|
|
|
|
|
- /**
|
|
|
|
- * 备注
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "备注")
|
|
@TableField("remark")
|
|
@TableField("remark")
|
|
private String remark;
|
|
private String remark;
|
|
|
|
|
|
- /**
|
|
|
|
- * 创建用户编号
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "创建用户编号")
|
|
@TableField("creator")
|
|
@TableField("creator")
|
|
private Long creator;
|
|
private Long creator;
|
|
|
|
|
|
- /**
|
|
|
|
- * 创建时间
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "创建时间")
|
|
@TableField("create_time")
|
|
@TableField("create_time")
|
|
private Date createTime;
|
|
private Date createTime;
|
|
|
|
|
|
- /**
|
|
|
|
- * 是否删除,N:未删除,Y:删除
|
|
|
|
- */
|
|
|
|
|
|
+ @ApiModelProperty(value = "是否删除,N:未删除,Y:删除")
|
|
@TableField("is_deleted")
|
|
@TableField("is_deleted")
|
|
private String isDeleted;
|
|
private String isDeleted;
|
|
|
|
|