This commit is contained in:
2023-06-30 14:54:43 +08:00
parent a7ca868a5f
commit c0c69eb602
14 changed files with 840 additions and 13 deletions
+9
View File
@@ -16,3 +16,12 @@ func (r *AdminDeptDao) GetAdminDeptFirstById(deptId int64) (m *model.AdminDept,
}
return m, nil
}
// GetAdminDeptList 获取部门列表
func (r *AdminDeptDao) GetAdminDeptList() (m []*model.AdminDept, err error) {
err = global.Db.Find(&m).Error
if err != nil {
return nil, err
}
return m, nil
}