Forráskód Böngészése

获取用户登录配置

wfz 3 éve
szülő
commit
eca4c17769

+ 64 - 52
api/account/account.pb.go

@@ -972,7 +972,7 @@ var file_account_proto_rawDesc = []byte{
 	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,
-	0xee, 0x0b, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x62, 0x0a, 0x0a, 0x44,
+	0xe6, 0x0c, 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,
@@ -1067,11 +1067,19 @@ var file_account_proto_rawDesc = []byte{
 	0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
 	0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e,
 	0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x65, 0x78, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
-	0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
-	0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x12, 0x76, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e,
+	0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
+	0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x43,
+	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93,
+	0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f,
+	0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e,
+	0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -1088,33 +1096,35 @@ func file_account_proto_rawDescGZIP() []byte {
 
 var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
 var file_account_proto_goTypes = []interface{}{
-	(*CheckTextRequest)(nil),            // 0: api.account.CheckTextRequest
-	(*CheckTextReply)(nil),              // 1: api.account.CheckTextReply
-	(*MediaID)(nil),                     // 2: api.account.MediaID
-	(*MaterialLink)(nil),                // 3: api.account.MaterialLink
-	(*RandomNicknameReply)(nil),         // 4: api.account.RandomNicknameReply
-	(*RandomAvatarReply)(nil),           // 5: api.account.RandomAvatarReply
-	(*RandomAvatarListReply)(nil),       // 6: api.account.RandomAvatarListReply
-	(*OpenIDAndAppIDRequest)(nil),       // 7: api.account.OpenIDAndAppIDRequest
-	(*IdentityInfo)(nil),                // 8: api.account.IdentityInfo
-	(*UserInfoDB)(nil),                  // 9: api.account.UserInfoDB
-	(*PartnerInfoDB)(nil),               // 10: api.account.PartnerInfoDB
-	(*AuthorizationRequest)(nil),        // 11: api.account.AuthorizationRequest
-	(*TokenReply)(nil),                  // 12: api.account.TokenReply
-	(*DebugLoginRequest)(nil),           // 13: api.account.DebugLoginRequest
-	(*LoginToken)(nil),                  // 14: api.account.LoginToken
-	(*common.SexReq)(nil),               // 15: api.common.SexReq
-	(*common.PersonParam)(nil),          // 16: api.common.PersonParam
-	(*common.Ids)(nil),                  // 17: api.common.Ids
-	(*common.MemeRequest)(nil),          // 18: api.common.MemeRequest
-	(*common.FindChatTopicRequest)(nil), // 19: api.common.FindChatTopicRequest
-	(*common.RandomNum)(nil),            // 20: api.common.RandomNum
-	(*common.RandomNumAndSex)(nil),      // 21: api.common.RandomNumAndSex
-	(*common.TagListReply)(nil),         // 22: api.common.TagListReply
-	(*common.RandomIntroduceReply)(nil), // 23: api.common.RandomIntroduceReply
-	(*common.MemeList)(nil),             // 24: api.common.MemeList
-	(*common.ChatTopicList)(nil),        // 25: api.common.ChatTopicList
-	(*common.CommonTextList)(nil),       // 26: api.common.CommonTextList
+	(*CheckTextRequest)(nil),             // 0: api.account.CheckTextRequest
+	(*CheckTextReply)(nil),               // 1: api.account.CheckTextReply
+	(*MediaID)(nil),                      // 2: api.account.MediaID
+	(*MaterialLink)(nil),                 // 3: api.account.MaterialLink
+	(*RandomNicknameReply)(nil),          // 4: api.account.RandomNicknameReply
+	(*RandomAvatarReply)(nil),            // 5: api.account.RandomAvatarReply
+	(*RandomAvatarListReply)(nil),        // 6: api.account.RandomAvatarListReply
+	(*OpenIDAndAppIDRequest)(nil),        // 7: api.account.OpenIDAndAppIDRequest
+	(*IdentityInfo)(nil),                 // 8: api.account.IdentityInfo
+	(*UserInfoDB)(nil),                   // 9: api.account.UserInfoDB
+	(*PartnerInfoDB)(nil),                // 10: api.account.PartnerInfoDB
+	(*AuthorizationRequest)(nil),         // 11: api.account.AuthorizationRequest
+	(*TokenReply)(nil),                   // 12: api.account.TokenReply
+	(*DebugLoginRequest)(nil),            // 13: api.account.DebugLoginRequest
+	(*LoginToken)(nil),                   // 14: api.account.LoginToken
+	(*common.SexReq)(nil),                // 15: api.common.SexReq
+	(*common.PersonParam)(nil),           // 16: api.common.PersonParam
+	(*common.Ids)(nil),                   // 17: api.common.Ids
+	(*common.MemeRequest)(nil),           // 18: api.common.MemeRequest
+	(*common.FindChatTopicRequest)(nil),  // 19: api.common.FindChatTopicRequest
+	(*common.RandomNum)(nil),             // 20: api.common.RandomNum
+	(*common.RandomNumAndSex)(nil),       // 21: api.common.RandomNumAndSex
+	(*common.GetLoginConfigRequest)(nil), // 22: api.common.GetLoginConfigRequest
+	(*common.TagListReply)(nil),          // 23: api.common.TagListReply
+	(*common.RandomIntroduceReply)(nil),  // 24: api.common.RandomIntroduceReply
+	(*common.MemeList)(nil),              // 25: api.common.MemeList
+	(*common.ChatTopicList)(nil),         // 26: api.common.ChatTopicList
+	(*common.CommonTextList)(nil),        // 27: api.common.CommonTextList
+	(*common.GetLoginConfigReply)(nil),   // 28: api.common.GetLoginConfigReply
 }
 var file_account_proto_depIdxs = []int32{
 	13, // 0: api.account.Account.DebugLogin:input_type -> api.account.DebugLoginRequest
@@ -1134,25 +1144,27 @@ var file_account_proto_depIdxs = []int32{
 	20, // 14: api.account.Account.RandomMeme:input_type -> api.common.RandomNum
 	21, // 15: api.account.Account.RandomSwiftMessage:input_type -> api.common.RandomNumAndSex
 	0,  // 16: api.account.Account.CheckText:input_type -> api.account.CheckTextRequest
-	12, // 17: api.account.Account.DebugLogin:output_type -> api.account.TokenReply
-	12, // 18: api.account.Account.Authorization:output_type -> api.account.TokenReply
-	4,  // 19: api.account.Account.RandomNickname:output_type -> api.account.RandomNicknameReply
-	5,  // 20: api.account.Account.RandomAvatar:output_type -> api.account.RandomAvatarReply
-	6,  // 21: api.account.Account.RandomAvatarList:output_type -> api.account.RandomAvatarListReply
-	8,  // 22: api.account.Account.GetIdentityByOpenIDAndAppID:output_type -> api.account.IdentityInfo
-	8,  // 23: api.account.Account.GetIdentityByTypeAndPID:output_type -> api.account.IdentityInfo
-	8,  // 24: api.account.Account.GetIdentityByFromOpenIDAndAppID:output_type -> api.account.IdentityInfo
-	22, // 25: api.account.Account.FindTagListBySex:output_type -> api.common.TagListReply
-	22, // 26: api.account.Account.FindTagsByIDs:output_type -> api.common.TagListReply
-	23, // 27: api.account.Account.RandomIntroduce:output_type -> api.common.RandomIntroduceReply
-	3,  // 28: api.account.Account.UploadMaterialVoice:output_type -> api.account.MaterialLink
-	24, // 29: api.account.Account.FindMemeByType:output_type -> api.common.MemeList
-	25, // 30: api.account.Account.FindChatTopic:output_type -> api.common.ChatTopicList
-	26, // 31: api.account.Account.RandomMeme:output_type -> api.common.CommonTextList
-	26, // 32: api.account.Account.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	1,  // 33: api.account.Account.CheckText:output_type -> api.account.CheckTextReply
-	17, // [17:34] is the sub-list for method output_type
-	0,  // [0:17] is the sub-list for method input_type
+	22, // 17: api.account.Account.GetUserLoginConfig:input_type -> api.common.GetLoginConfigRequest
+	12, // 18: api.account.Account.DebugLogin:output_type -> api.account.TokenReply
+	12, // 19: api.account.Account.Authorization:output_type -> api.account.TokenReply
+	4,  // 20: api.account.Account.RandomNickname:output_type -> api.account.RandomNicknameReply
+	5,  // 21: api.account.Account.RandomAvatar:output_type -> api.account.RandomAvatarReply
+	6,  // 22: api.account.Account.RandomAvatarList:output_type -> api.account.RandomAvatarListReply
+	8,  // 23: api.account.Account.GetIdentityByOpenIDAndAppID:output_type -> api.account.IdentityInfo
+	8,  // 24: api.account.Account.GetIdentityByTypeAndPID:output_type -> api.account.IdentityInfo
+	8,  // 25: api.account.Account.GetIdentityByFromOpenIDAndAppID:output_type -> api.account.IdentityInfo
+	23, // 26: api.account.Account.FindTagListBySex:output_type -> api.common.TagListReply
+	23, // 27: api.account.Account.FindTagsByIDs:output_type -> api.common.TagListReply
+	24, // 28: api.account.Account.RandomIntroduce:output_type -> api.common.RandomIntroduceReply
+	3,  // 29: api.account.Account.UploadMaterialVoice:output_type -> api.account.MaterialLink
+	25, // 30: api.account.Account.FindMemeByType:output_type -> api.common.MemeList
+	26, // 31: api.account.Account.FindChatTopic:output_type -> api.common.ChatTopicList
+	27, // 32: api.account.Account.RandomMeme:output_type -> api.common.CommonTextList
+	27, // 33: api.account.Account.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	1,  // 34: api.account.Account.CheckText:output_type -> api.account.CheckTextReply
+	28, // 35: api.account.Account.GetUserLoginConfig:output_type -> api.common.GetLoginConfigReply
+	18, // [18:36] is the sub-list for method output_type
+	0,  // [0:18] 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

+ 7 - 0
api/account/account.proto

@@ -72,6 +72,13 @@ service Account {
   rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){};
   // 检查文本-百度云
   rpc CheckText (CheckTextRequest) returns (CheckTextReply){}
+  // 获取用户登录配置
+  rpc GetUserLoginConfig (common.GetLoginConfigRequest) returns (common.GetLoginConfigReply){
+    option (google.api.http) = {
+      post: "/api/config/login",
+      body:"*"
+    };
+  };
 }
 
 message CheckTextRequest{

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

@@ -48,6 +48,8 @@ type AccountClient interface {
 	RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error)
 	// 检查文本-百度云
 	CheckText(ctx context.Context, in *CheckTextRequest, opts ...grpc.CallOption) (*CheckTextReply, error)
+	// 获取用户登录配置
+	GetUserLoginConfig(ctx context.Context, in *common.GetLoginConfigRequest, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error)
 }
 
 type accountClient struct {
@@ -211,6 +213,15 @@ func (c *accountClient) CheckText(ctx context.Context, in *CheckTextRequest, opt
 	return out, nil
 }
 
+func (c *accountClient) GetUserLoginConfig(ctx context.Context, in *common.GetLoginConfigRequest, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error) {
+	out := new(common.GetLoginConfigReply)
+	err := c.cc.Invoke(ctx, "/api.account.Account/GetUserLoginConfig", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // AccountServer is the server API for Account service.
 // All implementations must embed UnimplementedAccountServer
 // for forward compatibility
@@ -244,6 +255,8 @@ type AccountServer interface {
 	RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
 	// 检查文本-百度云
 	CheckText(context.Context, *CheckTextRequest) (*CheckTextReply, error)
+	// 获取用户登录配置
+	GetUserLoginConfig(context.Context, *common.GetLoginConfigRequest) (*common.GetLoginConfigReply, error)
 	mustEmbedUnimplementedAccountServer()
 }
 
@@ -302,6 +315,9 @@ func (UnimplementedAccountServer) RandomSwiftMessage(context.Context, *common.Ra
 func (UnimplementedAccountServer) CheckText(context.Context, *CheckTextRequest) (*CheckTextReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckText not implemented")
 }
+func (UnimplementedAccountServer) GetUserLoginConfig(context.Context, *common.GetLoginConfigRequest) (*common.GetLoginConfigReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetUserLoginConfig not implemented")
+}
 func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}
 
 // UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
@@ -621,6 +637,24 @@ func _Account_CheckText_Handler(srv interface{}, ctx context.Context, dec func(i
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Account_GetUserLoginConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.GetLoginConfigRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(AccountServer).GetUserLoginConfig(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.account.Account/GetUserLoginConfig",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(AccountServer).GetUserLoginConfig(ctx, req.(*common.GetLoginConfigRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Account_ServiceDesc is the grpc.ServiceDesc for Account service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -696,6 +730,10 @@ var Account_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "CheckText",
 			Handler:    _Account_CheckText_Handler,
 		},
+		{
+			MethodName: "GetUserLoginConfig",
+			Handler:    _Account_GetUserLoginConfig_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "account.proto",

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

@@ -29,6 +29,7 @@ const _ = http.SupportPackageIsVersion1
 type AccountHTTPServer interface {
 	Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
 	DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
+	GetUserLoginConfig(context.Context, *common.GetLoginConfigRequest) (*common.GetLoginConfigReply, error)
 	RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
 	RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error)
 	RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error)
@@ -43,6 +44,7 @@ func RegisterAccountHTTPServer(s *http.Server, srv AccountHTTPServer) {
 	r.POST("/api/common/random/avatar", _Account_RandomAvatar0_HTTP_Handler(srv))
 	r.POST("/api/common/random/introduce", _Account_RandomIntroduce0_HTTP_Handler(srv))
 	r.POST("/api/common/material/upload/voice", _Account_UploadMaterialVoice0_HTTP_Handler(srv))
+	r.POST("/api/config/login", _Account_GetUserLoginConfig0_HTTP_Handler(srv))
 }
 
 func _Account_DebugLogin0_HTTP_Handler(srv AccountHTTPServer) func(ctx http.Context) error {
@@ -207,9 +209,37 @@ func _Account_UploadMaterialVoice0_HTTP_Handler(srv AccountHTTPServer) func(ctx
 	}
 }
 
+func _Account_GetUserLoginConfig0_HTTP_Handler(srv AccountHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.GetLoginConfigRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.account.Account/GetUserLoginConfig")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.GetUserLoginConfig(ctx, req.(*common.GetLoginConfigRequest))
+		})
+		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 AccountHTTPClient interface {
 	Authorization(ctx context.Context, req *AuthorizationRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
 	DebugLogin(ctx context.Context, req *DebugLoginRequest, opts ...http.CallOption) (rsp *TokenReply, err error)
+	GetUserLoginConfig(ctx context.Context, req *common.GetLoginConfigRequest, opts ...http.CallOption) (rsp *common.GetLoginConfigReply, err error)
 	RandomAvatar(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *RandomAvatarReply, err error)
 	RandomIntroduce(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *common.RandomIntroduceReply, err error)
 	RandomNickname(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *RandomNicknameReply, err error)
@@ -250,6 +280,19 @@ func (c *AccountHTTPClientImpl) DebugLogin(ctx context.Context, in *DebugLoginRe
 	return &out, err
 }
 
+func (c *AccountHTTPClientImpl) GetUserLoginConfig(ctx context.Context, in *common.GetLoginConfigRequest, opts ...http.CallOption) (*common.GetLoginConfigReply, error) {
+	var out common.GetLoginConfigReply
+	pattern := "/api/config/login"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.account.Account/GetUserLoginConfig"))
+	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) RandomAvatar(ctx context.Context, in *common.SexReq, opts ...http.CallOption) (*RandomAvatarReply, error) {
 	var out RandomAvatarReply
 	pattern := "/api/common/random/avatar"

+ 134 - 8
api/common/common.pb.go

@@ -7629,6 +7629,100 @@ func (x *ManagerFindReportDetailsInfo) GetCreateTime() int64 {
 	return 0
 }
 
+type GetLoginConfigRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid"`
+}
+
+func (x *GetLoginConfigRequest) Reset() {
+	*x = GetLoginConfigRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_common_proto_msgTypes[105]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *GetLoginConfigRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetLoginConfigRequest) ProtoMessage() {}
+
+func (x *GetLoginConfigRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[105]
+	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 GetLoginConfigRequest.ProtoReflect.Descriptor instead.
+func (*GetLoginConfigRequest) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{105}
+}
+
+func (x *GetLoginConfigRequest) GetAppid() string {
+	if x != nil {
+		return x.Appid
+	}
+	return ""
+}
+
+type GetLoginConfigReply struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid"`
+}
+
+func (x *GetLoginConfigReply) Reset() {
+	*x = GetLoginConfigReply{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_common_proto_msgTypes[106]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *GetLoginConfigReply) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*GetLoginConfigReply) ProtoMessage() {}
+
+func (x *GetLoginConfigReply) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[106]
+	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 GetLoginConfigReply.ProtoReflect.Descriptor instead.
+func (*GetLoginConfigReply) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{106}
+}
+
+func (x *GetLoginConfigReply) GetAppid() string {
+	if x != nil {
+		return x.Appid
+	}
+	return ""
+}
+
 var File_common_proto protoreflect.FileDescriptor
 
 var file_common_proto_rawDesc = []byte{
@@ -8584,12 +8678,18 @@ var file_common_proto_rawDesc = []byte{
 	0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52,
 	0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65,
 	0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63,
-	0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x43, 0x0a, 0x0a, 0x61, 0x70, 0x69,
-	0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x33, 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, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06,
-	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x2d, 0x0a, 0x15, 0x47, 0x65, 0x74,
+	0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
+	0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4c,
+	0x6f, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12,
+	0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
+	0x61, 0x70, 0x70, 0x69, 0x64, 0x42, 0x43, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x33, 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, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x33,
 }
 
 var (
@@ -8604,7 +8704,7 @@ func file_common_proto_rawDescGZIP() []byte {
 	return file_common_proto_rawDescData
 }
 
-var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 105)
+var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 107)
 var file_common_proto_goTypes = []interface{}{
 	(*UserAndPartnerIdentifyIdParam)(nil),       // 0: api.common.UserAndPartnerIdentifyIdParam
 	(*UserAndPartnerParam)(nil),                 // 1: api.common.UserAndPartnerParam
@@ -8711,6 +8811,8 @@ var file_common_proto_goTypes = []interface{}{
 	(*ManagerFindReportDetailsListRequest)(nil), // 102: api.common.ManagerFindReportDetailsListRequest
 	(*ManagerFindReportDetailsListReply)(nil),   // 103: api.common.ManagerFindReportDetailsListReply
 	(*ManagerFindReportDetailsInfo)(nil),        // 104: api.common.ManagerFindReportDetailsInfo
+	(*GetLoginConfigRequest)(nil),               // 105: api.common.GetLoginConfigRequest
+	(*GetLoginConfigReply)(nil),                 // 106: api.common.GetLoginConfigReply
 }
 var file_common_proto_depIdxs = []int32{
 	33,  // 0: api.common.HomeInfo.tagList:type_name -> api.common.TagList
@@ -10004,6 +10106,30 @@ func file_common_proto_init() {
 				return nil
 			}
 		}
+		file_common_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*GetLoginConfigRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_common_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*GetLoginConfigReply); 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{
@@ -10011,7 +10137,7 @@ func file_common_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_common_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   105,
+			NumMessages:   107,
 			NumExtensions: 0,
 			NumServices:   0,
 		},

+ 8 - 0
api/common/common.proto

@@ -765,4 +765,12 @@ message ManagerFindReportDetailsInfo{
   repeated string reportPicture = 5;// 被举报的图片
   repeated string category = 6;// 举报的类型
   int64 createTime = 7;// 举报时间
+}
+
+message GetLoginConfigRequest{
+  string appid = 1;
+}
+
+message GetLoginConfigReply{
+  string appid = 1;
 }

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

@@ -1,7 +1,7 @@
 // @ts-ignore
 import request from '@/libs/request';
 import {DebugLoginRequest,TokenReply,AuthorizationRequest,RandomNicknameReply,RandomAvatarReply,RandomAvatarListReply,OpenIDAndAppIDRequest,IdentityInfo,MediaID,MaterialLink,CheckTextRequest,CheckTextReply} from "./account_pb";
-import {SexReq,PersonParam,TagListReply,Ids,RandomIntroduceReply,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex} from "../common/common_pb";
+import {SexReq,PersonParam,TagListReply,Ids,RandomIntroduceReply,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,GetLoginConfigRequest,GetLoginConfigReply} from "../common/common_pb";
 
 const AccountService = {
   DebugLogin: async (req?: DebugLoginRequest) => {
@@ -30,6 +30,11 @@ const AccountService = {
 	const res = await request.post<{ data: MaterialLink, code: string, message: string }>('/api/common/material/upload/voice', req);
     return res.data.data;
   },
+  /**  获取用户登录配置 */
+  GetUserLoginConfig: async (req?: GetLoginConfigRequest) => {
+	const res = await request.post<{ data: GetLoginConfigReply, code: string, message: string }>('/api/config/login', req);
+    return res.data.data;
+  },
 
 };
 

+ 6 - 0
js/api/common/common_pb.ts

@@ -989,4 +989,10 @@ export interface ManagerFindReportDetailsInfo{
     /**  举报时间 */
     createTime?:number;
 }
+export interface GetLoginConfigRequest{
+    appid?:string;
+}
+export interface GetLoginConfigReply{
+    appid?:string;
+}