Browse Source

update

master
jaydan 7 months ago
parent
commit
1de9dceb08
  1. 285
      auth/v1/auth.pb.go
  2. 8
      auth/v1/auth.proto
  3. 38
      auth/v1/auth_grpc.pb.go
  4. 7
      user_auth/v1/user_auth.proto

285
auth/v1/auth.pb.go

@ -31,7 +31,8 @@ type LoginUsePasswordReq struct {
// sha256(密码原文)
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"`
// 登录渠道枚举值, 1:app, 2:web
Channel int32 `protobuf:"varint,3,opt,name=channel,proto3" json:"channel"`
Channel int32 `protobuf:"varint,3,opt,name=channel,proto3" json:"channel"`
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip"`
}
func (x *LoginUsePasswordReq) Reset() {
@ -87,6 +88,13 @@ func (x *LoginUsePasswordReq) GetChannel() int32 {
return 0
}
func (x *LoginUsePasswordReq) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
type LoginUseSMSReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@ -1469,19 +1477,75 @@ func (x *QueryBindResp) GetThirdPartyType() []int32 {
return nil
}
type UpdateUserLoginInfoReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip"`
}
func (x *UpdateUserLoginInfoReq) Reset() {
*x = UpdateUserLoginInfoReq{}
if protoimpl.UnsafeEnabled {
mi := &file_auth_v1_auth_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateUserLoginInfoReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateUserLoginInfoReq) ProtoMessage() {}
func (x *UpdateUserLoginInfoReq) ProtoReflect() protoreflect.Message {
mi := &file_auth_v1_auth_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateUserLoginInfoReq.ProtoReflect.Descriptor instead.
func (*UpdateUserLoginInfoReq) Descriptor() ([]byte, []int) {
return file_auth_v1_auth_proto_rawDescGZIP(), []int{25}
}
func (x *UpdateUserLoginInfoReq) GetUid() int64 {
if x != nil {
return x.Uid
}
return 0
}
func (x *UpdateUserLoginInfoReq) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
var File_auth_v1_auth_proto protoreflect.FileDescriptor
var file_auth_v1_auth_proto_rawDesc = []byte{
0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x13, 0x63,
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x67, 0x0a, 0x13, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x50, 0x61,
0x74, 0x6f, 0x22, 0x77, 0x0a, 0x13, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x50, 0x61,
0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65,
0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65,
0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01,
0x28, 0x05, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x6c, 0x0a, 0x0e, 0x4c,
0x28, 0x05, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x6c, 0x0a, 0x0e, 0x4c,
0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x53, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a,
0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68,
0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x72,
@ -1618,83 +1682,93 @@ var file_auth_v1_auth_proto_rawDesc = []byte{
0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x69, 0x72, 0x64, 0x5f,
0x70, 0x61, 0x72, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05,
0x52, 0x0e, 0x74, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65,
0x32, 0x86, 0x09, 0x0a, 0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x44, 0x0a, 0x10, 0x4c, 0x6f, 0x67,
0x69, 0x6e, 0x55, 0x73, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x2e,
0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65,
0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x61, 0x75,
0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12,
0x3a, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x53, 0x4d, 0x53, 0x12, 0x17,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73,
0x65, 0x53, 0x4d, 0x53, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x58, 0x0a, 0x18, 0x4c,
0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74,
0x79, 0x57, 0x65, 0x63, 0x68, 0x61, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50,
0x61, 0x72, 0x74, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x69,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x52, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73,
0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x61, 0x75, 0x74, 0x68,
0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x52, 0x0a, 0x11, 0x51, 0x75, 0x65,
0x72, 0x79, 0x55, 0x69, 0x64, 0x42, 0x79, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69,
0x64, 0x42, 0x79, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e,
0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69, 0x64,
0x42, 0x79, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a,
0x0a, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x61, 0x75,
0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72,
0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4a, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x76,
0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31,
0x2e, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
0x22, 0x3a, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f,
0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x32, 0xe2, 0x09, 0x0a,
0x04, 0x41, 0x75, 0x74, 0x68, 0x12, 0x44, 0x0a, 0x10, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73,
0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x2e, 0x61, 0x75, 0x74, 0x68,
0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x50, 0x61, 0x73, 0x73,
0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3a, 0x0a, 0x0b, 0x4c,
0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x53, 0x4d, 0x53, 0x12, 0x17, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x53, 0x4d, 0x53,
0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f,
0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x58, 0x0a, 0x18, 0x4c, 0x6f, 0x67, 0x69, 0x6e,
0x55, 0x73, 0x65, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x57, 0x65, 0x63,
0x68, 0x61, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f,
0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79,
0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x68,
0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73,
0x70, 0x12, 0x52, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64,
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1d, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31,
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x52, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69,
0x64, 0x42, 0x79, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69, 0x64, 0x42, 0x79, 0x53,
0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x61, 0x75, 0x74, 0x68,
0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69, 0x64, 0x42, 0x79, 0x53, 0x65,
0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x0a, 0x42, 0x61, 0x6e,
0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x12, 0x4f, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72,
0x50, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79, 0x12, 0x1c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61,
0x63, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79,
0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77,
0x6f, 0x72, 0x64, 0x12, 0x17, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d,
0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x12, 0x40, 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x4f, 0x75, 0x74, 0x12, 0x12, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x12, 0x4e, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x63, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61,
0x6e, 0x63, 0x65, 0x6c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70,
0x74, 0x79, 0x12, 0x4c, 0x0a, 0x0c, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x57, 0x65, 0x63, 0x68,
0x61, 0x74, 0x12, 0x18, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x62,
0x69, 0x6e, 0x64, 0x57, 0x65, 0x63, 0x68, 0x61, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d,
0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x12, 0x48, 0x0a, 0x0a, 0x42, 0x69, 0x6e, 0x64, 0x57, 0x65, 0x63, 0x68, 0x61, 0x74, 0x12, 0x16,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x57, 0x65, 0x63,
0x68, 0x61, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f,
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3a, 0x0a, 0x09, 0x51, 0x75,
0x65, 0x72, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x12, 0x15, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76,
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x16,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x69,
0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x61, 0x0a, 0x17, 0x49, 0x6e, 0x69, 0x74, 0x55, 0x73,
0x65, 0x72, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x4d, 0x61,
0x70, 0x12, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x70, 0x74, 0x79, 0x12, 0x4a, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x55, 0x73,
0x65, 0x72, 0x12, 0x17, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63,
0x6f, 0x76, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65,
0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12,
0x4f, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x76,
0x61, 0x63, 0x79, 0x12, 0x1c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79, 0x52, 0x65,
0x71, 0x1a, 0x1d, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72,
0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70,
0x12, 0x4a, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
0x17, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73,
0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63,
0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x40, 0x0a, 0x06,
0x4c, 0x6f, 0x67, 0x4f, 0x75, 0x74, 0x12, 0x12, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31,
0x2e, 0x4c, 0x6f, 0x67, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4e,
0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
0x19, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4c,
0x0a, 0x0c, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x57, 0x65, 0x63, 0x68, 0x61, 0x74, 0x12, 0x18,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x57,
0x65, 0x63, 0x68, 0x61, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63,
0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x48, 0x0a, 0x0a,
0x42, 0x69, 0x6e, 0x64, 0x57, 0x65, 0x63, 0x68, 0x61, 0x74, 0x12, 0x16, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x57, 0x65, 0x63, 0x68, 0x61, 0x74, 0x52,
0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3a, 0x0a, 0x09, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42,
0x69, 0x6e, 0x64, 0x12, 0x15, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x69, 0x6e, 0x64, 0x52, 0x65,
0x73, 0x70, 0x12, 0x61, 0x0a, 0x17, 0x49, 0x6e, 0x69, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x68,
0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, 0x64, 0x4d, 0x61, 0x70, 0x12, 0x22, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69,
0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74,
0x2e, 0x67, 0x7a, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a, 0x75, 0x6d,
0x61, 0x69, 0x79, 0x78, 0x2e, 0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x56,
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5a, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55,
0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x2e, 0x61,
0x75, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e,
0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x2e, 0x67, 0x7a, 0x2e, 0x69, 0x6e, 0x74, 0x65,
0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a, 0x75, 0x6d, 0x61, 0x69, 0x79, 0x78, 0x2e, 0x63, 0x6e, 0x2f,
0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
0x76, 0x31, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
@ -1709,7 +1783,7 @@ func file_auth_v1_auth_proto_rawDescGZIP() []byte {
return file_auth_v1_auth_proto_rawDescData
}
var file_auth_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_auth_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
var file_auth_v1_auth_proto_goTypes = []interface{}{
(*LoginUsePasswordReq)(nil), // 0: auth.v1.LoginUsePasswordReq
(*LoginUseSMSReq)(nil), // 1: auth.v1.LoginUseSMSReq
@ -1736,7 +1810,8 @@ var file_auth_v1_auth_proto_goTypes = []interface{}{
(*BindWechatReq)(nil), // 22: auth.v1.BindWechatReq
(*QueryBindReq)(nil), // 23: auth.v1.QueryBindReq
(*QueryBindResp)(nil), // 24: auth.v1.QueryBindResp
(*common.Empty)(nil), // 25: metachat.api.service.common.Empty
(*UpdateUserLoginInfoReq)(nil), // 25: auth.v1.UpdateUserLoginInfoReq
(*common.Empty)(nil), // 26: metachat.api.service.common.Empty
}
var file_auth_v1_auth_proto_depIdxs = []int32{
11, // 0: auth.v1.QueryBannedUserResp.items:type_name -> auth.v1.QueryBannedUserRespItems
@ -1755,24 +1830,26 @@ var file_auth_v1_auth_proto_depIdxs = []int32{
21, // 13: auth.v1.Auth.UnbindWechat:input_type -> auth.v1.UnbindWechatReq
22, // 14: auth.v1.Auth.BindWechat:input_type -> auth.v1.BindWechatReq
23, // 15: auth.v1.Auth.QueryBind:input_type -> auth.v1.QueryBindReq
25, // 16: auth.v1.Auth.InitUserThirdPartyIdMap:input_type -> metachat.api.service.common.Empty
2, // 17: auth.v1.Auth.LoginUsePassword:output_type -> auth.v1.LoginResp
2, // 18: auth.v1.Auth.LoginUseSMS:output_type -> auth.v1.LoginResp
4, // 19: auth.v1.Auth.LoginUseThirdPartyWechat:output_type -> auth.v1.ThirdPartyLoginResp
15, // 20: auth.v1.Auth.QueryUserIdentity:output_type -> auth.v1.QueryUserIdentityResp
17, // 21: auth.v1.Auth.QueryUidBySession:output_type -> auth.v1.QueryUidBySessionResp
25, // 22: auth.v1.Auth.BannedUser:output_type -> metachat.api.service.common.Empty
25, // 23: auth.v1.Auth.RecoverUser:output_type -> metachat.api.service.common.Empty
8, // 24: auth.v1.Auth.QueryUserPrivacy:output_type -> auth.v1.QueryUserPrivacyResp
25, // 25: auth.v1.Auth.SetPassword:output_type -> metachat.api.service.common.Empty
25, // 26: auth.v1.Auth.LogOut:output_type -> metachat.api.service.common.Empty
25, // 27: auth.v1.Auth.CancelAccount:output_type -> metachat.api.service.common.Empty
25, // 28: auth.v1.Auth.UnbindWechat:output_type -> metachat.api.service.common.Empty
25, // 29: auth.v1.Auth.BindWechat:output_type -> metachat.api.service.common.Empty
24, // 30: auth.v1.Auth.QueryBind:output_type -> auth.v1.QueryBindResp
25, // 31: auth.v1.Auth.InitUserThirdPartyIdMap:output_type -> metachat.api.service.common.Empty
17, // [17:32] is the sub-list for method output_type
2, // [2:17] is the sub-list for method input_type
26, // 16: auth.v1.Auth.InitUserThirdPartyIdMap:input_type -> metachat.api.service.common.Empty
25, // 17: auth.v1.Auth.UpdateUserLoginInfo:input_type -> auth.v1.UpdateUserLoginInfoReq
2, // 18: auth.v1.Auth.LoginUsePassword:output_type -> auth.v1.LoginResp
2, // 19: auth.v1.Auth.LoginUseSMS:output_type -> auth.v1.LoginResp
4, // 20: auth.v1.Auth.LoginUseThirdPartyWechat:output_type -> auth.v1.ThirdPartyLoginResp
15, // 21: auth.v1.Auth.QueryUserIdentity:output_type -> auth.v1.QueryUserIdentityResp
17, // 22: auth.v1.Auth.QueryUidBySession:output_type -> auth.v1.QueryUidBySessionResp
26, // 23: auth.v1.Auth.BannedUser:output_type -> metachat.api.service.common.Empty
26, // 24: auth.v1.Auth.RecoverUser:output_type -> metachat.api.service.common.Empty
8, // 25: auth.v1.Auth.QueryUserPrivacy:output_type -> auth.v1.QueryUserPrivacyResp
26, // 26: auth.v1.Auth.SetPassword:output_type -> metachat.api.service.common.Empty
26, // 27: auth.v1.Auth.LogOut:output_type -> metachat.api.service.common.Empty
26, // 28: auth.v1.Auth.CancelAccount:output_type -> metachat.api.service.common.Empty
26, // 29: auth.v1.Auth.UnbindWechat:output_type -> metachat.api.service.common.Empty
26, // 30: auth.v1.Auth.BindWechat:output_type -> metachat.api.service.common.Empty
24, // 31: auth.v1.Auth.QueryBind:output_type -> auth.v1.QueryBindResp
26, // 32: auth.v1.Auth.InitUserThirdPartyIdMap:output_type -> metachat.api.service.common.Empty
26, // 33: auth.v1.Auth.UpdateUserLoginInfo:output_type -> metachat.api.service.common.Empty
18, // [18:34] is the sub-list for method output_type
2, // [2:18] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
@ -2084,6 +2161,18 @@ func file_auth_v1_auth_proto_init() {
return nil
}
}
file_auth_v1_auth_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateUserLoginInfoReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_auth_v1_auth_proto_msgTypes[4].OneofWrappers = []interface{}{}
file_auth_v1_auth_proto_msgTypes[9].OneofWrappers = []interface{}{}
@ -2095,7 +2184,7 @@ func file_auth_v1_auth_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_auth_v1_auth_proto_rawDesc,
NumEnums: 0,
NumMessages: 25,
NumMessages: 26,
NumExtensions: 0,
NumServices: 1,
},

8
auth/v1/auth.proto

@ -37,6 +37,8 @@ service Auth {
rpc QueryBind(QueryBindReq) returns (QueryBindResp);
//
rpc InitUserThirdPartyIdMap(metachat.api.service.common.Empty) returns (metachat.api.service.common.Empty);
//
rpc UpdateUserLoginInfo(UpdateUserLoginInfoReq) returns (metachat.api.service.common.Empty);
}
message LoginUsePasswordReq{
@ -46,6 +48,7 @@ message LoginUsePasswordReq{
string password = 2;
// 1app 2web
int32 channel = 3;
string ip = 4;
}
message LoginUseSMSReq {
@ -207,3 +210,8 @@ message QueryBindResp {
// 1wechat2qq3apple
repeated int32 third_party_type = 1;
}
message UpdateUserLoginInfoReq {
int64 uid = 1;
string ip = 2;
}

38
auth/v1/auth_grpc.pb.go

@ -53,6 +53,8 @@ type AuthClient interface {
QueryBind(ctx context.Context, in *QueryBindReq, opts ...grpc.CallOption) (*QueryBindResp, error)
// 迁移初始化
InitUserThirdPartyIdMap(ctx context.Context, in *common.Empty, opts ...grpc.CallOption) (*common.Empty, error)
// 更新用户登录信息
UpdateUserLoginInfo(ctx context.Context, in *UpdateUserLoginInfoReq, opts ...grpc.CallOption) (*common.Empty, error)
}
type authClient struct {
@ -198,6 +200,15 @@ func (c *authClient) InitUserThirdPartyIdMap(ctx context.Context, in *common.Emp
return out, nil
}
func (c *authClient) UpdateUserLoginInfo(ctx context.Context, in *UpdateUserLoginInfoReq, opts ...grpc.CallOption) (*common.Empty, error) {
out := new(common.Empty)
err := c.cc.Invoke(ctx, "/auth.v1.Auth/UpdateUserLoginInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// AuthServer is the server API for Auth service.
// All implementations must embed UnimplementedAuthServer
// for forward compatibility
@ -232,6 +243,8 @@ type AuthServer interface {
QueryBind(context.Context, *QueryBindReq) (*QueryBindResp, error)
// 迁移初始化
InitUserThirdPartyIdMap(context.Context, *common.Empty) (*common.Empty, error)
// 更新用户登录信息
UpdateUserLoginInfo(context.Context, *UpdateUserLoginInfoReq) (*common.Empty, error)
mustEmbedUnimplementedAuthServer()
}
@ -284,6 +297,9 @@ func (UnimplementedAuthServer) QueryBind(context.Context, *QueryBindReq) (*Query
func (UnimplementedAuthServer) InitUserThirdPartyIdMap(context.Context, *common.Empty) (*common.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method InitUserThirdPartyIdMap not implemented")
}
func (UnimplementedAuthServer) UpdateUserLoginInfo(context.Context, *UpdateUserLoginInfoReq) (*common.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserLoginInfo not implemented")
}
func (UnimplementedAuthServer) mustEmbedUnimplementedAuthServer() {}
// UnsafeAuthServer may be embedded to opt out of forward compatibility for this service.
@ -567,6 +583,24 @@ func _Auth_InitUserThirdPartyIdMap_Handler(srv interface{}, ctx context.Context,
return interceptor(ctx, in, info, handler)
}
func _Auth_UpdateUserLoginInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateUserLoginInfoReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServer).UpdateUserLoginInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/auth.v1.Auth/UpdateUserLoginInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).UpdateUserLoginInfo(ctx, req.(*UpdateUserLoginInfoReq))
}
return interceptor(ctx, in, info, handler)
}
// Auth_ServiceDesc is the grpc.ServiceDesc for Auth service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@ -634,6 +668,10 @@ var Auth_ServiceDesc = grpc.ServiceDesc{
MethodName: "InitUserThirdPartyIdMap",
Handler: _Auth_InitUserThirdPartyIdMap_Handler,
},
{
MethodName: "UpdateUserLoginInfo",
Handler: _Auth_UpdateUserLoginInfo_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "auth/v1/auth.proto",

7
user_auth/v1/user_auth.proto

@ -57,8 +57,6 @@ service UserAuth {
rpc BindWechat(BindWechatReq) returns (metachat.api.service.common.Empty);
//
rpc QueryBind(QueryBindReq) returns (QueryBindResp);
//
rpc UpdateUserLoginInfo(UpdateUserLoginInfoReq) returns (metachat.api.service.common.Empty);
}
message LoginResp{
// session
@ -329,9 +327,4 @@ message QueryBindReq {
message QueryBindResp {
// 1wechat2qq3apple
repeated int32 third_party_type = 1;
}
message UpdateUserLoginInfoReq {
int64 uid = 1;
string ip = 2;
}
Loading…
Cancel
Save