doum
2025-09-25 c5675caab8392bfafd217d06529c2547edaa6aa8
server/system_service/src/main/java/com/doumee/dao/system/model/SystemMenu.java
@@ -3,6 +3,7 @@
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.doumee.core.constants.OperaType;
import com.doumee.service.business.third.model.LoginUserModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
@@ -21,7 +22,7 @@
 */
@Data
@ApiModel("系统菜单")
public class SystemMenu implements Serializable {
public class SystemMenu extends LoginUserModel implements Serializable  {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", example = "1")
@@ -31,6 +32,10 @@
    @ApiModelProperty(value = "上一级菜单", example = "1")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer parentId;
    @ApiModelProperty(value = "类型 0服务中心菜单 1顶部导航,默认 0", example = "1")
    private Integer type;
    @ApiModelProperty(value = "关联类型 0系统内部菜单 1外部系统", example = "1")
    private Integer linkType;
    @ApiModelProperty(value = "菜单名称")
    @NotBlank(message = "菜单名称不能为空", groups = {OperaType.Create.class, OperaType.Update.class})
@@ -69,5 +74,7 @@
    @ApiModelProperty(value = "是否已删除", hidden = true)
    private Boolean deleted;
    @ApiModelProperty(value = "参数" )
    private String params;
}