正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -523,11 +523,11 @@ func UserList(param protocol.RequestUserList) (protocol.ResponseUserList, error) | @@ -523,11 +523,11 @@ func UserList(param protocol.RequestUserList) (protocol.ResponseUserList, error) | ||
523 | cond = append(cond, likeCond) | 523 | cond = append(cond, likeCond) |
524 | } | 524 | } |
525 | var ( | 525 | var ( |
526 | - result []protocol.UserListItem | 526 | + result = make([]protocol.UserListItem, 0) |
527 | pageInfo protocol.ResponsePageInfo | 527 | pageInfo protocol.ResponsePageInfo |
528 | err error | 528 | err error |
529 | responseData = protocol.ResponseUserList{ | 529 | responseData = protocol.ResponseUserList{ |
530 | - List: make([]protocol.UserListItem, 0), | 530 | + List: result, |
531 | } | 531 | } |
532 | ) | 532 | ) |
533 | p := utils.NewQueryDataByPage(countSql+whereString, datasql+whereString) | 533 | p := utils.NewQueryDataByPage(countSql+whereString, datasql+whereString) |
-
请 注册 或 登录 后发表评论