fix: 部门名称搜索多语言反查

This commit is contained in:
TsMask
2024-04-15 14:38:28 +08:00
parent e5516e13d4
commit bc0f6bfe0d

View File

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