Skip to content

Commit

Permalink
Update 09-validate.md (#209)
Browse files Browse the repository at this point in the history
类型错误
  • Loading branch information
githibmaster authored Aug 17, 2024
1 parent 3d28126 commit 6edb3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/component/middleware/09-validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ go install github.com/envoyproxy/protoc-gen-validate@latest
// 参数必须大于 0
int64 id = 1 [(validate.rules).int64 = {gt: 0}];
// 参数必须在 0 到 120 之间
int32 age = 2 [(validate.rules).int64 = {gt:0, lte: 120}];
int32 age = 2 [(validate.rules).int32 = {gt:0, lte: 120}];
// 参数是 1 或 2 或 3
uint32 code = 3 [(validate.rules).uint32 = {in: [1,2,3]}];
// 参数不能是 0 或 99.99
Expand Down

0 comments on commit 6edb3bb

Please sign in to comment.