|
|
@@ -26,6 +26,8 @@ type AccountClient interface {
|
|
|
RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, error)
|
|
|
// 获取公众号配置
|
|
|
GetGetGzhConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGetGzhConfigReply, error)
|
|
|
+ // 统计订阅消息
|
|
|
+ StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
RandomAvatarList(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarListReply, error)
|
|
|
// 通过openID和appID查询
|
|
|
GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
|
|
|
@@ -116,6 +118,15 @@ func (c *accountClient) GetGetGzhConfig(ctx context.Context, in *emptypb.Empty,
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *accountClient) StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+ out := new(emptypb.Empty)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.account.Account/StatisticsSubscribeMessage", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *accountClient) RandomAvatarList(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarListReply, error) {
|
|
|
out := new(RandomAvatarListReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.account.Account/RandomAvatarList", in, out, opts...)
|
|
|
@@ -288,6 +299,8 @@ type AccountServer interface {
|
|
|
RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
|
|
|
// 获取公众号配置
|
|
|
GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error)
|
|
|
+ // 统计订阅消息
|
|
|
+ StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error)
|
|
|
RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error)
|
|
|
// 通过openID和appID查询
|
|
|
GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
|
|
|
@@ -345,6 +358,9 @@ func (UnimplementedAccountServer) RandomAvatar(context.Context, *common.SexReq)
|
|
|
func (UnimplementedAccountServer) GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetGetGzhConfig not implemented")
|
|
|
}
|
|
|
+func (UnimplementedAccountServer) StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method StatisticsSubscribeMessage not implemented")
|
|
|
+}
|
|
|
func (UnimplementedAccountServer) RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RandomAvatarList not implemented")
|
|
|
}
|
|
|
@@ -502,6 +518,24 @@ func _Account_GetGetGzhConfig_Handler(srv interface{}, ctx context.Context, dec
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Account_StatisticsSubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(StatisticsSubscribeMessageRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(AccountServer).StatisticsSubscribeMessage(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.account.Account/StatisticsSubscribeMessage",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(AccountServer).StatisticsSubscribeMessage(ctx, req.(*StatisticsSubscribeMessageRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
func _Account_RandomAvatarList_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 {
|
|
|
@@ -853,6 +887,10 @@ var Account_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetGetGzhConfig",
|
|
|
Handler: _Account_GetGetGzhConfig_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "StatisticsSubscribeMessage",
|
|
|
+ Handler: _Account_StatisticsSubscribeMessage_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "RandomAvatarList",
|
|
|
Handler: _Account_RandomAvatarList_Handler,
|