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