diff --git a/bizdemo/hertz_gorm_gen/biz/handler/user/user_service.go b/bizdemo/hertz_gorm_gen/biz/handler/user/user_service.go index 3f055704..3e9c4faf 100644 --- a/bizdemo/hertz_gorm_gen/biz/handler/user/user_service.go +++ b/bizdemo/hertz_gorm_gen/biz/handler/user/user_service.go @@ -115,7 +115,7 @@ func UpdateUserResponse(ctx context.Context, c *app.RequestContext) { resp := new(user.UpdateUserResp) u := &orm_gen.User{} - u.ID = req.UserID + u.ID = req.UserId u.Name = req.Name u.Gender = int32(req.Gender) u.Age = int32(req.Age) @@ -145,7 +145,7 @@ func DeleteUserResponse(ctx context.Context, c *app.RequestContext) { } resp := new(user.DeleteUserResp) - _, err = query.User.WithContext(ctx).Where(query.User.ID.Eq(req.UserID)).Delete() + _, err = query.User.WithContext(ctx).Where(query.User.ID.Eq(req.UserId)).Delete() if err != nil { resp.Code = user.Code_DBErr resp.Msg = err.Error() diff --git a/bizdemo/hertz_gorm_gen/biz/model/api/api.pb.go b/bizdemo/hertz_gorm_gen/biz/model/api/api.pb.go index 0730c856..9b3f9860 100644 --- a/bizdemo/hertz_gorm_gen/biz/model/api/api.pb.go +++ b/bizdemo/hertz_gorm_gen/biz/model/api/api.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 -// protoc v3.9.0 +// protoc v3.21.12 // source: api.proto package api @@ -407,11 +407,12 @@ var file_api_proto_rawDesc = []byte{ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xe1, 0x89, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x68, 0x74, 0x74, 0x70, 0x43, 0x6f, 0x64, 0x65, - 0x42, 0x45, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, + 0x42, 0x4a, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x65, 0x67, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x2d, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x62, 0x69, 0x7a, 0x64, 0x65, 0x6d, 0x6f, 0x2f, - 0x68, 0x65, 0x72, 0x74, 0x7a, 0x5f, 0x67, 0x65, 0x6e, 0x2f, 0x62, 0x69, 0x7a, 0x2f, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x68, 0x65, 0x72, 0x74, 0x7a, 0x5f, 0x67, 0x6f, 0x72, 0x6d, 0x5f, 0x67, 0x65, 0x6e, 0x2f, 0x62, + 0x69, 0x7a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var file_api_proto_goTypes = []interface{}{ diff --git a/bizdemo/hertz_gorm_gen/biz/model/hertz/user/user.pb.go b/bizdemo/hertz_gorm_gen/biz/model/hertz/user/user.pb.go index 993bca94..9fcd261c 100644 --- a/bizdemo/hertz_gorm_gen/biz/model/hertz/user/user.pb.go +++ b/bizdemo/hertz_gorm_gen/biz/model/hertz/user/user.pb.go @@ -1,12 +1,9 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 -// protoc v3.9.0 +// protoc v3.21.12 // source: user.proto -// hz new -I idl -idl idl/user/user.proto -module github.com/cloudwego/hertz-examples/bizdemo/hertz_gorm_gen -// hz update -I idl -idl idl/user/user.proto - package user import ( @@ -128,11 +125,11 @@ type User struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty" form:"UserID" query:"UserID"` - Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty" form:"Name" query:"Name"` - Gender Gender `protobuf:"varint,3,opt,name=Gender,proto3,enum=user.Gender" json:"Gender,omitempty" form:"Gender" query:"Gender"` - Age int64 `protobuf:"varint,4,opt,name=Age,proto3" json:"Age,omitempty" form:"Age" query:"Age"` - Introduce string `protobuf:"bytes,5,opt,name=Introduce,proto3" json:"Introduce,omitempty" form:"Introduce" query:"Introduce"` + UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id" query:"user_id"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" form:"name" query:"name"` + Gender Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty" form:"gender" query:"gender"` + Age int64 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty" form:"age" query:"age"` + Introduce string `protobuf:"bytes,5,opt,name=introduce,proto3" json:"introduce,omitempty" form:"introduce" query:"introduce"` } func (x *User) Reset() { @@ -167,9 +164,9 @@ func (*User) Descriptor() ([]byte, []int) { return file_user_proto_rawDescGZIP(), []int{0} } -func (x *User) GetUserID() int64 { +func (x *User) GetUserId() int64 { if x != nil { - return x.UserID + return x.UserId } return 0 } @@ -207,10 +204,10 @@ type CreateUserReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"name,omitempty" form:"name" vd:"(len($) > 0 && len($) < 100)"` - Gender Gender `protobuf:"varint,2,opt,name=Gender,proto3,enum=user.Gender" json:"gender,omitempty" form:"gender" vd:"($ == 1||$ == 2)"` - Age int64 `protobuf:"varint,3,opt,name=Age,proto3" json:"age,omitempty" form:"age" vd:"$>0"` - Introduce string `protobuf:"bytes,4,opt,name=Introduce,proto3" json:"introduce,omitempty" form:"introduce" vd:"(len($) > 0 && len($) < 1000)"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" form:"name" vd:"(len($) > 0 && len($) < 100)"` + Gender Gender `protobuf:"varint,2,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty" form:"gender" vd:"($ == 1||$ == 2)"` + Age int64 `protobuf:"varint,3,opt,name=age,proto3" form:"age" form:"age" json:"age,omitempty" vd:"$>0"` + Introduce string `protobuf:"bytes,4,opt,name=introduce,proto3" json:"introduce,omitempty" form:"introduce" vd:"(len($) > 0 && len($) < 1000)"` } func (x *CreateUserReq) Reset() { @@ -278,8 +275,8 @@ type CreateUserResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=user.Code" json:"Code,omitempty" form:"Code" query:"Code"` - Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty" form:"Msg" query:"Msg"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=user.Code" json:"code,omitempty" form:"code" query:"code"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" query:"msg"` } func (x *CreateUserResp) Reset() { @@ -333,9 +330,9 @@ type QueryUserReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Keyword string `protobuf:"bytes,1,opt,name=Keyword,proto3" json:"keyword,omitempty" form:"keyword"` - Page int64 `protobuf:"varint,2,opt,name=Page,proto3" json:"page,omitempty" form:"page" vd:"$>0"` - PageSize int64 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"page_size,omitempty" form:"page_size" vd:"($ > 0 || $ <= 100)"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" form:"keyword" form:"keyword" json:"keyword,omitempty"` + Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty" form:"page" vd:"$>0"` + PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" form:"page_size" vd:"($ > 0 || $ <= 100)"` } func (x *QueryUserReq) Reset() { @@ -396,10 +393,10 @@ type QueryUserResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=user.Code" json:"Code,omitempty" form:"Code" query:"Code"` - Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty" form:"Msg" query:"Msg"` - User []*User `protobuf:"bytes,3,rep,name=User,proto3" json:"User" form:"User" query:"User"` - Total int64 `protobuf:"varint,4,opt,name=Total,proto3" json:"Total,omitempty" form:"Total" query:"Total"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=user.Code" json:"code,omitempty" form:"code" query:"code"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" query:"msg"` + User []*User `protobuf:"bytes,3,rep,name=user,proto3" json:"user,omitempty" form:"user" query:"user"` + Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty" form:"total" query:"total"` } func (x *QueryUserResp) Reset() { @@ -467,7 +464,7 @@ type DeleteUserReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty" path:"user_id" vd:"$>0"` + UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" path:"user_id" vd:"$>0"` } func (x *DeleteUserReq) Reset() { @@ -502,9 +499,9 @@ func (*DeleteUserReq) Descriptor() ([]byte, []int) { return file_user_proto_rawDescGZIP(), []int{5} } -func (x *DeleteUserReq) GetUserID() int64 { +func (x *DeleteUserReq) GetUserId() int64 { if x != nil { - return x.UserID + return x.UserId } return 0 } @@ -514,8 +511,8 @@ type DeleteUserResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=user.Code" json:"Code,omitempty" form:"Code" query:"Code"` - Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty" form:"Msg" query:"Msg"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=user.Code" json:"code,omitempty" form:"code" query:"code"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" query:"msg"` } func (x *DeleteUserResp) Reset() { @@ -569,11 +566,11 @@ type UpdateUserReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty" path:"user_id" vd:"$>0"` - Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name,omitempty" form:"name" vd:"(len($) > 0 && len($) < 100)"` - Gender Gender `protobuf:"varint,3,opt,name=Gender,proto3,enum=user.Gender" json:"gender,omitempty" form:"gender" vd:"($ == 1||$ == 2)"` - Age int64 `protobuf:"varint,4,opt,name=Age,proto3" json:"age,omitempty" form:"age" vd:"$>0"` - Introduce string `protobuf:"bytes,5,opt,name=Introduce,proto3" json:"introduce,omitempty" form:"introduce" vd:"(len($) > 0 && len($) < 1000)"` + UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" path:"user_id" vd:"$>0"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" form:"name" vd:"(len($) > 0 && len($) < 100)"` + Gender Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty" form:"gender" vd:"($ == 1||$ == 2)"` + Age int64 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty" form:"age" vd:"$>0"` + Introduce string `protobuf:"bytes,5,opt,name=introduce,proto3" form:"introduce" form:"introduce" json:"introduce,omitempty" vd:"(len($) > 0 && len($) < 1000)"` } func (x *UpdateUserReq) Reset() { @@ -608,9 +605,9 @@ func (*UpdateUserReq) Descriptor() ([]byte, []int) { return file_user_proto_rawDescGZIP(), []int{7} } -func (x *UpdateUserReq) GetUserID() int64 { +func (x *UpdateUserReq) GetUserId() int64 { if x != nil { - return x.UserID + return x.UserId } return 0 } @@ -648,8 +645,8 @@ type UpdateUserResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=user.Code" json:"Code,omitempty" form:"Code" query:"Code"` - Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty" form:"Msg" query:"Msg"` + Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=user.Code" json:"code,omitempty" form:"code" query:"code"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" query:"msg"` } func (x *UpdateUserResp) Reset() { @@ -703,7 +700,7 @@ type OtherResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty" form:"Msg" query:"Msg"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" query:"msg"` } func (x *OtherResp) Reset() { @@ -749,129 +746,129 @@ var File_user_proto protoreflect.FileDescriptor var file_user_proto_rawDesc = []byte{ 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x1a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01, - 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x12, - 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x52, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x41, 0x67, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x41, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x6e, - 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x49, - 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x22, 0xa9, 0x02, 0x0a, 0x0d, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x44, 0x0a, 0x04, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xca, 0xbb, 0x18, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0xda, 0xbb, 0x18, 0x1c, 0x28, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3e, 0x20, - 0x30, 0x20, 0x26, 0x26, 0x20, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3c, 0x20, 0x31, 0x30, - 0x30, 0x29, 0xe2, 0xbb, 0x18, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x4e, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x0c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x28, - 0xca, 0xbb, 0x18, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0xda, 0xbb, 0x18, 0x10, 0x28, 0x24, - 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x7c, 0x7c, 0x24, 0x20, 0x3d, 0x3d, 0x20, 0x32, 0x29, 0xe2, 0xbb, - 0x18, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x12, 0x27, 0x0a, 0x03, 0x41, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x15, 0xca, - 0xbb, 0x18, 0x03, 0x61, 0x67, 0x65, 0xda, 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0xe2, 0xbb, 0x18, - 0x03, 0x61, 0x67, 0x65, 0x52, 0x03, 0x41, 0x67, 0x65, 0x12, 0x59, 0x0a, 0x09, 0x49, 0x6e, 0x74, - 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3b, 0xca, 0xbb, - 0x18, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0xda, 0xbb, 0x18, 0x1d, 0x28, + 0x65, 0x72, 0x1a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, + 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x22, 0xa9, 0x02, 0x0a, 0x0d, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x44, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xca, 0xbb, 0x18, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0xda, 0xbb, 0x18, 0x1c, 0x28, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3e, + 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3c, 0x20, 0x31, + 0x30, 0x30, 0x29, 0xe2, 0xbb, 0x18, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x0c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, + 0x28, 0xca, 0xbb, 0x18, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0xda, 0xbb, 0x18, 0x10, 0x28, + 0x24, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x7c, 0x7c, 0x24, 0x20, 0x3d, 0x3d, 0x20, 0x32, 0x29, 0xe2, + 0xbb, 0x18, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x12, 0x27, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x15, + 0xca, 0xbb, 0x18, 0x03, 0x61, 0x67, 0x65, 0xda, 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0xe2, 0xbb, + 0x18, 0x03, 0x61, 0x67, 0x65, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x59, 0x0a, 0x09, 0x69, 0x6e, + 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3b, 0xca, + 0xbb, 0x18, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0xda, 0xbb, 0x18, 0x1d, + 0x28, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3e, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x6c, + 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x30, 0x30, 0x29, 0xe2, 0xbb, 0x18, + 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x72, + 0x6f, 0x64, 0x75, 0x63, 0x65, 0x22, 0x42, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, + 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xbd, 0x01, 0x0a, 0x0c, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x30, 0x0a, 0x07, 0x6b, 0x65, + 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x16, 0xca, 0xbb, 0x18, + 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0xe2, 0xbb, 0x18, 0x07, 0x6b, 0x65, 0x79, 0x77, + 0x6f, 0x72, 0x64, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x04, + 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x17, 0xca, 0xbb, 0x18, 0x04, + 0x70, 0x61, 0x67, 0x65, 0xda, 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0xe2, 0xbb, 0x18, 0x04, 0x70, + 0x61, 0x67, 0x65, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x31, 0xca, 0xbb, + 0x18, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0xda, 0xbb, 0x18, 0x13, 0x28, + 0x24, 0x20, 0x3e, 0x20, 0x30, 0x20, 0x7c, 0x7c, 0x20, 0x24, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x30, + 0x30, 0x29, 0xe2, 0xbb, 0x18, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x52, + 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x77, 0x0a, 0x0d, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x22, 0x3c, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x12, 0x2b, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x42, 0x12, 0xd2, 0xbb, 0x18, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0xda, 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x22, 0x42, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6d, 0x73, 0x67, 0x22, 0xd6, 0x02, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x2b, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x12, 0xd2, 0xbb, 0x18, 0x07, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0xda, 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x30, 0xca, 0xbb, 0x18, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xda, 0xbb, 0x18, 0x1c, 0x28, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3e, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x6c, 0x65, - 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x30, 0x30, 0x29, 0xe2, 0xbb, 0x18, 0x09, - 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x52, 0x09, 0x49, 0x6e, 0x74, 0x72, 0x6f, - 0x64, 0x75, 0x63, 0x65, 0x22, 0x42, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, - 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0xbc, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x30, 0x0a, 0x07, 0x4b, 0x65, 0x79, - 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x16, 0xca, 0xbb, 0x18, 0x07, - 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0xe2, 0xbb, 0x18, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, - 0x72, 0x64, 0x52, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x04, 0x50, - 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x17, 0xca, 0xbb, 0x18, 0x04, 0x70, - 0x61, 0x67, 0x65, 0xda, 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0xe2, 0xbb, 0x18, 0x04, 0x70, 0x61, - 0x67, 0x65, 0x52, 0x04, 0x50, 0x61, 0x67, 0x65, 0x12, 0x4d, 0x0a, 0x08, 0x50, 0x61, 0x67, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x31, 0xca, 0xbb, 0x18, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0xda, 0xbb, 0x18, 0x13, 0x28, 0x24, 0x20, - 0x3e, 0x20, 0x30, 0x20, 0x7c, 0x7c, 0x20, 0x24, 0x20, 0x3c, 0x3d, 0x20, 0x31, 0x30, 0x30, 0x29, - 0xe2, 0xbb, 0x18, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x52, 0x08, 0x50, - 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x77, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x6f, - 0x64, 0x65, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x04, 0x55, 0x73, - 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, - 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x54, 0x6f, 0x74, 0x61, 0x6c, - 0x22, 0x3b, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x12, 0x2a, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x42, 0x12, 0xd2, 0xbb, 0x18, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0xda, 0xbb, - 0x18, 0x03, 0x24, 0x3e, 0x30, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x22, 0x42, 0x0a, - 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, - 0x1e, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, - 0x67, 0x22, 0xd5, 0x02, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x12, 0x2a, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x42, 0x12, 0xd2, 0xbb, 0x18, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0xda, 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, - 0x44, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xca, - 0xbb, 0x18, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xda, 0xbb, 0x18, 0x1c, 0x28, 0x6c, 0x65, 0x6e, 0x28, - 0x24, 0x29, 0x20, 0x3e, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, - 0x20, 0x3c, 0x20, 0x31, 0x30, 0x30, 0x29, 0xe2, 0xbb, 0x18, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x52, - 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x42, 0x28, 0xca, 0xbb, 0x18, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0xda, - 0xbb, 0x18, 0x10, 0x28, 0x24, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x7c, 0x7c, 0x24, 0x20, 0x3d, 0x3d, - 0x20, 0x32, 0x29, 0xe2, 0xbb, 0x18, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x47, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x03, 0x41, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x03, 0x42, 0x15, 0xca, 0xbb, 0x18, 0x03, 0x61, 0x67, 0x65, 0xda, 0xbb, 0x18, 0x03, 0x24, - 0x3e, 0x30, 0xe2, 0xbb, 0x18, 0x03, 0x61, 0x67, 0x65, 0x52, 0x03, 0x41, 0x67, 0x65, 0x12, 0x59, - 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x3b, 0xca, 0xbb, 0x18, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, - 0xda, 0xbb, 0x18, 0x1d, 0x28, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3e, 0x20, 0x30, 0x20, - 0x26, 0x26, 0x20, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x30, 0x30, - 0x29, 0xe2, 0xbb, 0x18, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x52, 0x09, - 0x49, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x22, 0x42, 0x0a, 0x0e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x43, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4d, - 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x22, 0x1d, 0x0a, - 0x09, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x73, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4d, 0x73, 0x67, 0x2a, 0x30, 0x0a, 0x04, - 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, - 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x42, 0x45, 0x72, 0x72, 0x10, 0x02, 0x2a, 0x2b, - 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, - 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x61, 0x6c, 0x65, 0x10, 0x01, 0x12, - 0x0a, 0x0a, 0x06, 0x46, 0x65, 0x6d, 0x61, 0x6c, 0x65, 0x10, 0x02, 0x32, 0xf3, 0x02, 0x0a, 0x0b, - 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x54, 0x0a, 0x12, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x13, 0xd2, 0xc1, - 0x18, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x12, 0x50, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x75, 0x73, 0x65, - 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, - 0x12, 0xd2, 0xc1, 0x18, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x12, 0x5d, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x14, - 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x22, 0x1c, 0xd2, 0xc1, 0x18, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x3a, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x12, 0x5d, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, - 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x1c, 0xd2, 0xc1, 0x18, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x2f, 0x3a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x42, 0x4a, 0x5a, 0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x65, 0x67, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x2d, - 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x62, 0x69, 0x7a, 0x64, 0x65, 0x6d, 0x6f, - 0x2f, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x5f, 0x67, 0x65, 0x6e, 0x2f, 0x62, 0x69, 0x7a, 0x2f, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3c, 0x20, 0x31, 0x30, 0x30, 0x29, 0xe2, 0xbb, 0x18, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x67, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x42, 0x28, 0xca, 0xbb, 0x18, 0x06, 0x67, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0xda, 0xbb, 0x18, 0x10, 0x28, 0x24, 0x20, 0x3d, 0x3d, 0x20, 0x31, 0x7c, 0x7c, + 0x24, 0x20, 0x3d, 0x3d, 0x20, 0x32, 0x29, 0xe2, 0xbb, 0x18, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x03, 0x61, 0x67, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x15, 0xca, 0xbb, 0x18, 0x03, 0x61, 0x67, 0x65, 0xda, + 0xbb, 0x18, 0x03, 0x24, 0x3e, 0x30, 0xe2, 0xbb, 0x18, 0x03, 0x61, 0x67, 0x65, 0x52, 0x03, 0x61, + 0x67, 0x65, 0x12, 0x59, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3b, 0xca, 0xbb, 0x18, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, + 0x64, 0x75, 0x63, 0x65, 0xda, 0xbb, 0x18, 0x1d, 0x28, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, + 0x3e, 0x20, 0x30, 0x20, 0x26, 0x26, 0x20, 0x6c, 0x65, 0x6e, 0x28, 0x24, 0x29, 0x20, 0x3c, 0x20, + 0x31, 0x30, 0x30, 0x30, 0x29, 0xe2, 0xbb, 0x18, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, + 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x22, 0x42, 0x0a, + 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, + 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, + 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, + 0x67, 0x22, 0x1d, 0x0a, 0x09, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, + 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, + 0x2a, 0x30, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x42, 0x45, 0x72, 0x72, + 0x10, 0x02, 0x2a, 0x2b, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, + 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x61, 0x6c, + 0x65, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x65, 0x6d, 0x61, 0x6c, 0x65, 0x10, 0x02, 0x32, + 0xf3, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x54, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x13, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x22, 0x13, 0xd2, 0xc1, 0x18, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x2e, 0x75, 0x73, 0x65, + 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x13, + 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x22, 0x12, 0xd2, 0xc1, 0x18, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x73, 0x65, + 0x72, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x5d, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x13, 0x2e, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x1c, 0xd2, 0xc1, 0x18, 0x18, 0x2f, 0x76, + 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x3a, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x12, 0x5d, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x13, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x1a, 0x14, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x1c, 0xd2, 0xc1, 0x18, 0x18, 0x2f, 0x76, 0x31, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x2f, 0x3a, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x51, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x65, 0x67, 0x6f, 0x2f, 0x68, 0x65, + 0x72, 0x74, 0x7a, 0x2d, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x62, 0x69, 0x7a, + 0x64, 0x65, 0x6d, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x5f, 0x67, 0x6f, 0x72, 0x6d, 0x5f, + 0x67, 0x65, 0x6e, 0x2f, 0x62, 0x69, 0x7a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x68, 0x65, + 0x72, 0x74, 0x7a, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -886,34 +883,31 @@ func file_user_proto_rawDescGZIP() []byte { return file_user_proto_rawDescData } -var ( - file_user_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 10) - file_user_proto_goTypes = []interface{}{ - (Code)(0), // 0: user.Code - (Gender)(0), // 1: user.Gender - (*User)(nil), // 2: user.User - (*CreateUserReq)(nil), // 3: user.CreateUserReq - (*CreateUserResp)(nil), // 4: user.CreateUserResp - (*QueryUserReq)(nil), // 5: user.QueryUserReq - (*QueryUserResp)(nil), // 6: user.QueryUserResp - (*DeleteUserReq)(nil), // 7: user.DeleteUserReq - (*DeleteUserResp)(nil), // 8: user.DeleteUserResp - (*UpdateUserReq)(nil), // 9: user.UpdateUserReq - (*UpdateUserResp)(nil), // 10: user.UpdateUserResp - (*OtherResp)(nil), // 11: user.OtherResp - } -) - +var file_user_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_user_proto_goTypes = []interface{}{ + (Code)(0), // 0: user.Code + (Gender)(0), // 1: user.Gender + (*User)(nil), // 2: user.User + (*CreateUserReq)(nil), // 3: user.CreateUserReq + (*CreateUserResp)(nil), // 4: user.CreateUserResp + (*QueryUserReq)(nil), // 5: user.QueryUserReq + (*QueryUserResp)(nil), // 6: user.QueryUserResp + (*DeleteUserReq)(nil), // 7: user.DeleteUserReq + (*DeleteUserResp)(nil), // 8: user.DeleteUserResp + (*UpdateUserReq)(nil), // 9: user.UpdateUserReq + (*UpdateUserResp)(nil), // 10: user.UpdateUserResp + (*OtherResp)(nil), // 11: user.OtherResp +} var file_user_proto_depIdxs = []int32{ - 1, // 0: user.User.Gender:type_name -> user.Gender - 1, // 1: user.CreateUserReq.Gender:type_name -> user.Gender - 0, // 2: user.CreateUserResp.Code:type_name -> user.Code - 0, // 3: user.QueryUserResp.Code:type_name -> user.Code - 2, // 4: user.QueryUserResp.User:type_name -> user.User - 0, // 5: user.DeleteUserResp.Code:type_name -> user.Code - 1, // 6: user.UpdateUserReq.Gender:type_name -> user.Gender - 0, // 7: user.UpdateUserResp.Code:type_name -> user.Code + 1, // 0: user.User.gender:type_name -> user.Gender + 1, // 1: user.CreateUserReq.gender:type_name -> user.Gender + 0, // 2: user.CreateUserResp.code:type_name -> user.Code + 0, // 3: user.QueryUserResp.code:type_name -> user.Code + 2, // 4: user.QueryUserResp.user:type_name -> user.User + 0, // 5: user.DeleteUserResp.code:type_name -> user.Code + 1, // 6: user.UpdateUserReq.gender:type_name -> user.Gender + 0, // 7: user.UpdateUserResp.code:type_name -> user.Code 3, // 8: user.UserService.CreateUserResponse:input_type -> user.CreateUserReq 5, // 9: user.UserService.QueryUserResponse:input_type -> user.QueryUserReq 9, // 10: user.UserService.UpdateUserResponse:input_type -> user.UpdateUserReq diff --git a/bizdemo/hertz_gorm_gen/biz/pack/user.go b/bizdemo/hertz_gorm_gen/biz/pack/user.go index d613b813..e47268fe 100644 --- a/bizdemo/hertz_gorm_gen/biz/pack/user.go +++ b/bizdemo/hertz_gorm_gen/biz/pack/user.go @@ -38,7 +38,7 @@ func User(model *orm_gen.User) *user.User { return nil } return &user.User{ - UserID: model.ID, + UserId: model.ID, Name: model.Name, Gender: user.Gender(model.Gender), Age: int64(model.Age), diff --git a/bizdemo/hertz_gorm_gen/biz/router/user/middleware.go b/bizdemo/hertz_gorm_gen/biz/router/user/middleware.go index 9766fed3..963f5ed5 100644 --- a/bizdemo/hertz_gorm_gen/biz/router/user/middleware.go +++ b/bizdemo/hertz_gorm_gen/biz/router/user/middleware.go @@ -16,7 +16,7 @@ // Code generated by hertz generator. -package User +package user import ( "github.com/cloudwego/hertz/pkg/app" diff --git a/bizdemo/hertz_gorm_gen/biz/router/user/user.go b/bizdemo/hertz_gorm_gen/biz/router/user/user.go index 66b54943..a74dba28 100644 --- a/bizdemo/hertz_gorm_gen/biz/router/user/user.go +++ b/bizdemo/hertz_gorm_gen/biz/router/user/user.go @@ -1,6 +1,6 @@ // Code generated by hertz generator. DO NOT EDIT. -package User +package user import ( "github.com/cloudwego/hertz/pkg/app/server" diff --git a/bizdemo/hertz_gorm_gen/idl/user/user.proto b/bizdemo/hertz_gorm_gen/idl/user/user.proto index a5914637..31a75fec 100644 --- a/bizdemo/hertz_gorm_gen/idl/user/user.proto +++ b/bizdemo/hertz_gorm_gen/idl/user/user.proto @@ -20,62 +20,62 @@ enum Gender { } message User{ - int64 UserID = 1; - string Name = 2; - Gender Gender = 3; - int64 Age = 4; - string Introduce = 5; + int64 user_id = 1; + string name = 2; + Gender gender = 3; + int64 age = 4; + string introduce = 5; } message CreateUserReq{ - string Name = 1 [(api.body) = "name", (api.form) = "name", (api.vd) = "(len($) > 0 && len($) < 100)"]; - Gender Gender = 2 [(api.body) = "gender", (api.form) = "gender", (api.vd) = "($ == 1||$ == 2)"]; - int64 Age = 3 [(api.body) = "age", (api.form) = "age", (api.vd) = "$>0"]; - string Introduce = 4 [(api.body) = "introduce", (api.form) = "introduce", (api.vd) = "(len($) > 0 && len($) < 1000)"]; + string name = 1 [(api.body) = "name", (api.form) = "name", (api.vd) = "(len($) > 0 && len($) < 100)"]; + Gender gender = 2 [(api.body) = "gender", (api.form) = "gender", (api.vd) = "($ == 1||$ == 2)"]; + int64 age = 3 [(api.body) = "age", (api.form) = "age", (api.vd) = "$>0"]; + string introduce = 4 [(api.body) = "introduce", (api.form) = "introduce", (api.vd) = "(len($) > 0 && len($) < 1000)"]; } message CreateUserResp{ - Code Code = 1; - string Msg = 2; + Code code = 1; + string msg = 2; } message QueryUserReq{ - string Keyword = 1 [(api.body) = "keyword", (api.form) = "keyword"]; - int64 Page = 2 [(api.body) = "page", (api.form) = "page", (api.vd) = "$>0"]; - int64 PageSize = 3 [(api.body) = "page_size", (api.form) = "page_size", (api.vd) = "($ > 0 || $ <= 100)"]; + string keyword = 1 [(api.body) = "keyword", (api.form) = "keyword"]; + int64 page = 2 [(api.body) = "page", (api.form) = "page", (api.vd) = "$>0"]; + int64 page_size = 3 [(api.body) = "page_size", (api.form) = "page_size", (api.vd) = "($ > 0 || $ <= 100)"]; } message QueryUserResp{ - Code Code = 1; - string Msg = 2; - repeated User User = 3; - int64 Total = 4; + Code code = 1; + string msg = 2; + repeated User user = 3; + int64 total = 4; } message DeleteUserReq{ - int64 UserID = 1 [(api.path) = "user_id", (api.vd) = "$>0"]; + int64 user_id = 1 [(api.path) = "user_id", (api.vd) = "$>0"]; } message DeleteUserResp{ - Code Code = 1; - string Msg = 2; + Code code = 1; + string msg = 2; } message UpdateUserReq{ - int64 UserID = 1 [(api.path) = "user_id", (api.vd) = "$>0"]; - string Name = 2 [(api.body) = "name", (api.form) = "name", (api.vd) = "(len($) > 0 && len($) < 100)"]; - Gender Gender = 3 [(api.body) = "gender", (api.form) = "gender", (api.vd) = "($ == 1||$ == 2)"]; - int64 Age = 4 [(api.body) = "age", (api.form) = "age", (api.vd) = "$>0"]; - string Introduce = 5 [(api.body) = "introduce", (api.form) = "introduce", (api.vd) = "(len($) > 0 && len($) < 1000)"]; + int64 user_id = 1 [(api.path) = "user_id", (api.vd) = "$>0"]; + string name = 2 [(api.body) = "name", (api.form) = "name", (api.vd) = "(len($) > 0 && len($) < 100)"]; + Gender gender = 3 [(api.body) = "gender", (api.form) = "gender", (api.vd) = "($ == 1||$ == 2)"]; + int64 age = 4 [(api.body) = "age", (api.form) = "age", (api.vd) = "$>0"]; + string introduce = 5 [(api.body) = "introduce", (api.form) = "introduce", (api.vd) = "(len($) > 0 && len($) < 1000)"]; } message UpdateUserResp{ - Code Code = 1; - string Msg = 2; + Code code = 1; + string msg = 2; } message OtherResp { - string Msg = 1; + string msg = 1; } service UserService {