diff --git a/src/modules/system/controller/sys_dept.go b/src/modules/system/controller/sys_dept.go index de9bbda6..4ddfc18f 100644 --- a/src/modules/system/controller/sys_dept.go +++ b/src/modules/system/controller/sys_dept.go @@ -35,13 +35,13 @@ func (s *SysDeptController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { // 部门ID - DeptID string `json:"deptId"` + DeptID string `form:"deptId"` // 父部门ID - ParentID string `json:"parentId" ` + ParentID string `form:"parentId" ` // 部门名称 - DeptName string `json:"deptName" ` + DeptName string `form:"deptName" ` // 部门状态(0正常 1停用) - Status string `json:"status"` + Status string `form:"status"` } err := c.ShouldBindQuery(&querys) if err != nil {