fix: 用户新增部门parentId必填问题

This commit is contained in:
TsMask
2025-03-13 11:49:57 +08:00
parent 6ed115401f
commit aa0a98c3b1

View File

@@ -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"` // 显示顺序