fix: 用户新增部门parentId必填问题
This commit is contained in:
@@ -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"` // 显示顺序
|
||||
|
||||
Reference in New Issue
Block a user