wfz 3 år sedan
förälder
incheckning
1d1d11c8e7

+ 288 - 0
api/base/base.pb.go

@@ -0,0 +1,288 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// 	protoc-gen-go v1.26.0-devel
+// 	protoc        v3.15.8
+// source: base.proto
+
+package base
+
+import (
+	_ "google.golang.org/genproto/googleapis/api/annotations"
+	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+	_ "google.golang.org/protobuf/types/known/emptypb"
+	_ "google.golang.org/protobuf/types/known/structpb"
+	reflect "reflect"
+	sync "sync"
+)
+
+const (
+	// Verify that this generated code is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+	// Verify that runtime/protoimpl is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type AuthorizationRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
+}
+
+func (x *AuthorizationRequest) Reset() {
+	*x = AuthorizationRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *AuthorizationRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AuthorizationRequest) ProtoMessage() {}
+
+func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_base_proto_msgTypes[0]
+	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 AuthorizationRequest.ProtoReflect.Descriptor instead.
+func (*AuthorizationRequest) Descriptor() ([]byte, []int) {
+	return file_base_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *AuthorizationRequest) GetJsCode() string {
+	if x != nil {
+		return x.JsCode
+	}
+	return ""
+}
+
+type TokenReply struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
+}
+
+func (x *TokenReply) Reset() {
+	*x = TokenReply{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_proto_msgTypes[1]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *TokenReply) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TokenReply) ProtoMessage() {}
+
+func (x *TokenReply) ProtoReflect() protoreflect.Message {
+	mi := &file_base_proto_msgTypes[1]
+	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 TokenReply.ProtoReflect.Descriptor instead.
+func (*TokenReply) Descriptor() ([]byte, []int) {
+	return file_base_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *TokenReply) GetToken() string {
+	if x != nil {
+		return x.Token
+	}
+	return ""
+}
+
+type DebugLoginRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
+	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code"`
+}
+
+func (x *DebugLoginRequest) Reset() {
+	*x = DebugLoginRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_base_proto_msgTypes[2]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *DebugLoginRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DebugLoginRequest) ProtoMessage() {}
+
+func (x *DebugLoginRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_base_proto_msgTypes[2]
+	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 DebugLoginRequest.ProtoReflect.Descriptor instead.
+func (*DebugLoginRequest) Descriptor() ([]byte, []int) {
+	return file_base_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *DebugLoginRequest) GetId() string {
+	if x != nil {
+		return x.Id
+	}
+	return ""
+}
+
+func (x *DebugLoginRequest) GetCode() string {
+	if x != nil {
+		return x.Code
+	}
+	return ""
+}
+
+var File_base_proto protoreflect.FileDescriptor
+
+var file_base_proto_rawDesc = []byte{
+	0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70,
+	0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
+	0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
+	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+	0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
+	0x2e, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64,
+	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22,
+	0x22, 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a,
+	0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
+	0x6b, 0x65, 0x6e, 0x22, 0x37, 0x0a, 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69,
+	0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
+	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x3d, 0x0a, 0x08,
+	0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e,
+	0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65,
+	0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70,
+	0x69, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x3b, 0x62, 0x61, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x33,
+}
+
+var (
+	file_base_proto_rawDescOnce sync.Once
+	file_base_proto_rawDescData = file_base_proto_rawDesc
+)
+
+func file_base_proto_rawDescGZIP() []byte {
+	file_base_proto_rawDescOnce.Do(func() {
+		file_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_base_proto_rawDescData)
+	})
+	return file_base_proto_rawDescData
+}
+
+var file_base_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_base_proto_goTypes = []interface{}{
+	(*AuthorizationRequest)(nil), // 0: api.base.AuthorizationRequest
+	(*TokenReply)(nil),           // 1: api.base.TokenReply
+	(*DebugLoginRequest)(nil),    // 2: api.base.DebugLoginRequest
+}
+var file_base_proto_depIdxs = []int32{
+	0, // [0:0] is the sub-list for method output_type
+	0, // [0:0] is the sub-list for method input_type
+	0, // [0:0] is the sub-list for extension type_name
+	0, // [0:0] is the sub-list for extension extendee
+	0, // [0:0] is the sub-list for field type_name
+}
+
+func init() { file_base_proto_init() }
+func file_base_proto_init() {
+	if File_base_proto != nil {
+		return
+	}
+	if !protoimpl.UnsafeEnabled {
+		file_base_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*AuthorizationRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_base_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*TokenReply); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_base_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*DebugLoginRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+	}
+	type x struct{}
+	out := protoimpl.TypeBuilder{
+		File: protoimpl.DescBuilder{
+			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+			RawDescriptor: file_base_proto_rawDesc,
+			NumEnums:      0,
+			NumMessages:   3,
+			NumExtensions: 0,
+			NumServices:   0,
+		},
+		GoTypes:           file_base_proto_goTypes,
+		DependencyIndexes: file_base_proto_depIdxs,
+		MessageInfos:      file_base_proto_msgTypes,
+	}.Build()
+	File_base_proto = out.File
+	file_base_proto_rawDesc = nil
+	file_base_proto_goTypes = nil
+	file_base_proto_depIdxs = nil
+}

+ 24 - 0
api/base/base.proto

@@ -0,0 +1,24 @@
+syntax = "proto3";
+
+package api.base;
+
+//import "google/api/annotations.proto";
+//import "google/protobuf/struct.proto";
+//import "google/protobuf/empty.proto";
+
+option go_package = "git.ikuban.com/server/pw-protobuf/api/base;base";
+option java_multiple_files = true;
+option java_package = "api.base";
+
+message AuthorizationRequest {
+  string jsCode = 1;
+}
+
+message TokenReply {
+  string token = 1;
+}
+
+message DebugLoginRequest {
+  string id = 1;
+  string code = 2;
+}

+ 245 - 51
api/partner/partner.pb.go

@@ -7,9 +7,11 @@
 package partner
 
 import (
+	base "git.ikuban.com/server/pw-protobuf/api/base"
 	_ "google.golang.org/genproto/googleapis/api/annotations"
 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+	emptypb "google.golang.org/protobuf/types/known/emptypb"
 	reflect "reflect"
 	sync "sync"
 )
@@ -21,16 +23,16 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
-type AuthorizationRequest struct {
+type GetPartnerCircleInfoReq struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
+	PartnerId string `protobuf:"bytes,1,opt,name=partnerId,proto3" json:"partnerId"`
 }
 
