mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
【新增】部门岗位租户功能
This commit is contained in:
@@ -4,6 +4,7 @@ import "pandax/base/model"
|
||||
|
||||
type SysDept struct {
|
||||
DeptId int64 `json:"deptId" gorm:"primary_key;AUTO_INCREMENT"` //部门编码
|
||||
TenantId int64 `json:"tenantId" gorm:"type:int;comment:租户Id"`
|
||||
ParentId int64 `json:"parentId" gorm:"type:int;comment:上级部门"`
|
||||
DeptPath string `json:"deptPath" gorm:"type:varchar(255);comment:部门路径"`
|
||||
DeptName string `json:"deptName" gorm:"type:varchar(128);comment:部门名称"`
|
||||
|
||||
@@ -4,6 +4,7 @@ import "pandax/base/model"
|
||||
|
||||
type SysPost struct {
|
||||
PostId int64 `gorm:"primary_key;AUTO_INCREMENT" json:"postId"`
|
||||
TenantId int64 `json:"tenantId" gorm:"type:int;comment:租户Id"`
|
||||
PostName string `gorm:"type:varchar(128);comment:岗位名称" json:"postName"`
|
||||
PostCode string `gorm:"type:varchar(128);comment:岗位代码" json:"postCode"`
|
||||
Sort int64 `gorm:"type:int;comment:岗位排序" json:"sort"`
|
||||
|
||||
Reference in New Issue
Block a user