package com.seer.teach.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author Captain
 * @since 2024-01-19
 */
@Getter
@Setter
@TableName("za_authority")
public class AuthorityEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableField("authority_code")
    private String authorityCode;

    /**
     * 类型 1.菜单 2.页面 3.按钮
     */
    @TableField("`type`")
    private Integer type;


    @TableField("title")
    private String title;

    @Schema(description = "icon")
    @TableField("icon")
    private String icon;

    @Schema(description = "路径")
    @TableField("path")
    private String path;

    @Schema(description = "模板路径")
    @TableField("component")
    private String component;

    @Schema(description = "是否隐藏")
    @TableField("hidden")
    private Integer hidden;

    @Schema(description = "父级ID")
    @TableField("pid")
    private Integer pid;

    @TableField("class_name")
    private String className;

    @Schema(description = "模块")
    @TableField("module")
    private String module;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;

    @TableField("api_path")
    private String apiPath;

    @TableField("http_method")
    private String httpMethod;

    @TableField("props")
    private String props;

}
