mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
组织数据读取权限完成
This commit is contained in:
@@ -5,6 +5,7 @@ import "github.com/PandaXGO/PandaKit/model"
|
||||
type DevGenTable struct {
|
||||
TableId int64 `gorm:"primaryKey;autoIncrement" json:"tableId"` // 编号
|
||||
OrgId int64 `json:"orgId" gorm:"type:int;comment:机构ID"`
|
||||
Owner string `json:"owner" gorm:"type:varchar(64);comment:创建者,所有者"`
|
||||
TableName string `gorm:"table_name" json:"tableName"` // 表名称
|
||||
TableComment string `gorm:"table_comment" json:"tableComment"` // 表描述
|
||||
ClassName string `gorm:"class_name" json:"className"` // 实体类名称
|
||||
|
||||
@@ -3,6 +3,7 @@ package entity
|
||||
type DevGenTableColumn struct {
|
||||
ColumnId int64 `gorm:"primaryKey;autoIncrement" json:"columnId"` // 编号
|
||||
OrgId int64 `json:"orgId" gorm:"type:int;comment:机构ID"`
|
||||
Owner string `json:"owner" gorm:"type:varchar(64);comment:创建者,所有者"`
|
||||
TableId int64 `gorm:"table_id" json:"tableId"` // 归属表编号
|
||||
TableName string `gorm:"table_name" json:"tableName"`
|
||||
ColumnName string `gorm:"column_name" json:"columnName"` // 列名称
|
||||
|
||||
Reference in New Issue
Block a user