diff --git a/rpc/user/pb/user.pb.go b/rpc/user/pb/user.pb.go index bf9b3ad..6e2ef4a 100644 --- a/rpc/user/pb/user.pb.go +++ b/rpc/user/pb/user.pb.go @@ -1036,7 +1036,6 @@ func (x *InternalCheckUpdateData) GetResult() bool { type InternalUpdateReq struct { state protoimpl.MessageState `protogen:"open.v1"` - UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` @@ -1082,13 +1081,6 @@ func (*InternalUpdateReq) Descriptor() ([]byte, []int) { return file_user_user_proto_rawDescGZIP(), []int{17} } -func (x *InternalUpdateReq) GetUserId() int64 { - if x != nil { - return x.UserId - } - return 0 -} - func (x *InternalUpdateReq) GetMobile() string { if x != nil { return x.Mobile @@ -1340,9 +1332,8 @@ const file_user_user_proto_rawDesc = "" + "\x06mobile\x18\x02 \x01(\tR\x06mobile\x12!\n" + "\fsubject_type\x18\x03 \x01(\tR\vsubjectType\"1\n" + "\x17InternalCheckUpdateData\x12\x16\n" + - "\x06result\x18\x01 \x01(\bR\x06result\"\xe0\x02\n" + - "\x11InternalUpdateReq\x12\x17\n" + - "\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" + + "\x06result\x18\x01 \x01(\bR\x06result\"\xc7\x02\n" + + "\x11InternalUpdateReq\x12\x16\n" + "\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" + "\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x16\n" + diff --git a/rpc/user/user.pb b/rpc/user/user.pb index b8d6d0c..a838d70 100644 Binary files a/rpc/user/user.pb and b/rpc/user/user.pb differ diff --git a/rpc/user/user.proto b/rpc/user/user.proto index e2946fb..81c251c 100644 --- a/rpc/user/user.proto +++ b/rpc/user/user.proto @@ -107,7 +107,6 @@ message InternalCheckUpdateData { } message InternalUpdateReq { - int64 user_id = 1; string mobile = 2; string name = 3; string avatar = 4; diff --git a/services/user/validator/user.go b/services/user/validator/user.go index 835e1f7..55868e4 100644 --- a/services/user/validator/user.go +++ b/services/user/validator/user.go @@ -143,7 +143,6 @@ func (p InternalCheckUpdateValidator) GetMessage() validate.ValidatorMessages { } type InternalUpdateValidator struct { - UserId int64 `validate:"omitempty,gte=0"` Mobile string `validate:"required,max=20"` Name string `validate:"omitempty,max=64"` Avatar string `validate:"omitempty,max=255"`