package com.zfire.jiasm.syncdata.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单功能
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdminModule对象", description="菜单功能")
public class AdminModule extends Model<AdminModule> {

    private static final long serialVersionUID=1L;

    @TableId(value = "module_id", type = IdType.ID_WORKER_STR)
    private String moduleId;

    @ApiModelProperty(value = "名称")
    private String moduleName;

    @ApiModelProperty(value = "模块路径")
    private String modulePath;

    @ApiModelProperty(value = "1=普通菜单 2=功能菜单 3=功能点  4=外部菜单")
    private Integer type;

    @ApiModelProperty(value = "权限标识")
    private String perm;

    @ApiModelProperty(value = "编号")
    private String code;

    @ApiModelProperty(value = "层级")
    private Integer level;

    @ApiModelProperty(value = "url")
    private String url;

    @ApiModelProperty(value = "全url")
    private String fullUrl;

    @ApiModelProperty(value = "当前url")
    private String curUrl;

    @ApiModelProperty(value = "父id")
    private String parentId;

    @ApiModelProperty(value = "父级名称")
    private String parentModule;

    @ApiModelProperty(value = "排序号")
    private Integer sortNum;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private String icon;

    @ApiModelProperty(value = "1=中台菜单  2=系统菜单")
    private Integer flag;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否查询接口")
    private Boolean query;


    @Override
    protected Serializable pkVal() {
        return this.moduleId;
    }

}
