|
|
@@ -24,6 +24,8 @@ type AccountClient interface {
|
|
|
Authorization(ctx context.Context, in *AuthorizationRequest, 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)
|
|
|
+ // 获取公众号配置
|
|
|
+ GetGetGzhConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGetGzhConfigReply, 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)
|
|
|
@@ -101,6 +103,15 @@ func (c *accountClient) RandomAvatar(ctx context.Context, in *common.SexReq, opt
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *accountClient) GetGetGzhConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGetGzhConfigReply, error) {
|
|
|
+ out := new(GetGetGzhConfigReply)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.account.Account/GetGetGzhConfig", 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...)
|
|
|
@@ -253,6 +264,8 @@ type AccountServer interface {
|
|
|
Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
|
|
|
RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error)
|
|
|
RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
|
|
|
+ // 获取公众号配置
|
|
|
+ GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error)
|
|
|
RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error)
|
|
|
// 通过openID和appID查询
|
|
|
GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
|
|
|
@@ -303,6 +316,9 @@ func (UnimplementedAccountServer) RandomNickname(context.Context, *common.SexReq
|
|
|
func (UnimplementedAccountServer) RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RandomAvatar not implemented")
|
|
|
}
|
|
|
+func (UnimplementedAccountServer) GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetGetGzhConfig not implemented")
|
|
|
+}
|
|
|
func (UnimplementedAccountServer) RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RandomAvatarList not implemented")
|
|
|
}
|
|
|
@@ -436,6 +452,24 @@ func _Account_RandomAvatar_Handler(srv interface{}, ctx context.Context, dec fun
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Account_GetGetGzhConfig_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.(AccountServer).GetGetGzhConfig(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.account.Account/GetGetGzhConfig",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(AccountServer).GetGetGzhConfig(ctx, req.(*emptypb.Empty))
|
|
|
+ }
|
|
|
+ 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 {
|
|
|
@@ -747,6 +781,10 @@ var Account_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "RandomAvatar",
|
|
|
Handler: _Account_RandomAvatar_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "GetGetGzhConfig",
|
|
|
+ Handler: _Account_GetGetGzhConfig_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "RandomAvatarList",
|
|
|
Handler: _Account_RandomAvatarList_Handler,
|