From aa0a98c3b15ad68c38d8d6816cd72bb5778d876b Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 13 Mar 2025 11:49:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E6=88=B7=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=83=A8=E9=97=A8parentId=E5=BF=85=E5=A1=AB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/system/model/sys_dept.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"` // 显示顺序