diff --git a/src/modules/system/model/sys_dept.go b/src/modules/system/model/sys_dept.go index f1829e49..11d43299 100644 --- a/src/modules/system/model/sys_dept.go +++ b/src/modules/system/model/sys_dept.go @@ -3,7 +3,7 @@ package model // SysDept 部门表 type SysDept struct { DeptId int64 `json:"deptId" gorm:"column:dept_id;primaryKey;autoIncrement"` // 部门ID - ParentId int64 `json:"parentId" gorm:"column:parent_id" binding:"required"` // 父部门ID 默认0 + ParentId int64 `json:"parentId" gorm:"column:parent_id"` // 父部门ID 默认0 Ancestors string `json:"ancestors" gorm:"column:ancestors"` // 祖级列表 DeptName string `json:"deptName" gorm:"column:dept_name" binding:"required"` // 部门名称 DeptSort int64 `json:"deptSort" gorm:"column:dept_sort"` // 显示顺序