Bläddra i källkod

接待员金额等级

wfz 3 år sedan
förälder
incheckning
7a78569264

+ 312 - 136
api/partner/partner.pb.go

@@ -25,6 +25,124 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
+type LevelTable struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	List []*LevelInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
+}
+
+func (x *LevelTable) Reset() {
+	*x = LevelTable{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_partner_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *LevelTable) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*LevelTable) ProtoMessage() {}
+
+func (x *LevelTable) ProtoReflect() protoreflect.Message {
+	mi := &file_partner_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 LevelTable.ProtoReflect.Descriptor instead.
+func (*LevelTable) Descriptor() ([]byte, []int) {
+	return file_partner_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *LevelTable) GetList() []*LevelInfo {
+	if x != nil {
+		return x.List
+	}
+	return nil
+}
+
+type LevelInfo struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Level       int64  `protobuf:"varint,1,opt,name=level,proto3" json:"level"`             // 等级
+	ChatBenefit int64  `protobuf:"varint,2,opt,name=chatBenefit,proto3" json:"chatBenefit"` // 聊天收益
+	CallBenefit int64  `protobuf:"varint,3,opt,name=callBenefit,proto3" json:"callBenefit"` // 语音通话收益
+	Condition   string `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition"`      // 达成条件
+}
+
+func (x *LevelInfo) Reset() {
+	*x = LevelInfo{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_partner_proto_msgTypes[1]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *LevelInfo) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*LevelInfo) ProtoMessage() {}
+
+func (x *LevelInfo) ProtoReflect() protoreflect.Message {
+	mi := &file_partner_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 LevelInfo.ProtoReflect.Descriptor instead.
+func (*LevelInfo) Descriptor() ([]byte, []int) {
+	return file_partner_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *LevelInfo) GetLevel() int64 {
+	if x != nil {
+		return x.Level
+	}
+	return 0
+}
+
+func (x *LevelInfo) GetChatBenefit() int64 {
+	if x != nil {
+		return x.ChatBenefit
+	}
+	return 0
+}
+
+func (x *LevelInfo) GetCallBenefit() int64 {
+	if x != nil {
+		return x.CallBenefit
+	}
+	return 0
+}
+
+func (x *LevelInfo) GetCondition() string {
+	if x != nil {
+		return x.Condition
+	}
+	return ""
+}
+
 type AddPartnerBalanceRequest struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -37,7 +155,7 @@ type AddPartnerBalanceRequest struct {
 func (x *AddPartnerBalanceRequest) Reset() {
 	*x = AddPartnerBalanceRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[0]
+		mi := &file_partner_proto_msgTypes[2]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -50,7 +168,7 @@ func (x *AddPartnerBalanceRequest) String() string {
 func (*AddPartnerBalanceRequest) ProtoMessage() {}
 
 func (x *AddPartnerBalanceRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[0]
+	mi := &file_partner_proto_msgTypes[2]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -63,7 +181,7 @@ func (x *AddPartnerBalanceRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use AddPartnerBalanceRequest.ProtoReflect.Descriptor instead.
 func (*AddPartnerBalanceRequest) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{0}
+	return file_partner_proto_rawDescGZIP(), []int{2}
 }
 
 func (x *AddPartnerBalanceRequest) GetPartnerId() string {
@@ -103,7 +221,7 @@ type PartnerInfo struct {
 func (x *PartnerInfo) Reset() {
 	*x = PartnerInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[1]
+		mi := &file_partner_proto_msgTypes[3]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -116,7 +234,7 @@ func (x *PartnerInfo) String() string {
 func (*PartnerInfo) ProtoMessage() {}
 
 func (x *PartnerInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[1]
+	mi := &file_partner_proto_msgTypes[3]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -129,7 +247,7 @@ func (x *PartnerInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PartnerInfo.ProtoReflect.Descriptor instead.
 func (*PartnerInfo) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{1}
+	return file_partner_proto_rawDescGZIP(), []int{3}
 }
 
 func (x *PartnerInfo) GetId() string {
@@ -238,7 +356,7 @@ type PartnerMessage struct {
 func (x *PartnerMessage) Reset() {
 	*x = PartnerMessage{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[2]
+		mi := &file_partner_proto_msgTypes[4]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -251,7 +369,7 @@ func (x *PartnerMessage) String() string {
 func (*PartnerMessage) ProtoMessage() {}
 
 func (x *PartnerMessage) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[2]
+	mi := &file_partner_proto_msgTypes[4]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -264,7 +382,7 @@ func (x *PartnerMessage) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PartnerMessage.ProtoReflect.Descriptor instead.
 func (*PartnerMessage) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{2}
+	return file_partner_proto_rawDescGZIP(), []int{4}
 }
 
 func (x *PartnerMessage) GetId() string {
@@ -316,7 +434,7 @@ type PartnerBalance struct {
 func (x *PartnerBalance) Reset() {
 	*x = PartnerBalance{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[3]
+		mi := &file_partner_proto_msgTypes[5]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -329,7 +447,7 @@ func (x *PartnerBalance) String() string {
 func (*PartnerBalance) ProtoMessage() {}
 
 func (x *PartnerBalance) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[3]
+	mi := &file_partner_proto_msgTypes[5]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -342,7 +460,7 @@ func (x *PartnerBalance) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PartnerBalance.ProtoReflect.Descriptor instead.
 func (*PartnerBalance) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{3}
+	return file_partner_proto_rawDescGZIP(), []int{5}
 }
 
 func (x *PartnerBalance) GetId() string {
@@ -378,15 +496,16 @@ type PartnerDBBalance struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`                      // id
-	Level        int64  `protobuf:"varint,2,opt,name=level,proto3" json:"level"`               // 等级
-	LevelBenefit int64  `protobuf:"varint,3,opt,name=levelBenefit,proto3" json:"levelBenefit"` // 等级对应的收益
+	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`                    // id
+	Level       int64  `protobuf:"varint,2,opt,name=level,proto3" json:"level"`             // 等级
+	ChatBenefit int64  `protobuf:"varint,3,opt,name=chatBenefit,proto3" json:"chatBenefit"` // 聊天收益
+	CallBenefit int64  `protobuf:"varint,4,opt,name=callBenefit,proto3" json:"callBenefit"` // 语音通话收益
 }
 
 func (x *PartnerDBBalance) Reset() {
 	*x = PartnerDBBalance{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[4]
+		mi := &file_partner_proto_msgTypes[6]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -399,7 +518,7 @@ func (x *PartnerDBBalance) String() string {
 func (*PartnerDBBalance) ProtoMessage() {}
 
 func (x *PartnerDBBalance) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[4]
+	mi := &file_partner_proto_msgTypes[6]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -412,7 +531,7 @@ func (x *PartnerDBBalance) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PartnerDBBalance.ProtoReflect.Descriptor instead.
 func (*PartnerDBBalance) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{4}
+	return file_partner_proto_rawDescGZIP(), []int{6}
 }
 
 func (x *PartnerDBBalance) GetId() string {
@@ -429,9 +548,16 @@ func (x *PartnerDBBalance) GetLevel() int64 {
 	return 0
 }
 
-func (x *PartnerDBBalance) GetLevelBenefit() int64 {
+func (x *PartnerDBBalance) GetChatBenefit() int64 {
 	if x != nil {
-		return x.LevelBenefit
+		return x.ChatBenefit
+	}
+	return 0
+}
+
+func (x *PartnerDBBalance) GetCallBenefit() int64 {
+	if x != nil {
+		return x.CallBenefit
 	}
 	return 0
 }
@@ -450,7 +576,7 @@ type RandomPartnerInfo struct {
 func (x *RandomPartnerInfo) Reset() {
 	*x = RandomPartnerInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[5]
+		mi := &file_partner_proto_msgTypes[7]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -463,7 +589,7 @@ func (x *RandomPartnerInfo) String() string {
 func (*RandomPartnerInfo) ProtoMessage() {}
 
 func (x *RandomPartnerInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[5]
+	mi := &file_partner_proto_msgTypes[7]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -476,7 +602,7 @@ func (x *RandomPartnerInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use RandomPartnerInfo.ProtoReflect.Descriptor instead.
 func (*RandomPartnerInfo) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{5}
+	return file_partner_proto_rawDescGZIP(), []int{7}
 }
 
 func (x *RandomPartnerInfo) GetId() string {
@@ -518,7 +644,7 @@ type GetRandomPartnerRequest struct {
 func (x *GetRandomPartnerRequest) Reset() {
 	*x = GetRandomPartnerRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_partner_proto_msgTypes[6]
+		mi := &file_partner_proto_msgTypes[8]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -531,7 +657,7 @@ func (x *GetRandomPartnerRequest) String() string {
 func (*GetRandomPartnerRequest) ProtoMessage() {}
 
 func (x *GetRandomPartnerRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_partner_proto_msgTypes[6]
+	mi := &file_partner_proto_msgTypes[8]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -544,7 +670,7 @@ func (x *GetRandomPartnerRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetRandomPartnerRequest.ProtoReflect.Descriptor instead.
 func (*GetRandomPartnerRequest) Descriptor() ([]byte, []int) {
-	return file_partner_proto_rawDescGZIP(), []int{6}
+	return file_partner_proto_rawDescGZIP(), []int{8}
 }
 
 func (x *GetRandomPartnerRequest) GetSex() int64 {
@@ -567,7 +693,19 @@ var file_partner_proto_rawDesc = []byte{
 	0x1a, 0x1f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,
 	0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 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, 0x22, 0x52, 0x0a, 0x18, 0x41, 0x64, 0x64, 0x50, 0x61, 0x72,
+	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x54,
+	0x61, 0x62, 0x6c, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03,
+	0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
+	0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74,
+	0x22, 0x83, 0x01, 0x0a, 0x09, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14,
+	0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c,
+	0x65, 0x76, 0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x74, 0x42, 0x65, 0x6e, 0x65,
+	0x66, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x74, 0x42,
+	0x65, 0x6e, 0x65, 0x66, 0x69, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x61, 0x6c, 0x6c, 0x42, 0x65,
+	0x6e, 0x65, 0x66, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x61, 0x6c,
+	0x6c, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64,
+	0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e,
+	0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x52, 0x0a, 0x18, 0x41, 0x64, 0x64, 0x50, 0x61, 0x72,
 	0x74, 0x6e, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
 	0x73, 0x74, 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,
@@ -613,12 +751,14 @@ var file_partner_proto_rawDesc = []byte{
 	0x6f, 0x64, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
 	0x52, 0x0b, 0x74, 0x6f, 0x64, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x12, 0x14, 0x0a,
 	0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x65,
-	0x76, 0x65, 0x6c, 0x22, 0x5c, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x44, 0x42,
+	0x76, 0x65, 0x6c, 0x22, 0x7c, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x44, 0x42,
 	0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
 	0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
-	0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x22, 0x0a,
-	0x0c, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x74, 0x18, 0x03, 0x20,
-	0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69,
+	0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x20, 0x0a,
+	0x0b, 0x63, 0x68, 0x61, 0x74, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01,
+	0x28, 0x03, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x74, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x74, 0x12,
+	0x20, 0x0a, 0x0b, 0x63, 0x61, 0x6c, 0x6c, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69, 0x74, 0x18, 0x04,
+	0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x61, 0x6c, 0x6c, 0x42, 0x65, 0x6e, 0x65, 0x66, 0x69,
 	0x74, 0x22, 0x6f, 0x0a, 0x11, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 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,
@@ -629,7 +769,7 @@ var file_partner_proto_rawDesc = []byte{
 	0x65, 0x78, 0x22, 0x2b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x50,
 	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a,
 	0x03, 0x73, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32,
-	0x8c, 0x15, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x60, 0x0a, 0x0e, 0x47,
+	0xfa, 0x15, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 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,
@@ -797,12 +937,19 @@ var file_partner_proto_rawDesc = []byte{
 	0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x41, 0x64, 0x64, 0x50,
 	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 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, 0x00, 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,
+	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x6c,
+	0x0a, 0x14, 0x47, 0x65, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
+	0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, 0x17,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x4c, 0x65, 0x76,
+	0x65, 0x6c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22,
+	0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x6c, 0x65,
+	0x76, 0x65, 0x6c, 0x2f, 0x74, 0x61, 0x62, 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 (
@@ -817,100 +964,105 @@ func file_partner_proto_rawDescGZIP() []byte {
 	return file_partner_proto_rawDescData
 }
 
-var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
+var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
 var file_partner_proto_goTypes = []interface{}{
-	(*AddPartnerBalanceRequest)(nil),         // 0: api.partner.AddPartnerBalanceRequest
-	(*PartnerInfo)(nil),                      // 1: api.partner.PartnerInfo
-	(*PartnerMessage)(nil),                   // 2: api.partner.PartnerMessage
-	(*PartnerBalance)(nil),                   // 3: api.partner.PartnerBalance
-	(*PartnerDBBalance)(nil),                 // 4: api.partner.PartnerDBBalance
-	(*RandomPartnerInfo)(nil),                // 5: api.partner.RandomPartnerInfo
-	(*GetRandomPartnerRequest)(nil),          // 6: api.partner.GetRandomPartnerRequest
-	(*emptypb.Empty)(nil),                    // 7: google.protobuf.Empty
-	(*common.PartnerIDParam)(nil),            // 8: api.common.PartnerIDParam
-	(*common.PersonIDParam)(nil),             // 9: api.common.PersonIDParam
-	(*common.SendPhoneCodeRequest)(nil),      // 10: api.common.SendPhoneCodeRequest
-	(*common.CheckPhoneCodeRequest)(nil),     // 11: api.common.CheckPhoneCodeRequest
-	(*common.UpdateInformationRequest)(nil),  // 12: api.common.UpdateInformationRequest
-	(*common.PersonParam)(nil),               // 13: api.common.PersonParam
-	(*common.ListPageRequest)(nil),           // 14: api.common.ListPageRequest
-	(*common.PersonIDList)(nil),              // 15: api.common.PersonIDList
-	(*common.WxConfReq)(nil),                 // 16: api.common.WxConfReq
-	(*common.SexReq)(nil),                    // 17: api.common.SexReq
-	(*common.ListPage2Request)(nil),          // 18: api.common.ListPage2Request
-	(*common.FindChatRecordListRequest)(nil), // 19: api.common.FindChatRecordListRequest
-	(*common.FindChatRoomMsgRequest)(nil),    // 20: api.common.FindChatRoomMsgRequest
-	(*common.PersonMsg)(nil),                 // 21: api.common.PersonMsg
-	(*statistics.LookMessageReply)(nil),      // 22: api.statistics.LookMessageReply
-	(*common.AddFriendMessageInfo)(nil),      // 23: api.common.AddFriendMessageInfo
-	(*common.HomeInfo)(nil),                  // 24: api.common.HomeInfo
-	(*common.LookedAndLikedNum)(nil),         // 25: api.common.LookedAndLikedNum
-	(*statistics.LookAndLikeListReply)(nil),  // 26: api.statistics.LookAndLikeListReply
-	(*common.PersonDBReply)(nil),             // 27: api.common.PersonDBReply
-	(*common.WxConfResponse)(nil),            // 28: api.common.WxConfResponse
-	(*chat.RoomReply)(nil),                   // 29: api.chat.RoomReply
-	(*common.TagListReply)(nil),              // 30: api.common.TagListReply
-	(*common.OnlinePersonListReply)(nil),     // 31: api.common.OnlinePersonListReply
-	(*chat.PartnerFindRoomListReply)(nil),    // 32: api.chat.PartnerFindRoomListReply
-	(*common.ChatRecordListReply)(nil),       // 33: api.common.ChatRecordListReply
-	(*common.ChatRoomMsg)(nil),               // 34: api.common.ChatRoomMsg
+	(*LevelTable)(nil),                       // 0: api.partner.LevelTable
+	(*LevelInfo)(nil),                        // 1: api.partner.LevelInfo
+	(*AddPartnerBalanceRequest)(nil),         // 2: api.partner.AddPartnerBalanceRequest
+	(*PartnerInfo)(nil),                      // 3: api.partner.PartnerInfo
+	(*PartnerMessage)(nil),                   // 4: api.partner.PartnerMessage
+	(*PartnerBalance)(nil),                   // 5: api.partner.PartnerBalance
+	(*PartnerDBBalance)(nil),                 // 6: api.partner.PartnerDBBalance
+	(*RandomPartnerInfo)(nil),                // 7: api.partner.RandomPartnerInfo
+	(*GetRandomPartnerRequest)(nil),          // 8: api.partner.GetRandomPartnerRequest
+	(*emptypb.Empty)(nil),                    // 9: google.protobuf.Empty
+	(*common.PartnerIDParam)(nil),            // 10: api.common.PartnerIDParam
+	(*common.PersonIDParam)(nil),             // 11: api.common.PersonIDParam
+	(*common.SendPhoneCodeRequest)(nil),      // 12: api.common.SendPhoneCodeRequest
+	(*common.CheckPhoneCodeRequest)(nil),     // 13: api.common.CheckPhoneCodeRequest
+	(*common.UpdateInformationRequest)(nil),  // 14: api.common.UpdateInformationRequest
+	(*common.PersonParam)(nil),               // 15: api.common.PersonParam
+	(*common.ListPageRequest)(nil),           // 16: api.common.ListPageRequest
+	(*common.PersonIDList)(nil),              // 17: api.common.PersonIDList
+	(*common.WxConfReq)(nil),                 // 18: api.common.WxConfReq
+	(*common.SexReq)(nil),                    // 19: api.common.SexReq
+	(*common.ListPage2Request)(nil),          // 20: api.common.ListPage2Request
+	(*common.FindChatRecordListRequest)(nil), // 21: api.common.FindChatRecordListRequest
+	(*common.FindChatRoomMsgRequest)(nil),    // 22: api.common.FindChatRoomMsgRequest
+	(*common.PersonMsg)(nil),                 // 23: api.common.PersonMsg
+	(*statistics.LookMessageReply)(nil),      // 24: api.statistics.LookMessageReply
+	(*common.AddFriendMessageInfo)(nil),      // 25: api.common.AddFriendMessageInfo
+	(*common.HomeInfo)(nil),                  // 26: api.common.HomeInfo
+	(*common.LookedAndLikedNum)(nil),         // 27: api.common.LookedAndLikedNum
+	(*statistics.LookAndLikeListReply)(nil),  // 28: api.statistics.LookAndLikeListReply
+	(*common.PersonDBReply)(nil),             // 29: api.common.PersonDBReply
+	(*common.WxConfResponse)(nil),            // 30: api.common.WxConfResponse
+	(*chat.RoomReply)(nil),                   // 31: api.chat.RoomReply
+	(*common.TagListReply)(nil),              // 32: api.common.TagListReply
+	(*common.OnlinePersonListReply)(nil),     // 33: api.common.OnlinePersonListReply
+	(*chat.PartnerFindRoomListReply)(nil),    // 34: api.chat.PartnerFindRoomListReply
+	(*common.ChatRecordListReply)(nil),       // 35: api.common.ChatRecordListReply
+	(*common.ChatRoomMsg)(nil),               // 36: api.common.ChatRoomMsg
 }
 var file_partner_proto_depIdxs = []int32{
-	7,  // 0: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
-	7,  // 1: api.partner.Partner.GetPartnerBalance:input_type -> google.protobuf.Empty
-	8,  // 2: api.partner.Partner.GetPartnerDBBalance:input_type -> api.common.PartnerIDParam
-	9,  // 3: api.partner.Partner.GetPartnerDBMsg:input_type -> api.common.PersonIDParam
-	7,  // 4: api.partner.Partner.GetPartnerMessage:input_type -> google.protobuf.Empty
-	7,  // 5: api.partner.Partner.GetPartnerLookNum:input_type -> google.protobuf.Empty
-	10, // 6: api.partner.Partner.SendPhoneCode:input_type -> api.common.SendPhoneCodeRequest
-	11, // 7: api.partner.Partner.CheckPhoneCode:input_type -> api.common.CheckPhoneCodeRequest
-	8,  // 8: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.common.PartnerIDParam
-	12, // 9: api.partner.Partner.UpdatePartnerInformation:input_type -> api.common.UpdateInformationRequest
-	6,  // 10: api.partner.Partner.GetRandomPartnerInfo:input_type -> api.partner.GetRandomPartnerRequest
-	13, // 11: api.partner.Partner.PartnerGetHomeInfo:input_type -> api.common.PersonParam
-	13, // 12: api.partner.Partner.PartnerGetPersonLikedAndLooked:input_type -> api.common.PersonParam
-	14, // 13: api.partner.Partner.FindLookList:input_type -> api.common.ListPageRequest
-	15, // 14: api.partner.Partner.FindPartnerDBList:input_type -> api.common.PersonIDList
-	16, // 15: api.partner.Partner.WxConf:input_type -> api.common.WxConfReq
-	9,  // 16: api.partner.Partner.CreateUserPartnerRoom:input_type -> api.common.PersonIDParam
-	17, // 17: api.partner.Partner.FindTagListBySex:input_type -> api.common.SexReq
-	18, // 18: api.partner.Partner.FindOnlineList:input_type -> api.common.ListPage2Request
-	14, // 19: api.partner.Partner.FindUnReplyRoomList:input_type -> api.common.ListPageRequest
-	14, // 20: api.partner.Partner.FindWithinSevenDayRoomList:input_type -> api.common.ListPageRequest
-	14, // 21: api.partner.Partner.FindOverSevenDayRoomList:input_type -> api.common.ListPageRequest
-	19, // 22: api.partner.Partner.FindChatRecordList:input_type -> api.common.FindChatRecordListRequest
-	20, // 23: api.partner.Partner.FindChatRoomMsg:input_type -> api.common.FindChatRoomMsgRequest
-	0,  // 24: api.partner.Partner.AddPartnerBalance:input_type -> api.partner.AddPartnerBalanceRequest
-	1,  // 25: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
-	3,  // 26: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
-	4,  // 27: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
-	21, // 28: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
-	2,  // 29: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
-	22, // 30: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
-	7,  // 31: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
-	7,  // 32: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
-	23, // 33: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	7,  // 34: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
-	5,  // 35: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
-	24, // 36: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
-	25, // 37: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	26, // 38: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	27, // 39: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
-	28, // 40: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
-	29, // 41: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
-	30, // 42: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
-	31, // 43: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
-	32, // 44: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	32, // 45: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	32, // 46: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	33, // 47: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	34, // 48: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	7,  // 49: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
-	25, // [25:50] is the sub-list for method output_type
-	0,  // [0:25] 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
+	1,  // 0: api.partner.LevelTable.list:type_name -> api.partner.LevelInfo
+	9,  // 1: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
+	9,  // 2: api.partner.Partner.GetPartnerBalance:input_type -> google.protobuf.Empty
+	10, // 3: api.partner.Partner.GetPartnerDBBalance:input_type -> api.common.PartnerIDParam
+	11, // 4: api.partner.Partner.GetPartnerDBMsg:input_type -> api.common.PersonIDParam
+	9,  // 5: api.partner.Partner.GetPartnerMessage:input_type -> google.protobuf.Empty
+	9,  // 6: api.partner.Partner.GetPartnerLookNum:input_type -> google.protobuf.Empty
+	12, // 7: api.partner.Partner.SendPhoneCode:input_type -> api.common.SendPhoneCodeRequest
+	13, // 8: api.partner.Partner.CheckPhoneCode:input_type -> api.common.CheckPhoneCodeRequest
+	10, // 9: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.common.PartnerIDParam
+	14, // 10: api.partner.Partner.UpdatePartnerInformation:input_type -> api.common.UpdateInformationRequest
+	8,  // 11: api.partner.Partner.GetRandomPartnerInfo:input_type -> api.partner.GetRandomPartnerRequest
+	15, // 12: api.partner.Partner.PartnerGetHomeInfo:input_type -> api.common.PersonParam
+	15, // 13: api.partner.Partner.PartnerGetPersonLikedAndLooked:input_type -> api.common.PersonParam
+	16, // 14: api.partner.Partner.FindLookList:input_type -> api.common.ListPageRequest
+	17, // 15: api.partner.Partner.FindPartnerDBList:input_type -> api.common.PersonIDList
+	18, // 16: api.partner.Partner.WxConf:input_type -> api.common.WxConfReq
+	11, // 17: api.partner.Partner.CreateUserPartnerRoom:input_type -> api.common.PersonIDParam
+	19, // 18: api.partner.Partner.FindTagListBySex:input_type -> api.common.SexReq
+	20, // 19: api.partner.Partner.FindOnlineList:input_type -> api.common.ListPage2Request
+	16, // 20: api.partner.Partner.FindUnReplyRoomList:input_type -> api.common.ListPageRequest
+	16, // 21: api.partner.Partner.FindWithinSevenDayRoomList:input_type -> api.common.ListPageRequest
+	16, // 22: api.partner.Partner.FindOverSevenDayRoomList:input_type -> api.common.ListPageRequest
+	21, // 23: api.partner.Partner.FindChatRecordList:input_type -> api.common.FindChatRecordListRequest
+	22, // 24: api.partner.Partner.FindChatRoomMsg:input_type -> api.common.FindChatRoomMsgRequest
+	2,  // 25: api.partner.Partner.AddPartnerBalance:input_type -> api.partner.AddPartnerBalanceRequest
+	9,  // 26: api.partner.Partner.GetLevelBalanceTable:input_type -> google.protobuf.Empty
+	3,  // 27: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	5,  // 28: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
+	6,  // 29: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
+	23, // 30: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
+	4,  // 31: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
+	24, // 32: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
+	9,  // 33: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
+	9,  // 34: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
+	25, // 35: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	9,  // 36: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
+	7,  // 37: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
+	26, // 38: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
+	27, // 39: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	28, // 40: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	29, // 41: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
+	30, // 42: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
+	31, // 43: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
+	32, // 44: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
+	33, // 45: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
+	34, // 46: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	34, // 47: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	34, // 48: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	35, // 49: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	36, // 50: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	9,  // 51: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
+	0,  // 52: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
+	27, // [27:53] is the sub-list for method output_type
+	1,  // [1:27] is the sub-list for method input_type
+	1,  // [1:1] is the sub-list for extension type_name
+	1,  // [1:1] is the sub-list for extension extendee
+	0,  // [0:1] is the sub-list for field type_name
 }
 
 func init() { file_partner_proto_init() }
@@ -920,7 +1072,7 @@ func file_partner_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_partner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*AddPartnerBalanceRequest); i {
+			switch v := v.(*LevelTable); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -932,7 +1084,7 @@ func file_partner_proto_init() {
 			}
 		}
 		file_partner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*PartnerInfo); i {
+			switch v := v.(*LevelInfo); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -944,7 +1096,7 @@ func file_partner_proto_init() {
 			}
 		}
 		file_partner_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*PartnerMessage); i {
+			switch v := v.(*AddPartnerBalanceRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -956,7 +1108,7 @@ func file_partner_proto_init() {
 			}
 		}
 		file_partner_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*PartnerBalance); i {
+			switch v := v.(*PartnerInfo); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -968,7 +1120,7 @@ func file_partner_proto_init() {
 			}
 		}
 		file_partner_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*PartnerDBBalance); i {
+			switch v := v.(*PartnerMessage); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -980,7 +1132,7 @@ func file_partner_proto_init() {
 			}
 		}
 		file_partner_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*RandomPartnerInfo); i {
+			switch v := v.(*PartnerBalance); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -992,6 +1144,30 @@ func file_partner_proto_init() {
 			}
 		}
 		file_partner_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*PartnerDBBalance); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_partner_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*RandomPartnerInfo); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_partner_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*GetRandomPartnerRequest); i {
 			case 0:
 				return &v.state
@@ -1010,7 +1186,7 @@ func file_partner_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_partner_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   7,
+			NumMessages:   9,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 20 - 2
api/partner/partner.proto

@@ -156,6 +156,24 @@ service Partner {
     };
   };
   rpc AddPartnerBalance(AddPartnerBalanceRequest)returns (google.protobuf.Empty){};
+  // 获取等级对应收益表
+  rpc GetLevelBalanceTable (google.protobuf.Empty) returns (LevelTable){
+    option (google.api.http) = {
+      post: "/api/partner/level/table",
+      body:"*"
+    };
+  };
+}
+
+message LevelTable{
+  repeated LevelInfo list = 1;
+}
+
+message LevelInfo{
+  int64 level = 1;// 等级
+  int64 chatBenefit = 2;// 聊天收益
+  int64 callBenefit = 3;// 语音通话收益
+  string condition = 4;// 达成条件
 }
 
 message AddPartnerBalanceRequest{
@@ -197,10 +215,10 @@ message PartnerBalance{
 message PartnerDBBalance{
   string id = 1; // id
   int64 level = 2;// 等级
-  int64 levelBenefit = 3;// 等级对应的收益
+  int64 chatBenefit = 3;// 聊天收益
+  int64 callBenefit = 4;// 语音通话收益
 }
 
-
 message RandomPartnerInfo{
   string id = 1; // id
   string nickname = 2;// 昵称

+ 38 - 0
api/partner/partner_grpc.pb.go

@@ -69,6 +69,8 @@ type PartnerClient interface {
 	// 接待者查询房间信息
 	FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error)
 	AddPartnerBalance(ctx context.Context, in *AddPartnerBalanceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 获取等级对应收益表
+	GetLevelBalanceTable(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*LevelTable, error)
 }
 
 type partnerClient struct {
@@ -304,6 +306,15 @@ func (c *partnerClient) AddPartnerBalance(ctx context.Context, in *AddPartnerBal
 	return out, nil
 }
 
+func (c *partnerClient) GetLevelBalanceTable(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*LevelTable, error) {
+	out := new(LevelTable)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetLevelBalanceTable", 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
@@ -355,6 +366,8 @@ type PartnerServer interface {
 	// 接待者查询房间信息
 	FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
 	AddPartnerBalance(context.Context, *AddPartnerBalanceRequest) (*emptypb.Empty, error)
+	// 获取等级对应收益表
+	GetLevelBalanceTable(context.Context, *emptypb.Empty) (*LevelTable, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -437,6 +450,9 @@ func (UnimplementedPartnerServer) FindChatRoomMsg(context.Context, *common.FindC
 func (UnimplementedPartnerServer) AddPartnerBalance(context.Context, *AddPartnerBalanceRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method AddPartnerBalance not implemented")
 }
+func (UnimplementedPartnerServer) GetLevelBalanceTable(context.Context, *emptypb.Empty) (*LevelTable, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetLevelBalanceTable not implemented")
+}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -900,6 +916,24 @@ func _Partner_AddPartnerBalance_Handler(srv interface{}, ctx context.Context, de
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Partner_GetLevelBalanceTable_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).GetLevelBalanceTable(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/GetLevelBalanceTable",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).GetLevelBalanceTable(ctx, req.(*emptypb.Empty))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1007,6 +1041,10 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "AddPartnerBalance",
 			Handler:    _Partner_AddPartnerBalance_Handler,
 		},
+		{
+			MethodName: "GetLevelBalanceTable",
+			Handler:    _Partner_GetLevelBalanceTable_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

+ 43 - 0
api/partner/partner_http.pb.go

@@ -40,6 +40,7 @@ type PartnerHTTPServer interface {
 	FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
 	FindUnReplyRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
 	FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
+	GetLevelBalanceTable(context.Context, *emptypb.Empty) (*LevelTable, error)
 	GetPartnerBalance(context.Context, *emptypb.Empty) (*PartnerBalance, error)
 	GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
 	GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
@@ -72,6 +73,7 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r.POST("/api/partner/list/chat/over", _Partner_FindOverSevenDayRoomList0_HTTP_Handler(srv))
 	r.POST("/api/partner/chat/record", _Partner_FindChatRecordList0_HTTP_Handler(srv))
 	r.POST("/api/partner/chat/room/msg", _Partner_FindChatRoomMsg0_HTTP_Handler(srv))
+	r.POST("/api/partner/level/table", _Partner_GetLevelBalanceTable0_HTTP_Handler(srv))
 }
 
 func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
@@ -587,6 +589,33 @@ func _Partner_FindChatRoomMsg0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http
 	}
 }
 
+func _Partner_GetLevelBalanceTable0_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/GetLevelBalanceTable")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.GetLevelBalanceTable(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)
+	}
+}
+
 type PartnerHTTPClient interface {
 	CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CreateUserPartnerRoom(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
@@ -598,6 +627,7 @@ type PartnerHTTPClient interface {
 	FindTagListBySex(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *common.TagListReply, err error)
 	FindUnReplyRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
 	FindWithinSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
+	GetLevelBalanceTable(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *LevelTable, err error)
 	GetPartnerBalance(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerBalance, err error)
 	GetPartnerInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerInfo, err error)
 	GetPartnerLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
@@ -747,6 +777,19 @@ func (c *PartnerHTTPClientImpl) FindWithinSevenDayRoomList(ctx context.Context,
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) GetLevelBalanceTable(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*LevelTable, error) {
+	var out LevelTable
+	pattern := "/api/partner/level/table"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/GetLevelBalanceTable"))
+	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) GetPartnerBalance(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerBalance, error) {
 	var out PartnerBalance
 	pattern := "/api/partner/balance"

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

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {PartnerInfo,PartnerBalance,PartnerDBBalance,PartnerMessage,GetRandomPartnerRequest,RandomPartnerInfo,AddPartnerBalanceRequest} from "./partner_pb";
+import {PartnerInfo,PartnerBalance,PartnerDBBalance,PartnerMessage,GetRandomPartnerRequest,RandomPartnerInfo,AddPartnerBalanceRequest,LevelTable} from "./partner_pb";
 import {PartnerIDParam,PersonIDParam,PersonMsg,SendPhoneCodeRequest,CheckPhoneCodeRequest,AddFriendMessageInfo,UpdateInformationRequest,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,PersonIDList,PersonDBReply,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,OnlinePersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg} from "../common/common_pb";
 import {LookMessageReply,LookAndLikeListReply} from "../statistics/statistics_pb";
 import {RoomReply,PartnerFindRoomListReply} from "../chat/chat_pb";
@@ -101,6 +101,11 @@ const PartnerService = {
 	const res = await request.post<{ data: ChatRoomMsg, code: string, message: string }>('/api/partner/chat/room/msg', req);
     return res.data.data;
   },
+  /**  获取等级对应收益表 */
+  GetLevelBalanceTable: async (req?: undefined) => {
+	const res = await request.post<{ data: LevelTable, code: string, message: string }>('/api/partner/level/table', req);
+    return res.data.data;
+  },
 
 };
 

+ 17 - 2
js/api/partner/partner_pb.ts

@@ -1,3 +1,16 @@
+export interface LevelTable{
+    list?:Array<LevelInfo>;
+}
+export interface LevelInfo{
+    /**  等级 */
+    level?:number;
+    /**  聊天收益 */
+    chatBenefit?:number;
+    /**  语音通话收益 */
+    callBenefit?:number;
+    /**  达成条件 */
+    condition?:string;
+}
 export interface AddPartnerBalanceRequest{
     partnerId?:string;
     balance?:number;
@@ -57,8 +70,10 @@ export interface PartnerDBBalance{
     id?:string;
     /**  等级 */
     level?:number;
-    /**  等级对应的收益 */
-    levelBenefit?:number;
+    /**  聊天收益 */
+    chatBenefit?:number;
+    /**  语音通话收益 */
+    callBenefit?:number;
 }
 export interface RandomPartnerInfo{
     /**  id */