hongze 8 месяцев назад
Родитель
Сommit
ec0b13c632
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      models/system/sys_department.go

+ 1 - 1
models/system/sys_department.go

@@ -10,7 +10,7 @@ type SysDepartmentAddReq struct {
 }
 
 type SysDepartment struct {
-	DepartmentId   int       `orm:"column(department_id);pk" description:"部门Id"`
+	DepartmentId   int       `gorm:"primaryKey;" description:"部门Id"`
 	DepartmentName string    `description:"部门名称"`
 	Sort           int       `description:"排序"`
 	CreateTime     time.Time `description:"创建时间"`