diff --git a/api/controller/adminDept.go b/api/controller/adminDept.go index a04f55f..707bcac 100644 --- a/api/controller/adminDept.go +++ b/api/controller/adminDept.go @@ -23,11 +23,6 @@ func (r *Dept) GetDeptList(c *gin.Context) { return } - if deptList == nil { - responses.Ok(c) - return - } - responses.OkWithData(deptList, c) return }