mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
【新增】租户功能
This commit is contained in:
24
apps/system/entity/tenant.go
Normal file
24
apps/system/entity/tenant.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"pandax/base/model"
|
||||
"time"
|
||||
)
|
||||
|
||||
/**
|
||||
* @Description
|
||||
* @Author 熊猫
|
||||
* @Date 2022/7/14 16:14
|
||||
**/
|
||||
|
||||
type SysTenants struct {
|
||||
model.BaseModel
|
||||
TenantId int64 `json:"tenantId" gorm:"primary_key;AUTO_INCREMENT"`
|
||||
TenantName string `json:"tenantName" gorm:"type:varchar(255);comment:租户名"`
|
||||
Remark string `json:"remark" gorm:"type:varchar(255);comment:备注"`
|
||||
ExpireTime time.Time `json:"expireTime" gorm:"comment:过期时间"`
|
||||
}
|
||||
|
||||
func (SysTenants) TableName() string {
|
||||
return "sys_tenants"
|
||||
}
|
||||
Reference in New Issue
Block a user