|
@@ -53,6 +53,10 @@ type AccountClient interface {
|
|
|
GetUserLoginConfig(ctx context.Context, in *common.GetLoginConfigRequest, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error)
|
|
GetUserLoginConfig(ctx context.Context, in *common.GetLoginConfigRequest, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error)
|
|
|
// 通过accountID获取Identify信息
|
|
// 通过accountID获取Identify信息
|
|
|
GetIdentifyByAccountID(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error)
|
|
GetIdentifyByAccountID(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error)
|
|
|
|
|
+ // 通过accountID获取Identify信息
|
|
|
|
|
+ GetIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error)
|
|
|
|
|
+ // 通过accountID获取Identify信息
|
|
|
|
|
+ FindIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *FindIdentifyByAccountIDAndIsSubscribeRequest, opts ...grpc.CallOption) (*FindIdentifyByAccountIDAndIsSubscribeReply, error)
|
|
|
// 用户关注
|
|
// 用户关注
|
|
|
UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 用户取关
|
|
// 用户取关
|
|
@@ -238,6 +242,24 @@ func (c *accountClient) GetIdentifyByAccountID(ctx context.Context, in *GetIdent
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *accountClient) GetIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) {
|
|
|
|
|
+ out := new(GetIdentifyByAccountIDReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribe", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (c *accountClient) FindIdentifyByAccountIDAndIsSubscribe(ctx context.Context, in *FindIdentifyByAccountIDAndIsSubscribeRequest, opts ...grpc.CallOption) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) {
|
|
|
|
|
+ out := new(FindIdentifyByAccountIDAndIsSubscribeReply)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/api.account.Account/FindIdentifyByAccountIDAndIsSubscribe", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (c *accountClient) UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
func (c *accountClient) UserSubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.account.Account/UserSubscribe", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/api.account.Account/UserSubscribe", in, out, opts...)
|
|
@@ -293,6 +315,10 @@ type AccountServer interface {
|
|
|
GetUserLoginConfig(context.Context, *common.GetLoginConfigRequest) (*common.GetLoginConfigReply, error)
|
|
GetUserLoginConfig(context.Context, *common.GetLoginConfigRequest) (*common.GetLoginConfigReply, error)
|
|
|
// 通过accountID获取Identify信息
|
|
// 通过accountID获取Identify信息
|
|
|
GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
|
|
GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
|
|
|
|
|
+ // 通过accountID获取Identify信息
|
|
|
|
|
+ GetIdentifyByAccountIDAndIsSubscribe(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
|
|
|
|
|
+ // 通过accountID获取Identify信息
|
|
|
|
|
+ FindIdentifyByAccountIDAndIsSubscribe(context.Context, *FindIdentifyByAccountIDAndIsSubscribeRequest) (*FindIdentifyByAccountIDAndIsSubscribeReply, error)
|
|
|
// 用户关注
|
|
// 用户关注
|
|
|
UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error)
|
|
UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error)
|
|
|
// 用户取关
|
|
// 用户取关
|
|
@@ -361,6 +387,12 @@ func (UnimplementedAccountServer) GetUserLoginConfig(context.Context, *common.Ge
|
|
|
func (UnimplementedAccountServer) GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
|
|
func (UnimplementedAccountServer) GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountID not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountID not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedAccountServer) GetIdentifyByAccountIDAndIsSubscribe(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountIDAndIsSubscribe not implemented")
|
|
|
|
|
+}
|
|
|
|
|
+func (UnimplementedAccountServer) FindIdentifyByAccountIDAndIsSubscribe(context.Context, *FindIdentifyByAccountIDAndIsSubscribeRequest) (*FindIdentifyByAccountIDAndIsSubscribeReply, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method FindIdentifyByAccountIDAndIsSubscribe not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedAccountServer) UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) {
|
|
func (UnimplementedAccountServer) UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UserSubscribe not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method UserSubscribe not implemented")
|
|
|
}
|
|
}
|
|
@@ -722,6 +754,42 @@ func _Account_GetIdentifyByAccountID_Handler(srv interface{}, ctx context.Contex
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Account_GetIdentifyByAccountIDAndIsSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(GetIdentifyByAccountIDRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribe(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribe",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribe(ctx, req.(*GetIdentifyByAccountIDRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func _Account_FindIdentifyByAccountIDAndIsSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(FindIdentifyByAccountIDAndIsSubscribeRequest)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(AccountServer).FindIdentifyByAccountIDAndIsSubscribe(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/api.account.Account/FindIdentifyByAccountIDAndIsSubscribe",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(AccountServer).FindIdentifyByAccountIDAndIsSubscribe(ctx, req.(*FindIdentifyByAccountIDAndIsSubscribeRequest))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func _Account_UserSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Account_UserSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(OpenIDAndAppIDRequest)
|
|
in := new(OpenIDAndAppIDRequest)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
@@ -841,6 +909,14 @@ var Account_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetIdentifyByAccountID",
|
|
MethodName: "GetIdentifyByAccountID",
|
|
|
Handler: _Account_GetIdentifyByAccountID_Handler,
|
|
Handler: _Account_GetIdentifyByAccountID_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "GetIdentifyByAccountIDAndIsSubscribe",
|
|
|
|
|
+ Handler: _Account_GetIdentifyByAccountIDAndIsSubscribe_Handler,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "FindIdentifyByAccountIDAndIsSubscribe",
|
|
|
|
|
+ Handler: _Account_FindIdentifyByAccountIDAndIsSubscribe_Handler,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
MethodName: "UserSubscribe",
|
|
MethodName: "UserSubscribe",
|
|
|
Handler: _Account_UserSubscribe_Handler,
|
|
Handler: _Account_UserSubscribe_Handler,
|