修正部门为空时返回值
This commit is contained in:
parent
b314fb22f6
commit
0a6ede141d
@ -23,11 +23,6 @@ func (r *Dept) GetDeptList(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if deptList == nil {
|
|
||||||
responses.Ok(c)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
responses.OkWithData(deptList, c)
|
responses.OkWithData(deptList, c)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user