mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 20:11:27 +08:00
【feature】添加组织数据读取权限
This commit is contained in:
@@ -6,12 +6,13 @@ type BaseModel struct {
|
||||
Id string `json:"id" gorm:"primary_key;"`
|
||||
CreatedAt time.Time `gorm:"column:create_time" json:"createTime" form:"create_time"`
|
||||
UpdatedAt time.Time `gorm:"column:update_time" json:"updateTime" form:"update_time"`
|
||||
OrgId int64 `json:"orgId" gorm:"type:int;comment:机构ID"`
|
||||
}
|
||||
|
||||
type BaseAuthModel struct {
|
||||
Id string `json:"id" gorm:"primary_key;"`
|
||||
Owner string `json:"owner" gorm:"type:varchar(64);comment:创建者,所有者"`
|
||||
OrgId string `json:"orgId" gorm:"type:varchar(64);comment:机构ID"`
|
||||
OrgId int64 `json:"orgId" gorm:"type:int;comment:机构ID"`
|
||||
CreatedAt time.Time `gorm:"column:create_time" json:"createTime" form:"create_time"`
|
||||
UpdatedAt time.Time `gorm:"column:update_time" json:"updateTime" form:"update_time"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user