Skip to content

Commit

Permalink
search normal user (#62)
Browse files Browse the repository at this point in the history
fix searchUserInfo (#58)
  • Loading branch information
hanzhixiao authored and cubxxw committed Jul 31, 2023
1 parent 040f4ec commit 67ab4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proto/chat/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (x *SearchUserFullInfoReq) Check() error {
if x.Pagination.ShowNumber < 1 {
return errs.ErrArgs.Wrap("showNumber is invalid")
}
if x.Normal > constant.FinDAllUser || x.Normal < constant.FindNormalUser {
if x.Normal < constant.FinDAllUser || x.Normal > constant.FindNormalUser {
return errs.ErrArgs.Wrap("normal flied is invalid")
}
return nil
Expand Down

0 comments on commit 67ab4f3

Please sign in to comment.