package com.vctgo.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vctgo.common.core.annotation.Excel;
import com.vctgo.common.core.web.domain.TenantEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 权限架构--系统基础配置对象 sys_config_permission
 *
 * @author caesar
 * @date 2023-10-08
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("sys_config_permission")
public class SysConfigPermission extends TenantEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 业务名称
     */
    @Excel(name = "业务名称")
    private String serviceName;

    /**
     * 租户类型
     */
    @Excel(name = "租户类型")
    private String tenantType;

    /**
     * 关联的菜单编号
     */
    @Excel(name = "关联的菜单编号")
    private String menuIds;

    /**
     * 删除标志（0代表存在
     */
    @Excel(name = "删除标志", readConverterExp = "删除标志（0代表存在")
    private String isDeleted;


    /**
     * 创建人ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "创建人ID")
    @Excel(name = "创建人ID")
    private Long createById;

    /**
     * 最近更新人ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "最近更新人ID")
    @Excel(name = "最近更新人ID")
    private Long updateById;

    @TableField(exist = false)
    private String createNickName;

}
