package com.iailab.module.system.dal.dataobject.tenant;
|
|
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
|
import com.iailab.framework.common.enums.CommonStatusEnum;
|
import com.iailab.framework.mybatis.core.dataobject.BaseDO;
|
import com.baomidou.mybatisplus.annotation.KeySequence;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.*;
|
|
import java.util.List;
|
import java.util.Set;
|
|
/**
|
* 租户套餐 DO
|
*
|
* @author iailab
|
*/
|
@TableName(value = "system_tenant_package", autoResultMap = true)
|
@KeySequence("system_tenant_package_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@ToString(callSuper = true)
|
@Builder
|
@AllArgsConstructor
|
@NoArgsConstructor
|
public class TenantPackageDO extends BaseDO {
|
|
/**
|
* 套餐编号,自增
|
*/
|
private Long id;
|
/**
|
* 套餐名,唯一
|
*/
|
private String name;
|
/**
|
* 租户套餐状态
|
*
|
* 枚举 {@link CommonStatusEnum}
|
*/
|
private Integer status;
|
/**
|
* 套餐图标
|
*/
|
private String icon;
|
/**
|
* 套餐标签
|
*/
|
@TableField(typeHandler = JacksonTypeHandler.class)
|
private List<String> labels;
|
/**
|
* 套餐介绍
|
*/
|
private String description;
|
/**
|
* 备注
|
*/
|
private String remark;
|
/**
|
* 关联的菜单编号
|
*/
|
@TableField(typeHandler = JacksonTypeHandler.class)
|
private Set<Long> menuIds;
|
|
}
|