protobuf + GO + GRPC 解决bool值传参问题,(判断是没有传参数还是传递了false)
message AddressInfo{ int32 id = 1; int32 userId = 2; optional bool isDefault = 3; string province = 4; string city = 5; string county = 6; string address = 7; string name = 8; string mobile = 9; }
optional bool isDefault = 3;
发表评论