-func (x *AuthorizationRequest) Reset() {
-	*x = AuthorizationRequest{}
+func (x *GetPartnerCircleInfoReq) Reset() {
+	*x = GetPartnerCircleInfoReq{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_partner_proto_msgTypes[0]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -38,13 +40,13 @@ func (x *AuthorizationRequest) Reset() {
 	}
 }
 
-func (x *AuthorizationRequest) String() string {
+func (x *GetPartnerCircleInfoReq) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*AuthorizationRequest) ProtoMessage() {}
+func (*GetPartnerCircleInfoReq) ProtoMessage() {}
 
-func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
+func (x *GetPartnerCircleInfoReq) ProtoReflect() protoreflect.Message {
 	mi := &file_partner_proto_msgTypes[0]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -56,28 +58,33 @@ func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use AuthorizationRequest.ProtoReflect.Descriptor instead.
-func (*AuthorizationRequest) Descriptor() ([]byte, []int) {
+// Deprecated: Use GetPartnerCircleInfoReq.ProtoReflect.Descriptor instead.
+func (*GetPartnerCircleInfoReq) Descriptor() ([]byte, []int) {
 	return file_partner_proto_rawDescGZIP(), []int{0}
 }
 
-func (x *AuthorizationRequest) GetJsCode() string {
+func (x *GetPartnerCircleInfoReq) GetPartnerId() string {
 	if x != nil {
-		return x.JsCode
+		return x.PartnerId
 	}
 	return ""
 }
 
-type TokenReply struct {
+type PartnerCircleInfo struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
+	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`               // id
+	Nickname  string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"`   // 昵称
+	AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl"` // 头像链接
+	Phone     string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone"`         // 手机号
+	Sex       int64  `protobuf:"varint,5,opt,name=sex,proto3" json:"sex"`            // 性别
+	Credit    int64  `protobuf:"varint,6,opt,name=credit,proto3" json:"credit"`      // 积分
 }
 
-func (x *TokenReply) Reset() {
-	*x = TokenReply{}
+func (x *PartnerCircleInfo) Reset() {
+	*x = PartnerCircleInfo{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_partner_proto_msgTypes[1]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -85,13 +92,13 @@ func (x *TokenReply) Reset() {
 	}
 }
 
-func (x *TokenReply) String() string {
+func (x *PartnerCircleInfo) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*TokenReply) ProtoMessage() {}
+func (*PartnerCircleInfo) ProtoMessage() {}
 
-func (x *TokenReply) ProtoReflect() protoreflect.Message {
+func (x *PartnerCircleInfo) ProtoReflect() protoreflect.Message {
 	mi := &file_partner_proto_msgTypes[1]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -103,43 +110,207 @@ func (x *TokenReply) ProtoReflect() protoreflect.Message {
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use TokenReply.ProtoReflect.Descriptor instead.
-func (*TokenReply) Descriptor() ([]byte, []int) {
+// Deprecated: Use PartnerCircleInfo.ProtoReflect.Descriptor instead.
+func (*PartnerCircleInfo) Descriptor() ([]byte, []int) {
 	return file_partner_proto_rawDescGZIP(), []int{1}
 }
 
-func (x *TokenReply) GetToken() string {
+func (x *PartnerCircleInfo) GetId() string {
 	if x != nil {
-		return x.Token
+		return x.Id
 	}
 	return ""
 }
 
+func (x *PartnerCircleInfo) GetNickname() string {
+	if x != nil {
+		return x.Nickname
+	}
+	return ""
+}
+
+func (x *PartnerCircleInfo) GetAvatarUrl() string {
+	if x != nil {
+		return x.AvatarUrl
+	}
+	return ""
+}
+
+func (x *PartnerCircleInfo) GetPhone() string {
+	if x != nil {
+		return x.Phone
+	}
+	return ""
+}
+
+func (x *PartnerCircleInfo) GetSex() int64 {
+	if x != nil {
+		return x.Sex
+	}
+	return 0
+}
+
+func (x *PartnerCircleInfo) GetCredit() int64 {
+	if x != nil {
+		return x.Credit
+	}
+	return 0
+}
+
+type PartnerInfo struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`               // id
+	Nickname  string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"`   // 昵称
+	AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl"` // 头像链接
+	Phone     string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone"`         // 手机号
+	Sex       int64  `protobuf:"varint,5,opt,name=sex,proto3" json:"sex"`            // 性别
+	Credit    int64  `protobuf:"varint,6,opt,name=credit,proto3" json:"credit"`      // 积分
+}
+
+func (x *PartnerInfo) Reset() {
+	*x = PartnerInfo{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_partner_proto_msgTypes[2]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *PartnerInfo) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PartnerInfo) ProtoMessage() {}
+
+func (x *PartnerInfo) ProtoReflect() protoreflect.Message {
+	mi := &file_partner_proto_msgTypes[2]
+	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 PartnerInfo.ProtoReflect.Descriptor instead.
+func (*PartnerInfo) Descriptor() ([]byte, []int) {
+	return file_partner_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *PartnerInfo) GetId() string {
+	if x != nil {
+		return x.Id
+	}
+	return ""
+}
+
+func (x *PartnerInfo) GetNickname() string {
+	if x != nil {
+		return x.Nickname
+	}
+	return ""
+}
+
+func (x *PartnerInfo) GetAvatarUrl() string {
+	if x != nil {
+		return x.AvatarUrl
+	}
+	return ""
+}
+
+func (x *PartnerInfo) GetPhone() string {
+	if x != nil {
+		return x.Phone
+	}
+	return ""
+}
+
+func (x *PartnerInfo) GetSex() int64 {
+	if x != nil {
+		return x.Sex
+	}
+	return 0
+}
+
+func (x *PartnerInfo) GetCredit() int64 {
+	if x != nil {
+		return x.Credit
+	}
+	return 0
+}
+
 var File_partner_proto protoreflect.FileDescriptor
 
 var file_partner_proto_rawDesc = []byte{
 	0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
 	0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x1a, 0x1c, 0x67, 0x6f,
 	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
-	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x14, 0x41, 0x75,
-	0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
-	0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x06, 0x6a, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x54, 0x6f,
-	0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65,
-	0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x7d,
-	0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x72, 0x0a, 0x0d, 0x41, 0x75, 0x74,
-	0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69,
-	0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
-	0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e,
-	0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x54, 0x6f, 0x6b, 0x65,
-	0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a,
-	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74,
-	0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a,
-	0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35,
-	0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
-	0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
-	0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61,
-	0x72, 0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67,
+	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74,
+	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x73,
+	0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x17,
+	0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65,
+	0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e,
+	0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74,
+	0x6e, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69,
+	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
+	0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e,
+	0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
+	0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74,
+	0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73,
+	0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a,
+	0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
+	0x72, 0x65, 0x64, 0x69, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
+	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
+	0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12,
+	0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+	0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01,
+	0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69,
+	0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x32,
+	0xc0, 0x03, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x6c, 0x0a, 0x0d, 0x41,
+	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a,
+	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70,
+	0x6c, 0x79, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x61, 0x70, 0x69,
+	0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
+	0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65, 0x62,
+	0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61,
+	0x73, 0x65, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
+	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93,
+	0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x6f,
+	0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x60, 0x0a, 0x0e,
+	0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16,
+	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+	0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
+	0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
+	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x81,
+	0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72,
+	0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61,
+	0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
+	0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x74,
+	0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x23, 0x82,
+	0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74,
+	0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x3a,
+	0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e,
+	0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72,
+	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e,
+	0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x33,
 }
 
 var (
@@ -154,16 +325,27 @@ func file_partner_proto_rawDescGZIP() []byte {
 	return file_partner_proto_rawDescData
 }
 
-var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
+var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
 var file_partner_proto_goTypes = []interface{}{
-	(*AuthorizationRequest)(nil), // 0: api.partner.AuthorizationRequest
-	(*TokenReply)(nil),           // 1: api.partner.TokenReply
+	(*GetPartnerCircleInfoReq)(nil),   // 0: api.partner.GetPartnerCircleInfoReq
+	(*PartnerCircleInfo)(nil),         // 1: api.partner.PartnerCircleInfo
+	(*PartnerInfo)(nil),               // 2: api.partner.PartnerInfo
+	(*base.AuthorizationRequest)(nil), // 3: api.base.AuthorizationRequest
+	(*base.DebugLoginRequest)(nil),    // 4: api.base.DebugLoginRequest
+	(*emptypb.Empty)(nil),             // 5: google.protobuf.Empty
+	(*base.TokenReply)(nil),           // 6: api.base.TokenReply
 }
 var file_partner_proto_depIdxs = []int32{
-	0, // 0: api.partner.Partner.Authorization:input_type -> api.partner.AuthorizationRequest
-	1, // 1: api.partner.Partner.Authorization:output_type -> api.partner.TokenReply
-	1, // [1:2] is the sub-list for method output_type
-	0, // [0:1] is the sub-list for method input_type
+	3, // 0: api.partner.Partner.Authorization:input_type -> api.base.AuthorizationRequest
+	4, // 1: api.partner.Partner.DebugLogin:input_type -> api.base.DebugLoginRequest
+	5, // 2: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
+	0, // 3: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.partner.GetPartnerCircleInfoReq
+	6, // 4: api.partner.Partner.Authorization:output_type -> api.base.TokenReply
+	6, // 5: api.partner.Partner.DebugLogin:output_type -> api.base.TokenReply
+	2, // 6: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	1, // 7: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
+	4, // [4:8] is the sub-list for method output_type
+	0, // [0:4] is the sub-list for method input_type
 	0, // [0:0] is the sub-list for extension type_name
 	0, // [0:0] is the sub-list for extension extendee
 	0, // [0:0] is the sub-list for field type_name
@@ -176,7 +358,7 @@ func file_partner_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_partner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*AuthorizationRequest); i {
+			switch v := v.(*GetPartnerCircleInfoReq); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -188,7 +370,19 @@ func file_partner_proto_init() {
 			}
 		}
 		file_partner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*TokenReply); i {
+			switch v := v.(*PartnerCircleInfo); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_partner_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*PartnerInfo); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -206,7 +400,7 @@ func file_partner_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_partner_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   2,
+			NumMessages:   3,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 39 - 6
api/partner/partner.proto

@@ -4,25 +4,58 @@ package api.partner;
 
 import "google/api/annotations.proto";
 //import "google/protobuf/struct.proto";
-//import "google/protobuf/empty.proto";
+import "google/protobuf/empty.proto";
+import "api/base/base.proto";
 
 option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner";
 option java_multiple_files = true;
 option java_package = "api.partner";
 
 service Partner {
-  rpc Authorization (AuthorizationRequest) returns (TokenReply){
+  rpc Authorization (base.AuthorizationRequest) returns (base.TokenReply){
     option (google.api.http) = {
       post: "/api/partner/authorization",
       body:"*"
     };
   };
+  rpc DebugLogin (base.DebugLoginRequest) returns (base.TokenReply){
+    option (google.api.http) = {
+      post: "/api/user/login/debug",
+      body:"*"
+    };
+  };
+  rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
+    option (google.api.http) = {
+      post: "/api/partner/info",
+      body:"*"
+    };
+  };
+  rpc GetPartnerCircleInfo (GetPartnerCircleInfoReq) returns (PartnerCircleInfo){
+    option (google.api.http) = {
+      post: "/api/partner/info/circle",
+      body:"*"
+    };
+  };
+}
+
+message GetPartnerCircleInfoReq{
+  string partnerId = 1;
 }
 
-message AuthorizationRequest {
-  string jsCode = 1;
+message PartnerCircleInfo{
+  string id = 1; // id
+  string nickname = 2;// 昵称
+  string avatarUrl =3;// 头像链接
+  string phone = 4;// 手机号
+  int64 sex = 5;// 性别
+  int64 credit = 6;// 积分
 }
 
-message TokenReply {
-  string token = 1;
+message PartnerInfo{
+  string id = 1; // id
+  string nickname = 2;// 昵称
+  string avatarUrl =3;// 头像链接
+  string phone = 4;// 手机号
+  int64 sex = 5;// 性别
+  int64 credit = 6;// 积分
 }

+ 117 - 7
api/partner/partner_grpc.pb.go

@@ -4,9 +4,11 @@ package partner
 
 import (
 	context "context"
+	base "git.ikuban.com/server/pw-protobuf/api/base"
 	grpc "google.golang.org/grpc"
 	codes "google.golang.org/grpc/codes"
 	status "google.golang.org/grpc/status"
+	emptypb "google.golang.org/protobuf/types/known/emptypb"
 )
 
 // This is a compile-time assertion to ensure that this generated file
@@ -18,7 +20,10 @@ const _ = grpc.SupportPackageIsVersion7
 //
 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 type PartnerClient interface {
-	Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error)
+	Authorization(ctx context.Context, in *base.AuthorizationRequest, opts ...grpc.CallOption) (*base.TokenReply, error)
+	DebugLogin(ctx context.Context, in *base.DebugLoginRequest, opts ...grpc.CallOption) (*base.TokenReply, error)
+	GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerInfo, error)
+	GetPartnerCircleInfo(ctx context.Context, in *GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*PartnerCircleInfo, error)
 }
 
 type partnerClient struct {
@@ -29,8 +34,8 @@ func NewPartnerClient(cc grpc.ClientConnInterface) PartnerClient {
 	return &partnerClient{cc}
 }
 
-func (c *partnerClient) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error) {
-	out := new(TokenReply)
+func (c *partnerClient) Authorization(ctx context.Context, in *base.AuthorizationRequest, opts ...grpc.CallOption) (*base.TokenReply, error) {
+	out := new(base.TokenReply)
 	err := c.cc.Invoke(ctx, "/api.partner.Partner/Authorization", in, out, opts...)
 	if err != nil {
 		return nil, err
@@ -38,11 +43,41 @@ func (c *partnerClient) Authorization(ctx context.Context, in *AuthorizationRequ
 	return out, nil
 }
 
+func (c *partnerClient) DebugLogin(ctx context.Context, in *base.DebugLoginRequest, opts ...grpc.CallOption) (*base.TokenReply, error) {
+	out := new(base.TokenReply)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/DebugLogin", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerInfo, error) {
+	out := new(PartnerInfo)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerInfo", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) GetPartnerCircleInfo(ctx context.Context, in *GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*PartnerCircleInfo, error) {
+	out := new(PartnerCircleInfo)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerCircleInfo", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // PartnerServer is the server API for Partner service.
 // All implementations must embed UnimplementedPartnerServer
 // for forward compatibility
 type PartnerServer interface {
-	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
+	Authorization(context.Context, *base.AuthorizationRequest) (*base.TokenReply, error)
+	DebugLogin(context.Context, *base.DebugLoginRequest) (*base.TokenReply, error)
+	GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
+	GetPartnerCircleInfo(context.Context, *GetPartnerCircleInfoReq) (*PartnerCircleInfo, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -50,9 +85,18 @@ type PartnerServer interface {
 type UnimplementedPartnerServer struct {
 }
 
-func (UnimplementedPartnerServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {
+func (UnimplementedPartnerServer) Authorization(context.Context, *base.AuthorizationRequest) (*base.TokenReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")
 }
+func (UnimplementedPartnerServer) DebugLogin(context.Context, *base.DebugLoginRequest) (*base.TokenReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method DebugLogin not implemented")
+}
+func (UnimplementedPartnerServer) GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerInfo not implemented")
+}
+func (UnimplementedPartnerServer) GetPartnerCircleInfo(context.Context, *GetPartnerCircleInfoReq) (*PartnerCircleInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
+}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -67,7 +111,7 @@ func RegisterPartnerServer(s grpc.ServiceRegistrar, srv PartnerServer) {
 }
 
 func _Partner_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(AuthorizationRequest)
+	in := new(base.AuthorizationRequest)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -79,7 +123,61 @@ func _Partner_Authorization_Handler(srv interface{}, ctx context.Context, dec fu
 		FullMethod: "/api.partner.Partner/Authorization",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(PartnerServer).Authorization(ctx, req.(*AuthorizationRequest))
+		return srv.(PartnerServer).Authorization(ctx, req.(*base.AuthorizationRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(base.DebugLoginRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).DebugLogin(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/DebugLogin",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).DebugLogin(ctx, req.(*base.DebugLoginRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_GetPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(emptypb.Empty)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).GetPartnerInfo(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/GetPartnerInfo",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).GetPartnerInfo(ctx, req.(*emptypb.Empty))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(GetPartnerCircleInfoReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).GetPartnerCircleInfo(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/GetPartnerCircleInfo",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).GetPartnerCircleInfo(ctx, req.(*GetPartnerCircleInfoReq))
 	}
 	return interceptor(ctx, in, info, handler)
 }
@@ -95,6 +193,18 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "Authorization",
 			Handler:    _Partner_Authorization_Handler,
 		},
+		{
+			MethodName: "DebugLogin",
+			Handler:    _Partner_DebugLogin_Handler,
+		},
+		{
+			MethodName: "GetPartnerInfo",
+			Handler:    _Partner_GetPartnerInfo_Handler,
+		},
+		{
+			MethodName: "GetPartnerCircleInfo",
+			Handler:    _Partner_GetPartnerCircleInfo_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

+ 137 - 6
api/partner/partner_http.pb.go

@@ -8,8 +8,10 @@ import (
 	context "context"
 	base "git.ikuban.com/server/base-protobuf/kuban/api/base"
 	reply "git.ikuban.com/server/kratos-utils/http/reply"
+	base1 "git.ikuban.com/server/pw-protobuf/api/base"
 	http "github.com/go-kratos/kratos/v2/transport/http"
 	binding "github.com/go-kratos/kratos/v2/transport/http/binding"
+	emptypb "google.golang.org/protobuf/types/known/emptypb"
 	ioutil "io/ioutil"
 	time "time"
 )
@@ -26,17 +28,23 @@ var _ = new(base.Html)
 const _ = http.SupportPackageIsVersion1
 
 type PartnerHTTPServer interface {
-	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
+	Authorization(context.Context, *base1.AuthorizationRequest) (*base1.TokenReply, error)
+	DebugLogin(context.Context, *base1.DebugLoginRequest) (*base1.TokenReply, error)
+	GetPartnerCircleInfo(context.Context, *GetPartnerCircleInfoReq) (*PartnerCircleInfo, error)
+	GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
 }
 
 func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r := s.Route("/")
 	r.POST("/api/partner/authorization", _Partner_Authorization0_HTTP_Handler(srv))
+	r.POST("/api/user/login/debug", _Partner_DebugLogin0_HTTP_Handler(srv))
+	r.POST("/api/partner/info", _Partner_GetPartnerInfo0_HTTP_Handler(srv))
+	r.POST("/api/partner/info/circle", _Partner_GetPartnerCircleInfo0_HTTP_Handler(srv))
 }
 
 func _Partner_Authorization0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in AuthorizationRequest
+		var in base1.AuthorizationRequest
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
@@ -45,7 +53,88 @@ func _Partner_Authorization0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.C
 		}
 		http.SetOperation(ctx, "/api.partner.Partner/Authorization")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.Authorization(ctx, req.(*AuthorizationRequest))
+			return srv.Authorization(ctx, req.(*base1.AuthorizationRequest))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
+func _Partner_DebugLogin0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in base1.DebugLoginRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/DebugLogin")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.DebugLogin(ctx, req.(*base1.DebugLoginRequest))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
+func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in emptypb.Empty
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/GetPartnerInfo")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.GetPartnerInfo(ctx, req.(*emptypb.Empty))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
+func _Partner_GetPartnerCircleInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in GetPartnerCircleInfoReq
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/GetPartnerCircleInfo")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.GetPartnerCircleInfo(ctx, req.(*GetPartnerCircleInfoReq))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -62,7 +151,10 @@ func _Partner_Authorization0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.C
 }
 
 type PartnerHTTPClient interface {
-	Authorization(ctx context.Context, req *AuthorizationRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
+	Authorization(ctx context.Context, req *base1.AuthorizationRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
+	DebugLogin(ctx context.Context, req *base1.DebugLoginRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
+	GetPartnerCircleInfo(ctx context.Context, req *GetPartnerCircleInfoReq, opts ...http.CallOption) (rsp *PartnerCircleInfo, err error)
+	GetPartnerInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerInfo, err error)
 }
 
 type PartnerHTTPClientImpl struct {
@@ -73,8 +165,8 @@ func NewPartnerHTTPClient(client *http.Client) PartnerHTTPClient {
 	return &PartnerHTTPClientImpl{client}
 }
 
-func (c *PartnerHTTPClientImpl) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...http.CallOption) (*TokenReply, error) {
-	var out TokenReply
+func (c *PartnerHTTPClientImpl) Authorization(ctx context.Context, in *base1.AuthorizationRequest, opts ...http.CallOption) (*base1.TokenReply, error) {
+	var out base1.TokenReply
 	pattern := "/api/partner/authorization"
 	path := binding.EncodeURL(pattern, in, false)
 	opts = append(opts, http.Operation("/api.partner.Partner/Authorization"))
@@ -85,3 +177,42 @@ func (c *PartnerHTTPClientImpl) Authorization(ctx context.Context, in *Authoriza
 	}
 	return &out, err
 }
+
+func (c *PartnerHTTPClientImpl) DebugLogin(ctx context.Context, in *base1.DebugLoginRequest, opts ...http.CallOption) (*base1.TokenReply, error) {
+	var out base1.TokenReply
+	pattern := "/api/user/login/debug"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/DebugLogin"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
+func (c *PartnerHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *GetPartnerCircleInfoReq, opts ...http.CallOption) (*PartnerCircleInfo, error) {
+	var out PartnerCircleInfo
+	pattern := "/api/partner/info/circle"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerCircleInfo"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
+func (c *PartnerHTTPClientImpl) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerInfo, error) {
+	var out PartnerInfo
+	pattern := "/api/partner/info"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerInfo"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}

+ 97 - 274
api/user/user.pb.go

@@ -7,7 +7,9 @@
 package user
 
 import (
+	base "git.ikuban.com/server/pw-protobuf/api/base"
 	chat "git.ikuban.com/server/pw-protobuf/api/chat"
+	partner "git.ikuban.com/server/pw-protobuf/api/partner"
 	_ "google.golang.org/genproto/googleapis/api/annotations"
 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
@@ -322,155 +324,6 @@ func (x *CheckPhoneCodeRequest) GetCode() string {
 	return ""
 }
 
-type DebugLoginRequest struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
-	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId"`
-	Code   string `protobuf:"bytes,2,opt,name=code,proto3" json:"code"`
-}
-
-func (x *DebugLoginRequest) Reset() {
-	*x = DebugLoginRequest{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[5]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
-}
-
-func (x *DebugLoginRequest) String() string {
-	return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DebugLoginRequest) ProtoMessage() {}
-
-func (x *DebugLoginRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[5]
-	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 DebugLoginRequest.ProtoReflect.Descriptor instead.
-func (*DebugLoginRequest) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{5}
-}
-
-func (x *DebugLoginRequest) GetUserId() string {
-	if x != nil {
-		return x.UserId
-	}
-	return ""
-}
-
-func (x *DebugLoginRequest) GetCode() string {
-	if x != nil {
-		return x.Code
-	}
-	return ""
-}
-
-type AuthorizationRequest struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
-	JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
-}
-
-func (x *AuthorizationRequest) Reset() {
-	*x = AuthorizationRequest{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[6]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
-}
-
-func (x *AuthorizationRequest) String() string {
-	return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AuthorizationRequest) ProtoMessage() {}
-
-func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[6]
-	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 AuthorizationRequest.ProtoReflect.Descriptor instead.
-func (*AuthorizationRequest) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{6}
-}
-
-func (x *AuthorizationRequest) GetJsCode() string {
-	if x != nil {
-		return x.JsCode
-	}
-	return ""
-}
-
-type TokenReply struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
-	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
-}
-
-func (x *TokenReply) Reset() {
-	*x = TokenReply{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_user_proto_msgTypes[7]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
-}
-
-func (x *TokenReply) String() string {
-	return protoimpl.X.MessageStringOf(x)
-}
-
-func (*TokenReply) ProtoMessage() {}
-
-func (x *TokenReply) ProtoReflect() protoreflect.Message {
-	mi := &file_user_proto_msgTypes[7]
-	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 TokenReply.ProtoReflect.Descriptor instead.
-func (*TokenReply) Descriptor() ([]byte, []int) {
-	return file_user_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *TokenReply) GetToken() string {
-	if x != nil {
-		return x.Token
-	}
-	return ""
-}
-
 var File_user_proto protoreflect.FileDescriptor
 
 var file_user_proto_rawDesc = []byte{
@@ -480,6 +333,9 @@ var file_user_proto_rawDesc = []byte{
 	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
 	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
 	0x6f, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x2f, 0x63, 0x68, 0x61, 0x74,
+	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74,
+	0x6e, 0x65, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65,
 	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x45, 0x0a, 0x25, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55,
 	0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61,
 	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
@@ -508,71 +364,70 @@ var file_user_proto_rawDesc = []byte{
 	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65,
 	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x12, 0x0a,
 	0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64,
-	0x65, 0x22, 0x3f, 0x0a, 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52,
-	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12,
-	0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f,
-	0x64, 0x65, 0x22, 0x2e, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
-	0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6a, 0x73,
-	0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6a, 0x73, 0x43, 0x6f,
-	0x64, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79,
-	0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
-	0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xae, 0x06, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12,
-	0x61, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e,
-	0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f,
-	0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69,
-	0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79,
-	0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75,
-	0x73, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a,
-	0x01, 0x2a, 0x12, 0x69, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
-	0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x41,
-	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75,
-	0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x54,
-	0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02,
-	0x1c, 0x22, 0x17, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74,
-	0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x80, 0x01,
-	0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
-	0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
-	0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66,
-	0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
-	0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
-	0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22,
-	0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74,
-	0x65, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a,
-	0x12, 0x54, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12,
-	0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
-	0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
-	0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x19, 0x82, 0xd3, 0xe4,
-	0x93, 0x02, 0x13, 0x22, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x69,
-	0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68,
-	0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
-	0x65, 0x72, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65,
-	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
-	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
-	0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73,
-	0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x3a, 0x01, 0x2a, 0x12,
-	0x6a, 0x0a, 0x0e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64,
-	0x65, 0x12, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65,
-	0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+	0x65, 0x32, 0xb2, 0x07, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x0a, 0x44, 0x65,
+	0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62,
+	0x61, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65,
+	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65,
+	0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x20, 0x82, 0xd3, 0xe4,
+	0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c,
+	0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x69, 0x0a,
+	0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
+	0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
+	0x65, 0x70, 0x6c, 0x79, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x61,
+	0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a,
+	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64,
+	0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69,
+	0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x70,
+	0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
+	0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
+	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
+	0x74, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69,
+	0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x69, 0x6e, 0x66,
+	0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x54, 0x0a, 0x0b, 0x47,
+	0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
+	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
+	0x74, 0x79, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73,
+	0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e,
+	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01,
+	0x2a, 0x12, 0x67, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f,
+	0x64, 0x65, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x65,
+	0x6e, 0x64, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
 	0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
-	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93,
-	0x02, 0x19, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f,
-	0x64, 0x65, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x12, 0xa9, 0x01, 0x0a, 0x1e,
-	0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
-	0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x2f,
-	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55,
-	0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61,
-	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
-	0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
+	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93,
+	0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f,
+	0x64, 0x65, 0x2f, 0x73, 0x65, 0x6e, 0x64, 0x3a, 0x01, 0x2a, 0x12, 0x6a, 0x0a, 0x0e, 0x43, 0x68,
+	0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x68, 0x6f,
+	0x6e, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
+	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
+	0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x22, 0x14, 0x2f,
+	0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x63, 0x68,
+	0x65, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x12, 0xa9, 0x01, 0x0a, 0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b,
 	0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c,
-	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x27,
-	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65,
-	0x72, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
-	0x73, 0x68, 0x69, 0x70, 0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75,
-	0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61,
-	0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d,
-	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65,
-	0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+	0x75, 0x73, 0x65, 0x72, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61,
+	0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+	0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x69,
+	0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50,
+	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+	0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+	0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x68, 0x65,
+	0x63, 0x6b, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x3a,
+	0x01, 0x2a, 0x12, 0x81, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+	0x71, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e,
+	0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66,
+	0x6f, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f,
+	0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x63, 0x69, 0x72,
+	0x63, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
+	0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e,
+	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70,
+	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72,
+	0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -587,39 +442,43 @@ func file_user_proto_rawDescGZIP() []byte {
 	return file_user_proto_rawDescData
 }
 
-var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
+var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
 var file_user_proto_goTypes = []interface{}{
 	(*CheckUserPartnerIsRelationshipRequest)(nil), // 0: api.user.CheckUserPartnerIsRelationshipRequest
 	(*UserInfo)(nil),                                 // 1: api.user.UserInfo
 	(*UpdateUserInformationRequest)(nil),             // 2: api.user.UpdateUserInformationRequest
 	(*SendPhoneCodeRequest)(nil),                     // 3: api.user.SendPhoneCodeRequest
 	(*CheckPhoneCodeRequest)(nil),                    // 4: api.user.CheckPhoneCodeRequest
-	(*DebugLoginRequest)(nil),                        // 5: api.user.DebugLoginRequest
-	(*AuthorizationRequest)(nil),                     // 6: api.user.AuthorizationRequest
-	(*TokenReply)(nil),                               // 7: api.user.TokenReply
-	(*emptypb.Empty)(nil),                            // 8: google.protobuf.Empty
-	(*chat.CheckUserPartnerIsRelationshipReply)(nil), // 9: api.chat.CheckUserPartnerIsRelationshipReply
+	(*base.DebugLoginRequest)(nil),                   // 5: api.base.DebugLoginRequest
+	(*base.AuthorizationRequest)(nil),                // 6: api.base.AuthorizationRequest
+	(*emptypb.Empty)(nil),                            // 7: google.protobuf.Empty
+	(*partner.GetPartnerCircleInfoReq)(nil),          // 8: api.partner.GetPartnerCircleInfoReq
+	(*base.TokenReply)(nil),                          // 9: api.base.TokenReply
+	(*chat.CheckUserPartnerIsRelationshipReply)(nil), // 10: api.chat.CheckUserPartnerIsRelationshipReply
+	(*partner.PartnerCircleInfo)(nil),                // 11: api.partner.PartnerCircleInfo
 }
 var file_user_proto_depIdxs = []int32{
-	5, // 0: api.user.User.DebugLogin:input_type -> api.user.DebugLoginRequest
-	6, // 1: api.user.User.Authorization:input_type -> api.user.AuthorizationRequest
-	2, // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
-	8, // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
-	3, // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
-	4, // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
-	0, // 6: api.user.User.CheckUserPartnerIsRelationship:input_type -> api.user.CheckUserPartnerIsRelationshipRequest
-	7, // 7: api.user.User.DebugLogin:output_type -> api.user.TokenReply
-	7, // 8: api.user.User.Authorization:output_type -> api.user.TokenReply
-	8, // 9: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
-	1, // 10: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
-	8, // 11: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
-	8, // 12: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
-	9, // 13: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	7, // [7:14] is the sub-list for method output_type
-	0, // [0:7] is the sub-list for method input_type
-	0, // [0:0] is the sub-list for extension type_name
-	0, // [0:0] is the sub-list for extension extendee
-	0, // [0:0] is the sub-list for field type_name
+	5,  // 0: api.user.User.DebugLogin:input_type -> api.base.DebugLoginRequest
+	6,  // 1: api.user.User.Authorization:input_type -> api.base.AuthorizationRequest
+	2,  // 2: api.user.User.UpdateUserInformation:input_type -> api.user.UpdateUserInformationRequest
+	7,  // 3: api.user.User.GetUserInfo:input_type -> google.protobuf.Empty
+	3,  // 4: api.user.User.SendPhoneCode:input_type -> api.user.SendPhoneCodeRequest
+	4,  // 5: api.user.User.CheckPhoneCode:input_type -> api.user.CheckPhoneCodeRequest
+	0,  // 6: api.user.User.CheckUserPartnerIsRelationship:input_type -> api.user.CheckUserPartnerIsRelationshipRequest
+	8,  // 7: api.user.User.GetPartnerCircleInfo:input_type -> api.partner.GetPartnerCircleInfoReq
+	9,  // 8: api.user.User.DebugLogin:output_type -> api.base.TokenReply
+	9,  // 9: api.user.User.Authorization:output_type -> api.base.TokenReply
+	7,  // 10: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
+	1,  // 11: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
+	7,  // 12: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
+	7,  // 13: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
+	10, // 14: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	11, // 15: api.user.User.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
+	8,  // [8:16] is the sub-list for method output_type
+	0,  // [0:8] is the sub-list for method input_type
+	0,  // [0:0] is the sub-list for extension type_name
+	0,  // [0:0] is the sub-list for extension extendee
+	0,  // [0:0] is the sub-list for field type_name
 }
 
 func init() { file_user_proto_init() }
@@ -688,42 +547,6 @@ func file_user_proto_init() {
 				return nil
 			}
 		}
-		file_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*DebugLoginRequest); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-		file_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*AuthorizationRequest); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
-		file_user_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*TokenReply); i {
-			case 0:
-				return &v.state
-			case 1:
-				return &v.sizeCache
-			case 2:
-				return &v.unknownFields
-			default:
-				return nil
-			}
-		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -731,7 +554,7 @@ func file_user_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_user_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   8,
+			NumMessages:   5,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 10 - 15
api/user/user.proto

@@ -6,19 +6,21 @@ import "google/api/annotations.proto";
 //import "google/protobuf/struct.proto";
 import "google/protobuf/empty.proto";
 import "api/chat/chat.proto";
+import "api/partner/partner.proto";
+import "api/base/base.proto";
 
 option go_package = "git.ikuban.com/server/pw-protobuf/api/user;user";
 option java_multiple_files = true;
 option java_package = "api.user";
 
 service User {
-  rpc DebugLogin (DebugLoginRequest) returns (TokenReply){
+  rpc DebugLogin (base.DebugLoginRequest) returns (base.TokenReply){
     option (google.api.http) = {
       post: "/api/user/login/debug",
       body:"*"
     };
   };
-  rpc Authorization (AuthorizationRequest) returns (TokenReply){
+  rpc Authorization (base.AuthorizationRequest) returns (base.TokenReply){
     option (google.api.http) = {
       post: "/api/user/authorization",
       body:"*"
@@ -54,6 +56,12 @@ service User {
       body:"*"
     };
   };
+  rpc GetPartnerCircleInfo (partner.GetPartnerCircleInfoReq) returns (partner.PartnerCircleInfo){
+    option (google.api.http) = {
+      post: "/api/partner/info/circle",
+      body:"*"
+    };
+  };
 }
 
 message CheckUserPartnerIsRelationshipRequest{
@@ -82,16 +90,3 @@ message CheckPhoneCodeRequest {
   string phone = 1;
   string code = 2;
 }
-
-message DebugLoginRequest {
-  string userId = 1;
-  string code = 2;
-}
-
-message AuthorizationRequest {
-  string jsCode = 1;
-}
-
-message TokenReply {
-  string token = 1;
-}

+ 52 - 14
api/user/user_grpc.pb.go

@@ -4,7 +4,9 @@ package user
 
 import (
 	context "context"
+	base "git.ikuban.com/server/pw-protobuf/api/base"
 	chat "git.ikuban.com/server/pw-protobuf/api/chat"
+	partner "git.ikuban.com/server/pw-protobuf/api/partner"
 	grpc "google.golang.org/grpc"
 	codes "google.golang.org/grpc/codes"
 	status "google.golang.org/grpc/status"
@@ -20,13 +22,14 @@ const _ = grpc.SupportPackageIsVersion7
 //
 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 type UserClient interface {
-	DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error)
-	Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error)
+	DebugLogin(ctx context.Context, in *base.DebugLoginRequest, opts ...grpc.CallOption) (*base.TokenReply, error)
+	Authorization(ctx context.Context, in *base.AuthorizationRequest, opts ...grpc.CallOption) (*base.TokenReply, error)
 	UpdateUserInformation(ctx context.Context, in *UpdateUserInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error)
 	SendPhoneCode(ctx context.Context, in *SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	CheckPhoneCode(ctx context.Context, in *CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	CheckUserPartnerIsRelationship(ctx context.Context, in *CheckUserPartnerIsRelationshipRequest, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error)
+	GetPartnerCircleInfo(ctx context.Context, in *partner.GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error)
 }
 
 type userClient struct {
@@ -37,8 +40,8 @@ func NewUserClient(cc grpc.ClientConnInterface) UserClient {
 	return &userClient{cc}
 }
 
-func (c *userClient) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error) {
-	out := new(TokenReply)
+func (c *userClient) DebugLogin(ctx context.Context, in *base.DebugLoginRequest, opts ...grpc.CallOption) (*base.TokenReply, error) {
+	out := new(base.TokenReply)
 	err := c.cc.Invoke(ctx, "/api.user.User/DebugLogin", in, out, opts...)
 	if err != nil {
 		return nil, err
@@ -46,8 +49,8 @@ func (c *userClient) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts
 	return out, nil
 }
 
-func (c *userClient) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error) {
-	out := new(TokenReply)
+func (c *userClient) Authorization(ctx context.Context, in *base.AuthorizationRequest, opts ...grpc.CallOption) (*base.TokenReply, error) {
+	out := new(base.TokenReply)
 	err := c.cc.Invoke(ctx, "/api.user.User/Authorization", in, out, opts...)
 	if err != nil {
 		return nil, err
@@ -100,17 +103,27 @@ func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *Che
 	return out, nil
 }
 
+func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *partner.GetPartnerCircleInfoReq, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error) {
+	out := new(partner.PartnerCircleInfo)
+	err := c.cc.Invoke(ctx, "/api.user.User/GetPartnerCircleInfo", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // UserServer is the server API for User service.
 // All implementations must embed UnimplementedUserServer
 // for forward compatibility
 type UserServer interface {
-	DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
-	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
+	DebugLogin(context.Context, *base.DebugLoginRequest) (*base.TokenReply, error)
+	Authorization(context.Context, *base.AuthorizationRequest) (*base.TokenReply, error)
 	UpdateUserInformation(context.Context, *UpdateUserInformationRequest) (*emptypb.Empty, error)
 	GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
 	SendPhoneCode(context.Context, *SendPhoneCodeRequest) (*emptypb.Empty, error)
 	CheckPhoneCode(context.Context, *CheckPhoneCodeRequest) (*emptypb.Empty, error)
 	CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*chat.CheckUserPartnerIsRelationshipReply, error)
+	GetPartnerCircleInfo(context.Context, *partner.GetPartnerCircleInfoReq) (*partner.PartnerCircleInfo, error)
 	mustEmbedUnimplementedUserServer()
 }
 
@@ -118,10 +131,10 @@ type UserServer interface {
 type UnimplementedUserServer struct {
 }
 
-func (UnimplementedUserServer) DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error) {
+func (UnimplementedUserServer) DebugLogin(context.Context, *base.DebugLoginRequest) (*base.TokenReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method DebugLogin not implemented")
 }
-func (UnimplementedUserServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {
+func (UnimplementedUserServer) Authorization(context.Context, *base.AuthorizationRequest) (*base.TokenReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")
 }
 func (UnimplementedUserServer) UpdateUserInformation(context.Context, *UpdateUserInformationRequest) (*emptypb.Empty, error) {
@@ -139,6 +152,9 @@ func (UnimplementedUserServer) CheckPhoneCode(context.Context, *CheckPhoneCodeRe
 func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*chat.CheckUserPartnerIsRelationshipReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
 }
+func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *partner.GetPartnerCircleInfoReq) (*partner.PartnerCircleInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
+}
 func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
 
 // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
@@ -153,7 +169,7 @@ func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {
 }
 
 func _User_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(DebugLoginRequest)
+	in := new(base.DebugLoginRequest)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -165,13 +181,13 @@ func _User_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(int
 		FullMethod: "/api.user.User/DebugLogin",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(UserServer).DebugLogin(ctx, req.(*DebugLoginRequest))
+		return srv.(UserServer).DebugLogin(ctx, req.(*base.DebugLoginRequest))
 	}
 	return interceptor(ctx, in, info, handler)
 }
 
 func _User_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(AuthorizationRequest)
+	in := new(base.AuthorizationRequest)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -183,7 +199,7 @@ func _User_Authorization_Handler(srv interface{}, ctx context.Context, dec func(
 		FullMethod: "/api.user.User/Authorization",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(UserServer).Authorization(ctx, req.(*AuthorizationRequest))
+		return srv.(UserServer).Authorization(ctx, req.(*base.AuthorizationRequest))
 	}
 	return interceptor(ctx, in, info, handler)
 }
@@ -278,6 +294,24 @@ func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.C
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(partner.GetPartnerCircleInfoReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).GetPartnerCircleInfo(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/GetPartnerCircleInfo",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*partner.GetPartnerCircleInfoReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // User_ServiceDesc is the grpc.ServiceDesc for User service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -313,6 +347,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CheckUserPartnerIsRelationship",
 			Handler:    _User_CheckUserPartnerIsRelationship_Handler,
 		},
+		{
+			MethodName: "GetPartnerCircleInfo",
+			Handler:    _User_GetPartnerCircleInfo_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "user.proto",

+ 57 - 12
api/user/user_http.pb.go

@@ -8,7 +8,9 @@ import (
 	context "context"
 	base "git.ikuban.com/server/base-protobuf/kuban/api/base"
 	reply "git.ikuban.com/server/kratos-utils/http/reply"
+	base1 "git.ikuban.com/server/pw-protobuf/api/base"
 	chat "git.ikuban.com/server/pw-protobuf/api/chat"
+	partner "git.ikuban.com/server/pw-protobuf/api/partner"
 	http "github.com/go-kratos/kratos/v2/transport/http"
 	binding "github.com/go-kratos/kratos/v2/transport/http/binding"
 	emptypb "google.golang.org/protobuf/types/known/emptypb"
@@ -28,10 +30,11 @@ var _ = new(base.Html)
 const _ = http.SupportPackageIsVersion1
 
 type UserHTTPServer interface {
-	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
+	Authorization(context.Context, *base1.AuthorizationRequest) (*base1.TokenReply, error)
 	CheckPhoneCode(context.Context, *CheckPhoneCodeRequest) (*emptypb.Empty, error)
 	CheckUserPartnerIsRelationship(context.Context, *CheckUserPartnerIsRelationshipRequest) (*chat.CheckUserPartnerIsRelationshipReply, error)
-	DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
+	DebugLogin(context.Context, *base1.DebugLoginRequest) (*base1.TokenReply, error)
+	GetPartnerCircleInfo(context.Context, *partner.GetPartnerCircleInfoReq) (*partner.PartnerCircleInfo, error)
 	GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
 	SendPhoneCode(context.Context, *SendPhoneCodeRequest) (*emptypb.Empty, error)
 	UpdateUserInformation(context.Context, *UpdateUserInformationRequest) (*emptypb.Empty, error)
@@ -46,11 +49,12 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
 	r.POST("/api/user/code/send", _User_SendPhoneCode0_HTTP_Handler(srv))
 	r.POST("/api/user/code/check", _User_CheckPhoneCode0_HTTP_Handler(srv))
 	r.POST("/api/user/check/relationship", _User_CheckUserPartnerIsRelationship0_HTTP_Handler(srv))
+	r.POST("/api/partner/info/circle", _User_GetPartnerCircleInfo0_HTTP_Handler(srv))
 }
 
 func _User_DebugLogin0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in DebugLoginRequest
+		var in base1.DebugLoginRequest
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
@@ -59,7 +63,7 @@ func _User_DebugLogin0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) e
 		}
 		http.SetOperation(ctx, "/api.user.User/DebugLogin")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.DebugLogin(ctx, req.(*DebugLoginRequest))
+			return srv.DebugLogin(ctx, req.(*base1.DebugLoginRequest))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -77,7 +81,7 @@ func _User_DebugLogin0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) e
 
 func _User_Authorization0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in AuthorizationRequest
+		var in base1.AuthorizationRequest
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
@@ -86,7 +90,7 @@ func _User_Authorization0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context
 		}
 		http.SetOperation(ctx, "/api.user.User/Authorization")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.Authorization(ctx, req.(*AuthorizationRequest))
+			return srv.Authorization(ctx, req.(*base1.AuthorizationRequest))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -237,11 +241,39 @@ func _User_CheckUserPartnerIsRelationship0_HTTP_Handler(srv UserHTTPServer) func
 	}
 }
 
+func _User_GetPartnerCircleInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in partner.GetPartnerCircleInfoReq
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.user.User/GetPartnerCircleInfo")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.GetPartnerCircleInfo(ctx, req.(*partner.GetPartnerCircleInfoReq))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
 type UserHTTPClient interface {
-	Authorization(ctx context.Context, req *AuthorizationRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
+	Authorization(ctx context.Context, req *base1.AuthorizationRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
 	CheckPhoneCode(ctx context.Context, req *CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CheckUserPartnerIsRelationship(ctx context.Context, req *CheckUserPartnerIsRelationshipRequest, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
-	DebugLogin(ctx context.Context, req *DebugLoginRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
+	DebugLogin(ctx context.Context, req *base1.DebugLoginRequest, opts ...http.CallOption) (rsp *base1.TokenReply, err error)
+	GetPartnerCircleInfo(ctx context.Context, req *partner.GetPartnerCircleInfoReq, opts ...http.CallOption) (rsp *partner.PartnerCircleInfo, err error)
 	GetUserInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserInfo, err error)
 	SendPhoneCode(ctx context.Context, req *SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UpdateUserInformation(ctx context.Context, req *UpdateUserInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
@@ -255,8 +287,8 @@ func NewUserHTTPClient(client *http.Client) UserHTTPClient {
 	return &UserHTTPClientImpl{client}
 }
 
-func (c *UserHTTPClientImpl) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...http.CallOption) (*TokenReply, error) {
-	var out TokenReply
+func (c *UserHTTPClientImpl) Authorization(ctx context.Context, in *base1.AuthorizationRequest, opts ...http.CallOption) (*base1.TokenReply, error) {
+	var out base1.TokenReply
 	pattern := "/api/user/authorization"
 	path := binding.EncodeURL(pattern, in, false)
 	opts = append(opts, http.Operation("/api.user.User/Authorization"))
@@ -294,8 +326,8 @@ func (c *UserHTTPClientImpl) CheckUserPartnerIsRelationship(ctx context.Context,
 	return &out, err
 }
 
-func (c *UserHTTPClientImpl) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...http.CallOption) (*TokenReply, error) {
-	var out TokenReply
+func (c *UserHTTPClientImpl) DebugLogin(ctx context.Context, in *base1.DebugLoginRequest, opts ...http.CallOption) (*base1.TokenReply, error) {
+	var out base1.TokenReply
 	pattern := "/api/user/login/debug"
 	path := binding.EncodeURL(pattern, in, false)
 	opts = append(opts, http.Operation("/api.user.User/DebugLogin"))
@@ -307,6 +339,19 @@ func (c *UserHTTPClientImpl) DebugLogin(ctx context.Context, in *DebugLoginReque
 	return &out, err
 }
 
+func (c *UserHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *partner.GetPartnerCircleInfoReq, opts ...http.CallOption) (*partner.PartnerCircleInfo, error) {
+	var out partner.PartnerCircleInfo
+	pattern := "/api/partner/info/circle"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.user.User/GetPartnerCircleInfo"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserInfo, error) {
 	var out UserInfo
 	pattern := "/api/user/info"

+ 11 - 0
js/api/base/base_pb.ts

@@ -0,0 +1,11 @@
+export interface AuthorizationRequest{
+    jsCode?:string;
+}
+export interface TokenReply{
+    token?:string;
+}
+export interface DebugLoginRequest{
+    id?:string;
+    code?:string;
+}
+

+ 14 - 1
js/api/partner/partner_http_pb.ts

@@ -1,12 +1,25 @@
 // @ts-ignore
 import { request } from 'ice';
-import {AuthorizationRequest,TokenReply} from "./partner_pb";
+import {AuthorizationRequest,TokenReply,DebugLoginRequest} from "../base/base_pb";
+import {PartnerInfo,GetPartnerCircleInfoReq,PartnerCircleInfo} from "./partner_pb";
 
 const PartnerService = {
   Authorization: async (req?: AuthorizationRequest) => {
 	const res = await request.post<{ data: TokenReply, code: string, message: string }>('/api/partner/authorization', req);
     return res.data;
   },
+  DebugLogin: async (req?: DebugLoginRequest) => {
+	const res = await request.post<{ data: TokenReply, code: string, message: string }>('/api/user/login/debug', req);
+    return res.data;
+  },
+  GetPartnerInfo: async (req?: undefined) => {
+	const res = await request.post<{ data: PartnerInfo, code: string, message: string }>('/api/partner/info', req);
+    return res.data;
+  },
+  GetPartnerCircleInfo: async (req?: GetPartnerCircleInfoReq) => {
+	const res = await request.post<{ data: PartnerCircleInfo, code: string, message: string }>('/api/partner/info/circle', req);
+    return res.data;
+  },
 
 };
 

+ 29 - 4
js/api/partner/partner_pb.ts

@@ -1,7 +1,32 @@
-export interface AuthorizationRequest{
-    jsCode?:string;
+export interface GetPartnerCircleInfoReq{
+    partnerId?:string;
 }
-export interface TokenReply{
-    token?:string;
+export interface PartnerCircleInfo{
+    /**  id */
+    id?:string;
+    /**  昵称 */
+    nickname?:string;
+    /**  头像链接 */
+    avatarUrl?:string;
+    /**  手机号 */
+    phone?:string;
+    /**  性别 */
+    sex?:number;
+    /**  积分 */
+    credit?:number;
+}
+export interface PartnerInfo{
+    /**  id */
+    id?:string;
+    /**  昵称 */
+    nickname?:string;
+    /**  头像链接 */
+    avatarUrl?:string;
+    /**  手机号 */
+    phone?:string;
+    /**  性别 */
+    sex?:number;
+    /**  积分 */
+    credit?:number;
 }
 

+ 7 - 1
js/api/user/user_http_pb.ts

@@ -1,7 +1,9 @@
 // @ts-ignore
 import { request } from 'ice';
-import {DebugLoginRequest,TokenReply,AuthorizationRequest,UpdateUserInformationRequest,UserInfo,SendPhoneCodeRequest,CheckPhoneCodeRequest,CheckUserPartnerIsRelationshipRequest} from "./user_pb";
+import {DebugLoginRequest,TokenReply,AuthorizationRequest} from "../base/base_pb";
+import {UpdateUserInformationRequest,UserInfo,SendPhoneCodeRequest,CheckPhoneCodeRequest,CheckUserPartnerIsRelationshipRequest} from "./user_pb";
 import {CheckUserPartnerIsRelationshipReply} from "../chat/chat_pb";
+import {GetPartnerCircleInfoReq,PartnerCircleInfo} from "../partner/partner_pb";
 
 const UserService = {
   DebugLogin: async (req?: DebugLoginRequest) => {
@@ -32,6 +34,10 @@ const UserService = {
 	const res = await request.post<{ data: CheckUserPartnerIsRelationshipReply, code: string, message: string }>('/api/user/check/relationship', req);
     return res.data;
   },
+  GetPartnerCircleInfo: async (req?: GetPartnerCircleInfoReq) => {
+	const res = await request.post<{ data: PartnerCircleInfo, code: string, message: string }>('/api/partner/info/circle', req);
+    return res.data;
+  },
 
 };
 

+ 0 - 10
js/api/user/user_pb.ts

@@ -27,14 +27,4 @@ export interface CheckPhoneCodeRequest{
     phone?:string;
     code?:string;
 }
-export interface DebugLoginRequest{
-    userId?:string;
-    code?:string;
-}
-export interface AuthorizationRequest{
-    jsCode?:string;
-}
-export interface TokenReply{
-    token?:string;
-}