Parcourir la source

AuthorizationMiniProgram

wfz il y a 3 ans
Parent
commit
06d5cef68b

+ 194 - 119
api/account/account.pb.go

@@ -1069,6 +1069,53 @@ func (x *PartnerInfoDB) GetCredit() int64 {
 	return 0
 }
 
+type AuthorizationMiniProgramRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	JsCode string `protobuf:"bytes,1,opt,name=jsCode,proto3" json:"jsCode"`
+}
+
+func (x *AuthorizationMiniProgramRequest) Reset() {
+	*x = AuthorizationMiniProgramRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_account_proto_msgTypes[18]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *AuthorizationMiniProgramRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AuthorizationMiniProgramRequest) ProtoMessage() {}
+
+func (x *AuthorizationMiniProgramRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_account_proto_msgTypes[18]
+	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 AuthorizationMiniProgramRequest.ProtoReflect.Descriptor instead.
+func (*AuthorizationMiniProgramRequest) Descriptor() ([]byte, []int) {
+	return file_account_proto_rawDescGZIP(), []int{18}
+}
+
+func (x *AuthorizationMiniProgramRequest) GetJsCode() string {
+	if x != nil {
+		return x.JsCode
+	}
+	return ""
+}
+
 type AuthorizationRequest struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -1084,7 +1131,7 @@ type AuthorizationRequest struct {
 func (x *AuthorizationRequest) Reset() {
 	*x = AuthorizationRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_account_proto_msgTypes[18]
+		mi := &file_account_proto_msgTypes[19]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -1097,7 +1144,7 @@ func (x *AuthorizationRequest) String() string {
 func (*AuthorizationRequest) ProtoMessage() {}
 
 func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_account_proto_msgTypes[18]
+	mi := &file_account_proto_msgTypes[19]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1110,7 +1157,7 @@ func (x *AuthorizationRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use AuthorizationRequest.ProtoReflect.Descriptor instead.
 func (*AuthorizationRequest) Descriptor() ([]byte, []int) {
-	return file_account_proto_rawDescGZIP(), []int{18}
+	return file_account_proto_rawDescGZIP(), []int{19}
 }
 
 func (x *AuthorizationRequest) GetJsCode() string {
@@ -1160,7 +1207,7 @@ type TokenReply struct {
 func (x *TokenReply) Reset() {
 	*x = TokenReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_account_proto_msgTypes[19]
+		mi := &file_account_proto_msgTypes[20]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -1173,7 +1220,7 @@ func (x *TokenReply) String() string {
 func (*TokenReply) ProtoMessage() {}
 
 func (x *TokenReply) ProtoReflect() protoreflect.Message {
-	mi := &file_account_proto_msgTypes[19]
+	mi := &file_account_proto_msgTypes[20]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1186,7 +1233,7 @@ func (x *TokenReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use TokenReply.ProtoReflect.Descriptor instead.
 func (*TokenReply) Descriptor() ([]byte, []int) {
-	return file_account_proto_rawDescGZIP(), []int{19}
+	return file_account_proto_rawDescGZIP(), []int{20}
 }
 
 func (x *TokenReply) GetToken() string {
@@ -1215,7 +1262,7 @@ type DebugLoginRequest struct {
 func (x *DebugLoginRequest) Reset() {
 	*x = DebugLoginRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_account_proto_msgTypes[20]
+		mi := &file_account_proto_msgTypes[21]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -1228,7 +1275,7 @@ func (x *DebugLoginRequest) String() string {
 func (*DebugLoginRequest) ProtoMessage() {}
 
 func (x *DebugLoginRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_account_proto_msgTypes[20]
+	mi := &file_account_proto_msgTypes[21]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1241,7 +1288,7 @@ func (x *DebugLoginRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use DebugLoginRequest.ProtoReflect.Descriptor instead.
 func (*DebugLoginRequest) Descriptor() ([]byte, []int) {
-	return file_account_proto_rawDescGZIP(), []int{20}
+	return file_account_proto_rawDescGZIP(), []int{21}
 }
 
 func (x *DebugLoginRequest) GetId() int64 {
@@ -1270,7 +1317,7 @@ type LoginToken struct {
 func (x *LoginToken) Reset() {
 	*x = LoginToken{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_account_proto_msgTypes[21]
+		mi := &file_account_proto_msgTypes[22]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -1283,7 +1330,7 @@ func (x *LoginToken) String() string {
 func (*LoginToken) ProtoMessage() {}
 
 func (x *LoginToken) ProtoReflect() protoreflect.Message {
-	mi := &file_account_proto_msgTypes[21]
+	mi := &file_account_proto_msgTypes[22]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -1296,7 +1343,7 @@ func (x *LoginToken) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use LoginToken.ProtoReflect.Descriptor instead.
 func (*LoginToken) Descriptor() ([]byte, []int) {
-	return file_account_proto_rawDescGZIP(), []int{21}
+	return file_account_proto_rawDescGZIP(), []int{22}
 }
 
 func (x *LoginToken) GetPid() string {
@@ -1429,40 +1476,53 @@ var file_account_proto_rawDesc = []byte{
 	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, 0x8a, 0x01, 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, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
-	0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64,
-	0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
-	0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x4f, 0x70, 0x65, 0x6e,
-	0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x4f, 0x70,
-	0x65, 0x6e, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28,
-	0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x22, 0x38, 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, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
-	0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64,
-	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,
-	0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x32, 0x0a, 0x0a, 0x4c, 0x6f, 0x67,
-	0x69, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01,
-	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
-	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x32, 0xcf, 0x12,
-	0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x62, 0x0a, 0x0a, 0x44, 0x65, 0x62,
-	0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63,
-	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e,
-	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63,
-	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79,
-	0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c,
-	0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x70, 0x0a,
-	0x0d, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21,
-	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e,
-	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93,
-	0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x61,
-	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12,
+	0x03, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x22, 0x39, 0x0a, 0x1f, 0x41, 0x75, 0x74,
+	0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x50, 0x72,
+	0x6f, 0x67, 0x72, 0x61, 0x6d, 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, 0x8a, 0x01, 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, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x02,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74,
+	0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
+	0x1e, 0x0a, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x18, 0x04, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x72, 0x6f, 0x6d, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x64, 0x12,
+	0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65,
+	0x78, 0x22, 0x38, 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, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x02,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 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, 0x03, 0x52, 0x02, 0x69, 0x64,
+	0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+	0x63, 0x6f, 0x64, 0x65, 0x22, 0x32, 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x54, 0x6f, 0x6b,
+	0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x03, 0x70, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x32, 0xe4, 0x13, 0x0a, 0x07, 0x41, 0x63, 0x63,
+	0x6f, 0x75, 0x6e, 0x74, 0x12, 0x62, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67,
+	0x69, 0x6e, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+	0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
+	0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+	0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4,
+	0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f,
+	0x64, 0x65, 0x62, 0x75, 0x67, 0x3a, 0x01, 0x2a, 0x12, 0x70, 0x0a, 0x0d, 0x41, 0x75, 0x74, 0x68,
+	0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+	0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
+	0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f,
+	0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
+	0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x92, 0x01, 0x0a, 0x18, 0x41,
+	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69,
+	0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x2c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63,
+	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
+	0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x69, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x65,
+	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f,
+	0x75, 0x6e, 0x74, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x2f,
+	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x22, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67,
+	0x69, 0x6e, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+	0x2f, 0x6d, 0x69, 0x6e, 0x69, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x3a, 0x01, 0x2a, 0x12,
 	0x6e, 0x0a, 0x0e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x4e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
 	0x65, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53,
 	0x65, 0x78, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f,
@@ -1617,7 +1677,7 @@ func file_account_proto_rawDescGZIP() []byte {
 	return file_account_proto_rawDescData
 }
 
-var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
+var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
 var file_account_proto_goTypes = []interface{}{
 	(*StatisticsSubscribeMessageRequest)(nil),            // 0: api.account.StatisticsSubscribeMessageRequest
 	(*FindIdentifyByAccountIDAndIsSubscribeRequest)(nil), // 1: api.account.FindIdentifyByAccountIDAndIsSubscribeRequest
@@ -1637,77 +1697,80 @@ var file_account_proto_goTypes = []interface{}{
 	(*IdentityInfo)(nil),                                 // 15: api.account.IdentityInfo
 	(*UserInfoDB)(nil),                                   // 16: api.account.UserInfoDB
 	(*PartnerInfoDB)(nil),                                // 17: api.account.PartnerInfoDB
-	(*AuthorizationRequest)(nil),                         // 18: api.account.AuthorizationRequest
-	(*TokenReply)(nil),                                   // 19: api.account.TokenReply
-	(*DebugLoginRequest)(nil),                            // 20: api.account.DebugLoginRequest
-	(*LoginToken)(nil),                                   // 21: api.account.LoginToken
-	(*common.SexReq)(nil),                                // 22: api.common.SexReq
-	(*emptypb.Empty)(nil),                                // 23: google.protobuf.Empty
-	(*common.Ids)(nil),                                   // 24: api.common.Ids
-	(*common.MemeRequest)(nil),                           // 25: api.common.MemeRequest
-	(*common.FindChatTopicRequest)(nil),                  // 26: api.common.FindChatTopicRequest
-	(*common.RandomNum)(nil),                             // 27: api.common.RandomNum
-	(*common.RandomNumAndSex)(nil),                       // 28: api.common.RandomNumAndSex
-	(*common.GetLoginConfigRequest)(nil),                 // 29: api.common.GetLoginConfigRequest
-	(*common.TagListReply)(nil),                          // 30: api.common.TagListReply
-	(*common.RandomIntroduceReply)(nil),                  // 31: api.common.RandomIntroduceReply
-	(*common.MemeList)(nil),                              // 32: api.common.MemeList
-	(*common.ChatTopicList)(nil),                         // 33: api.common.ChatTopicList
-	(*common.CommonTextList)(nil),                        // 34: api.common.CommonTextList
-	(*common.GetLoginConfigReply)(nil),                   // 35: api.common.GetLoginConfigReply
+	(*AuthorizationMiniProgramRequest)(nil),              // 18: api.account.AuthorizationMiniProgramRequest
+	(*AuthorizationRequest)(nil),                         // 19: api.account.AuthorizationRequest
+	(*TokenReply)(nil),                                   // 20: api.account.TokenReply
+	(*DebugLoginRequest)(nil),                            // 21: api.account.DebugLoginRequest
+	(*LoginToken)(nil),                                   // 22: api.account.LoginToken
+	(*common.SexReq)(nil),                                // 23: api.common.SexReq
+	(*emptypb.Empty)(nil),                                // 24: google.protobuf.Empty
+	(*common.Ids)(nil),                                   // 25: api.common.Ids
+	(*common.MemeRequest)(nil),                           // 26: api.common.MemeRequest
+	(*common.FindChatTopicRequest)(nil),                  // 27: api.common.FindChatTopicRequest
+	(*common.RandomNum)(nil),                             // 28: api.common.RandomNum
+	(*common.RandomNumAndSex)(nil),                       // 29: api.common.RandomNumAndSex
+	(*common.GetLoginConfigRequest)(nil),                 // 30: api.common.GetLoginConfigRequest
+	(*common.TagListReply)(nil),                          // 31: api.common.TagListReply
+	(*common.RandomIntroduceReply)(nil),                  // 32: api.common.RandomIntroduceReply
+	(*common.MemeList)(nil),                              // 33: api.common.MemeList
+	(*common.ChatTopicList)(nil),                         // 34: api.common.ChatTopicList
+	(*common.CommonTextList)(nil),                        // 35: api.common.CommonTextList
+	(*common.GetLoginConfigReply)(nil),                   // 36: api.common.GetLoginConfigReply
 }
 var file_account_proto_depIdxs = []int32{
 	3,  // 0: api.account.FindIdentifyByAccountIDAndIsSubscribeReply.list:type_name -> api.account.FindIdentifyByAccountIDInfo
-	20, // 1: api.account.Account.DebugLogin:input_type -> api.account.DebugLoginRequest
-	18, // 2: api.account.Account.Authorization:input_type -> api.account.AuthorizationRequest
-	22, // 3: api.account.Account.RandomNickname:input_type -> api.common.SexReq
-	22, // 4: api.account.Account.RandomAvatar:input_type -> api.common.SexReq
-	23, // 5: api.account.Account.GetGetGzhConfig:input_type -> google.protobuf.Empty
-	0,  // 6: api.account.Account.StatisticsSubscribeMessage:input_type -> api.account.StatisticsSubscribeMessageRequest
-	22, // 7: api.account.Account.RandomAvatarList:input_type -> api.common.SexReq
-	14, // 8: api.account.Account.GetIdentityByOpenIDAndAppID:input_type -> api.account.OpenIDAndAppIDRequest
-	14, // 9: api.account.Account.GetIdentityByOpenIDAndAppIDAndCreate:input_type -> api.account.OpenIDAndAppIDRequest
-	22, // 10: api.account.Account.FindTagListBySex:input_type -> api.common.SexReq
-	24, // 11: api.account.Account.FindTagsByIDs:input_type -> api.common.Ids
-	22, // 12: api.account.Account.RandomIntroduce:input_type -> api.common.SexReq
-	9,  // 13: api.account.Account.UploadMaterialVoice:input_type -> api.account.MediaID
-	25, // 14: api.account.Account.FindMemeByType:input_type -> api.common.MemeRequest
-	26, // 15: api.account.Account.FindChatTopic:input_type -> api.common.FindChatTopicRequest
-	27, // 16: api.account.Account.RandomMeme:input_type -> api.common.RandomNum
-	28, // 17: api.account.Account.RandomSwiftMessage:input_type -> api.common.RandomNumAndSex
-	7,  // 18: api.account.Account.CheckText:input_type -> api.account.CheckTextRequest
-	29, // 19: api.account.Account.GetUserLoginConfig:input_type -> api.common.GetLoginConfigRequest
-	5,  // 20: api.account.Account.GetIdentifyByAccountID:input_type -> api.account.GetIdentifyByAccountIDRequest
-	5,  // 21: api.account.Account.GetIdentifyByAccountIDAndIsSubscribe:input_type -> api.account.GetIdentifyByAccountIDRequest
-	1,  // 22: api.account.Account.FindIdentifyByAccountIDAndIsSubscribe:input_type -> api.account.FindIdentifyByAccountIDAndIsSubscribeRequest
-	14, // 23: api.account.Account.UserSubscribe:input_type -> api.account.OpenIDAndAppIDRequest
-	14, // 24: api.account.Account.UserUnsubscribe:input_type -> api.account.OpenIDAndAppIDRequest
-	19, // 25: api.account.Account.DebugLogin:output_type -> api.account.TokenReply
-	19, // 26: api.account.Account.Authorization:output_type -> api.account.TokenReply
-	11, // 27: api.account.Account.RandomNickname:output_type -> api.account.RandomNicknameReply
-	12, // 28: api.account.Account.RandomAvatar:output_type -> api.account.RandomAvatarReply
-	4,  // 29: api.account.Account.GetGetGzhConfig:output_type -> api.account.GetGetGzhConfigReply
-	23, // 30: api.account.Account.StatisticsSubscribeMessage:output_type -> google.protobuf.Empty
-	13, // 31: api.account.Account.RandomAvatarList:output_type -> api.account.RandomAvatarListReply
-	15, // 32: api.account.Account.GetIdentityByOpenIDAndAppID:output_type -> api.account.IdentityInfo
-	15, // 33: api.account.Account.GetIdentityByOpenIDAndAppIDAndCreate:output_type -> api.account.IdentityInfo
-	30, // 34: api.account.Account.FindTagListBySex:output_type -> api.common.TagListReply
-	30, // 35: api.account.Account.FindTagsByIDs:output_type -> api.common.TagListReply
-	31, // 36: api.account.Account.RandomIntroduce:output_type -> api.common.RandomIntroduceReply
-	10, // 37: api.account.Account.UploadMaterialVoice:output_type -> api.account.MaterialLink
-	32, // 38: api.account.Account.FindMemeByType:output_type -> api.common.MemeList
-	33, // 39: api.account.Account.FindChatTopic:output_type -> api.common.ChatTopicList
-	34, // 40: api.account.Account.RandomMeme:output_type -> api.common.CommonTextList
-	34, // 41: api.account.Account.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	8,  // 42: api.account.Account.CheckText:output_type -> api.account.CheckTextReply
-	35, // 43: api.account.Account.GetUserLoginConfig:output_type -> api.common.GetLoginConfigReply
-	6,  // 44: api.account.Account.GetIdentifyByAccountID:output_type -> api.account.GetIdentifyByAccountIDReply
-	6,  // 45: api.account.Account.GetIdentifyByAccountIDAndIsSubscribe:output_type -> api.account.GetIdentifyByAccountIDReply
-	2,  // 46: api.account.Account.FindIdentifyByAccountIDAndIsSubscribe:output_type -> api.account.FindIdentifyByAccountIDAndIsSubscribeReply
-	23, // 47: api.account.Account.UserSubscribe:output_type -> google.protobuf.Empty
-	23, // 48: api.account.Account.UserUnsubscribe:output_type -> google.protobuf.Empty
-	25, // [25:49] is the sub-list for method output_type
-	1,  // [1:25] is the sub-list for method input_type
+	21, // 1: api.account.Account.DebugLogin:input_type -> api.account.DebugLoginRequest
+	19, // 2: api.account.Account.Authorization:input_type -> api.account.AuthorizationRequest
+	18, // 3: api.account.Account.AuthorizationMiniProgram:input_type -> api.account.AuthorizationMiniProgramRequest
+	23, // 4: api.account.Account.RandomNickname:input_type -> api.common.SexReq
+	23, // 5: api.account.Account.RandomAvatar:input_type -> api.common.SexReq
+	24, // 6: api.account.Account.GetGetGzhConfig:input_type -> google.protobuf.Empty
+	0,  // 7: api.account.Account.StatisticsSubscribeMessage:input_type -> api.account.StatisticsSubscribeMessageRequest
+	23, // 8: api.account.Account.RandomAvatarList:input_type -> api.common.SexReq
+	14, // 9: api.account.Account.GetIdentityByOpenIDAndAppID:input_type -> api.account.OpenIDAndAppIDRequest
+	14, // 10: api.account.Account.GetIdentityByOpenIDAndAppIDAndCreate:input_type -> api.account.OpenIDAndAppIDRequest
+	23, // 11: api.account.Account.FindTagListBySex:input_type -> api.common.SexReq
+	25, // 12: api.account.Account.FindTagsByIDs:input_type -> api.common.Ids
+	23, // 13: api.account.Account.RandomIntroduce:input_type -> api.common.SexReq
+	9,  // 14: api.account.Account.UploadMaterialVoice:input_type -> api.account.MediaID
+	26, // 15: api.account.Account.FindMemeByType:input_type -> api.common.MemeRequest
+	27, // 16: api.account.Account.FindChatTopic:input_type -> api.common.FindChatTopicRequest
+	28, // 17: api.account.Account.RandomMeme:input_type -> api.common.RandomNum
+	29, // 18: api.account.Account.RandomSwiftMessage:input_type -> api.common.RandomNumAndSex
+	7,  // 19: api.account.Account.CheckText:input_type -> api.account.CheckTextRequest
+	30, // 20: api.account.Account.GetUserLoginConfig:input_type -> api.common.GetLoginConfigRequest
+	5,  // 21: api.account.Account.GetIdentifyByAccountID:input_type -> api.account.GetIdentifyByAccountIDRequest
+	5,  // 22: api.account.Account.GetIdentifyByAccountIDAndIsSubscribe:input_type -> api.account.GetIdentifyByAccountIDRequest
+	1,  // 23: api.account.Account.FindIdentifyByAccountIDAndIsSubscribe:input_type -> api.account.FindIdentifyByAccountIDAndIsSubscribeRequest
+	14, // 24: api.account.Account.UserSubscribe:input_type -> api.account.OpenIDAndAppIDRequest
+	14, // 25: api.account.Account.UserUnsubscribe:input_type -> api.account.OpenIDAndAppIDRequest
+	20, // 26: api.account.Account.DebugLogin:output_type -> api.account.TokenReply
+	20, // 27: api.account.Account.Authorization:output_type -> api.account.TokenReply
+	20, // 28: api.account.Account.AuthorizationMiniProgram:output_type -> api.account.TokenReply
+	11, // 29: api.account.Account.RandomNickname:output_type -> api.account.RandomNicknameReply
+	12, // 30: api.account.Account.RandomAvatar:output_type -> api.account.RandomAvatarReply
+	4,  // 31: api.account.Account.GetGetGzhConfig:output_type -> api.account.GetGetGzhConfigReply
+	24, // 32: api.account.Account.StatisticsSubscribeMessage:output_type -> google.protobuf.Empty
+	13, // 33: api.account.Account.RandomAvatarList:output_type -> api.account.RandomAvatarListReply
+	15, // 34: api.account.Account.GetIdentityByOpenIDAndAppID:output_type -> api.account.IdentityInfo
+	15, // 35: api.account.Account.GetIdentityByOpenIDAndAppIDAndCreate:output_type -> api.account.IdentityInfo
+	31, // 36: api.account.Account.FindTagListBySex:output_type -> api.common.TagListReply
+	31, // 37: api.account.Account.FindTagsByIDs:output_type -> api.common.TagListReply
+	32, // 38: api.account.Account.RandomIntroduce:output_type -> api.common.RandomIntroduceReply
+	10, // 39: api.account.Account.UploadMaterialVoice:output_type -> api.account.MaterialLink
+	33, // 40: api.account.Account.FindMemeByType:output_type -> api.common.MemeList
+	34, // 41: api.account.Account.FindChatTopic:output_type -> api.common.ChatTopicList
+	35, // 42: api.account.Account.RandomMeme:output_type -> api.common.CommonTextList
+	35, // 43: api.account.Account.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	8,  // 44: api.account.Account.CheckText:output_type -> api.account.CheckTextReply
+	36, // 45: api.account.Account.GetUserLoginConfig:output_type -> api.common.GetLoginConfigReply
+	6,  // 46: api.account.Account.GetIdentifyByAccountID:output_type -> api.account.GetIdentifyByAccountIDReply
+	6,  // 47: api.account.Account.GetIdentifyByAccountIDAndIsSubscribe:output_type -> api.account.GetIdentifyByAccountIDReply
+	2,  // 48: api.account.Account.FindIdentifyByAccountIDAndIsSubscribe:output_type -> api.account.FindIdentifyByAccountIDAndIsSubscribeReply
+	24, // 49: api.account.Account.UserSubscribe:output_type -> google.protobuf.Empty
+	24, // 50: api.account.Account.UserUnsubscribe:output_type -> google.protobuf.Empty
+	26, // [26:51] is the sub-list for method output_type
+	1,  // [1:26] 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
@@ -1936,7 +1999,7 @@ func file_account_proto_init() {
 			}
 		}
 		file_account_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*AuthorizationRequest); i {
+			switch v := v.(*AuthorizationMiniProgramRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1948,7 +2011,7 @@ func file_account_proto_init() {
 			}
 		}
 		file_account_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*TokenReply); i {
+			switch v := v.(*AuthorizationRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1960,7 +2023,7 @@ func file_account_proto_init() {
 			}
 		}
 		file_account_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*DebugLoginRequest); i {
+			switch v := v.(*TokenReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -1972,6 +2035,18 @@ func file_account_proto_init() {
 			}
 		}
 		file_account_proto_msgTypes[21].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_account_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*LoginToken); i {
 			case 0:
 				return &v.state
@@ -1990,7 +2065,7 @@ func file_account_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_account_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   22,
+			NumMessages:   23,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 10 - 0
api/account/account.proto

@@ -25,6 +25,12 @@ service Account {
       body:"*"
     };
   };
+  rpc AuthorizationMiniProgram (AuthorizationMiniProgramRequest) returns (TokenReply){
+    option (google.api.http) = {
+      post: "/api/login/authorization/miniprogram",
+      body:"*"
+    };
+  };
   rpc RandomNickname (common.SexReq) returns (RandomNicknameReply){
     option (google.api.http) = {
       post: "/api/common/random/nickname",
@@ -200,6 +206,10 @@ message PartnerInfoDB{
   int64 credit = 6;// 积分
 }
 
+message AuthorizationMiniProgramRequest {
+  string jsCode = 1;
+}
+
 message AuthorizationRequest {
   string jsCode = 1;
   string appId = 2;

+ 36 - 0
api/account/account_grpc.pb.go

@@ -22,6 +22,7 @@ const _ = grpc.SupportPackageIsVersion7
 type AccountClient interface {
 	DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error)
 	Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error)
+	AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...grpc.CallOption) (*TokenReply, error)
 	RandomNickname(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomNicknameReply, error)
 	RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, error)
 	// 获取公众号配置
@@ -91,6 +92,15 @@ func (c *accountClient) Authorization(ctx context.Context, in *AuthorizationRequ
 	return out, nil
 }
 
+func (c *accountClient) AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...grpc.CallOption) (*TokenReply, error) {
+	out := new(TokenReply)
+	err := c.cc.Invoke(ctx, "/api.account.Account/AuthorizationMiniProgram", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *accountClient) RandomNickname(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomNicknameReply, error) {
 	out := new(RandomNicknameReply)
 	err := c.cc.Invoke(ctx, "/api.account.Account/RandomNickname", in, out, opts...)
@@ -295,6 +305,7 @@ func (c *accountClient) UserUnsubscribe(ctx context.Context, in *OpenIDAndAppIDR
 type AccountServer interface {
 	DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
 	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
+	AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*TokenReply, error)
 	RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error)
 	RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
 	// 获取公众号配置
@@ -349,6 +360,9 @@ func (UnimplementedAccountServer) DebugLogin(context.Context, *DebugLoginRequest
 func (UnimplementedAccountServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")
 }
+func (UnimplementedAccountServer) AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*TokenReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method AuthorizationMiniProgram not implemented")
+}
 func (UnimplementedAccountServer) RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method RandomNickname not implemented")
 }
@@ -464,6 +478,24 @@ func _Account_Authorization_Handler(srv interface{}, ctx context.Context, dec fu
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Account_AuthorizationMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(AuthorizationMiniProgramRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(AccountServer).AuthorizationMiniProgram(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.account.Account/AuthorizationMiniProgram",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(AccountServer).AuthorizationMiniProgram(ctx, req.(*AuthorizationMiniProgramRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _Account_RandomNickname_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(common.SexReq)
 	if err := dec(in); err != nil {
@@ -875,6 +907,10 @@ var Account_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "Authorization",
 			Handler:    _Account_Authorization_Handler,
 		},
+		{
+			MethodName: "AuthorizationMiniProgram",
+			Handler:    _Account_AuthorizationMiniProgram_Handler,
+		},
 		{
 			MethodName: "RandomNickname",
 			Handler:    _Account_RandomNickname_Handler,

+ 43 - 0
api/account/account_http.pb.go

@@ -29,6 +29,7 @@ const _ = http.SupportPackageIsVersion1
 
 type AccountHTTPServer interface {
 	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
+	AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*TokenReply, error)
 	DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
 	GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error)
 	GetUserLoginConfig(context.Context, *common.GetLoginConfigRequest) (*common.GetLoginConfigReply, error)
@@ -43,6 +44,7 @@ func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer) {
 	r := s.Route("/")
 	r.POST("/api/login/debug", _Account_DebugLogin0_HTTP_Handler(srv))
 	r.POST("/api/login/authorization", _Account_Authorization0_HTTP_Handler(srv))
+	r.POST("/api/login/authorization/miniprogram", _Account_AuthorizationMiniProgram0_HTTP_Handler(srv))
 	r.POST("/api/common/random/nickname", _Account_RandomNickname0_HTTP_Handler(srv))
 	r.POST("/api/common/random/avatar", _Account_RandomAvatar0_HTTP_Handler(srv))
 	r.POST("/api/login/gzh/conf", _Account_GetGetGzhConfig0_HTTP_Handler(srv))
@@ -106,6 +108,33 @@ func _Account_Authorization0_HTTP_Handler(srv AccountHTTPServer) func(ctx http.C
 	}
 }
 
+func _Account_AuthorizationMiniProgram0_HTTP_Handler(srv AccountHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in AuthorizationMiniProgramRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.account.Account/AuthorizationMiniProgram")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.AuthorizationMiniProgram(ctx, req.(*AuthorizationMiniProgramRequest))
+		})
+		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 _Account_RandomNickname0_HTTP_Handler(srv AccountHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
 		var in common.SexReq
@@ -297,6 +326,7 @@ func _Account_GetUserLoginConfig0_HTTP_Handler(srv AccountHTTPServer) func(ctx h
 
 type AccountHTTPClient interface {
 	Authorization(ctx context.Context, req *AuthorizationRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
+	AuthorizationMiniProgram(ctx context.Context, req *AuthorizationMiniProgramRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
 	DebugLogin(ctx context.Context, req *DebugLoginRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
 	GetGetGzhConfig(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetGetGzhConfigReply, err error)
 	GetUserLoginConfig(ctx context.Context, req *common.GetLoginConfigRequest, opts ...http.CallOption) (rsp *common.GetLoginConfigReply, err error)
@@ -328,6 +358,19 @@ func (c *AccountHTTPClientImpl) Authorization(ctx context.Context, in *Authoriza
 	return &out, err
 }
 
+func (c *AccountHTTPClientImpl) AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...http.CallOption) (*TokenReply, error) {
+	var out TokenReply
+	pattern := "/api/login/authorization/miniprogram"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.account.Account/AuthorizationMiniProgram"))
+	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 *AccountHTTPClientImpl) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...http.CallOption) (*TokenReply, error) {
 	var out TokenReply
 	pattern := "/api/login/debug"

+ 5 - 1
js/api/account/account_http_pb.ts

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {DebugLoginRequest,TokenReply,AuthorizationRequest,RandomNicknameReply,RandomAvatarReply,GetGetGzhConfigReply,StatisticsSubscribeMessageRequest,RandomAvatarListReply,OpenIDAndAppIDRequest,IdentityInfo,MediaID,MaterialLink,CheckTextRequest,CheckTextReply,GetIdentifyByAccountIDRequest,GetIdentifyByAccountIDReply,FindIdentifyByAccountIDAndIsSubscribeRequest,FindIdentifyByAccountIDAndIsSubscribeReply} from "./account_pb";
+import {DebugLoginRequest,TokenReply,AuthorizationRequest,AuthorizationMiniProgramRequest,RandomNicknameReply,RandomAvatarReply,GetGetGzhConfigReply,StatisticsSubscribeMessageRequest,RandomAvatarListReply,OpenIDAndAppIDRequest,IdentityInfo,MediaID,MaterialLink,CheckTextRequest,CheckTextReply,GetIdentifyByAccountIDRequest,GetIdentifyByAccountIDReply,FindIdentifyByAccountIDAndIsSubscribeRequest,FindIdentifyByAccountIDAndIsSubscribeReply} from "./account_pb";
 import {SexReq,TagListReply,Ids,RandomIntroduceReply,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,GetLoginConfigRequest,GetLoginConfigReply} from "../common/common_pb";
 
 const AccountService = {
@@ -12,6 +12,10 @@ const AccountService = {
 	const res = await request.post<{ data: TokenReply, code: string, message: string }>('/api/login/authorization', req);
     return res.data.data;
   },
+  AuthorizationMiniProgram: async (req?: AuthorizationMiniProgramRequest) => {
+	const res = await request.post<{ data: TokenReply, code: string, message: string }>('/api/login/authorization/miniprogram', req);
+    return res.data.data;
+  },
   RandomNickname: async (req?: SexReq) => {
 	const res = await request.post<{ data: RandomNicknameReply, code: string, message: string }>('/api/common/random/nickname', req);
     return res.data.data;

+ 3 - 0
js/api/account/account_pb.ts

@@ -96,6 +96,9 @@ export interface PartnerInfoDB{
     /**  积分 */
     credit?:number;
 }
+export interface AuthorizationMiniProgramRequest{
+    jsCode?:string;
+}
 export interface AuthorizationRequest{
     jsCode?:string;
     appId?:string;