| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- package account
- import (
- context "context"
- common "git.ikuban.com/server/pw-protobuf/api/common"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- // Requires gRPC-Go v1.32.0 or later.
- const _ = grpc.SupportPackageIsVersion7
- // AccountClient is the client API for Account service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
- 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)
- RandomNickname(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomNicknameReply, error)
- RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, 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)
- // 通过type和PID查询
- GetIdentityByTypeAndPID(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*IdentityInfo, error)
- // 通过原公众号openID和appID查询
- GetIdentityByFromOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
- // 通过分组名和性别查询标签
- FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
- // 通过标签IDs查询标签
- FindTagsByIDs(ctx context.Context, in *common.Ids, opts ...grpc.CallOption) (*common.TagListReply, error)
- // 随机介绍接口
- RandomIntroduce(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.RandomIntroduceReply, error)
- // 通过微信下载语音并上传到七牛
- UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error)
- // 通过类型获取表情包列表
- FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error)
- // 获取对方性别的聊天话题
- FindChatTopic(ctx context.Context, in *common.FindChatTopicRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error)
- // 随机表情包
- RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error)
- // 随机打招呼
- 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 {
- cc grpc.ClientConnInterface
- }
- func NewAccountClient(cc grpc.ClientConnInterface) AccountClient {
- return &accountClient{cc}
- }
- func (c *accountClient) DebugLogin(ctx context.Context, in *DebugLoginRequest, opts ...grpc.CallOption) (*TokenReply, error) {
- out := new(TokenReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/DebugLogin", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) Authorization(ctx context.Context, in *AuthorizationRequest, opts ...grpc.CallOption) (*TokenReply, error) {
- out := new(TokenReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/Authorization", 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...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) RandomAvatar(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarReply, error) {
- out := new(RandomAvatarReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/RandomAvatar", 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...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
- out := new(IdentityInfo)
- err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByOpenIDAndAppID", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) GetIdentityByTypeAndPID(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*IdentityInfo, error) {
- out := new(IdentityInfo)
- err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByTypeAndPID", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) GetIdentityByFromOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
- out := new(IdentityInfo)
- err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByFromOpenIDAndAppID", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error) {
- out := new(common.TagListReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/FindTagListBySex", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) FindTagsByIDs(ctx context.Context, in *common.Ids, opts ...grpc.CallOption) (*common.TagListReply, error) {
- out := new(common.TagListReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/FindTagsByIDs", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) RandomIntroduce(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.RandomIntroduceReply, error) {
- out := new(common.RandomIntroduceReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/RandomIntroduce", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) UploadMaterialVoice(ctx context.Context, in *MediaID, opts ...grpc.CallOption) (*MaterialLink, error) {
- out := new(MaterialLink)
- err := c.cc.Invoke(ctx, "/api.account.Account/UploadMaterialVoice", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error) {
- out := new(common.MemeList)
- err := c.cc.Invoke(ctx, "/api.account.Account/FindMemeByType", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) FindChatTopic(ctx context.Context, in *common.FindChatTopicRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error) {
- out := new(common.ChatTopicList)
- err := c.cc.Invoke(ctx, "/api.account.Account/FindChatTopic", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error) {
- out := new(common.CommonTextList)
- err := c.cc.Invoke(ctx, "/api.account.Account/RandomMeme", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error) {
- out := new(common.CommonTextList)
- err := c.cc.Invoke(ctx, "/api.account.Account/RandomSwiftMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) CheckText(ctx context.Context, in *CheckTextRequest, opts ...grpc.CallOption) (*CheckTextReply, error) {
- out := new(CheckTextReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/CheckText", in, out, opts...)
- if err != nil {
- return nil, err
- }
- 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
- type AccountServer interface {
- DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error)
- Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error)
- RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error)
- RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
- RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error)
- // 通过openID和appID查询
- GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
- // 通过type和PID查询
- GetIdentityByTypeAndPID(context.Context, *common.PersonParam) (*IdentityInfo, error)
- // 通过原公众号openID和appID查询
- GetIdentityByFromOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
- // 通过分组名和性别查询标签
- FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
- // 通过标签IDs查询标签
- FindTagsByIDs(context.Context, *common.Ids) (*common.TagListReply, error)
- // 随机介绍接口
- RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error)
- // 通过微信下载语音并上传到七牛
- UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error)
- // 通过类型获取表情包列表
- FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
- // 获取对方性别的聊天话题
- FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error)
- // 随机表情包
- RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
- // 随机打招呼
- RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
- // 检查文本-百度云
- CheckText(context.Context, *CheckTextRequest) (*CheckTextReply, error)
- // 获取用户登录配置
- GetUserLoginConfig(context.Context, *common.GetLoginConfigRequest) (*common.GetLoginConfigReply, error)
- mustEmbedUnimplementedAccountServer()
- }
- // UnimplementedAccountServer must be embedded to have forward compatible implementations.
- type UnimplementedAccountServer struct {
- }
- func (UnimplementedAccountServer) DebugLogin(context.Context, *DebugLoginRequest) (*TokenReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DebugLogin not implemented")
- }
- func (UnimplementedAccountServer) Authorization(context.Context, *AuthorizationRequest) (*TokenReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Authorization not implemented")
- }
- func (UnimplementedAccountServer) RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RandomNickname not implemented")
- }
- func (UnimplementedAccountServer) RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RandomAvatar not implemented")
- }
- func (UnimplementedAccountServer) RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RandomAvatarList not implemented")
- }
- func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppID not implemented")
- }
- func (UnimplementedAccountServer) GetIdentityByTypeAndPID(context.Context, *common.PersonParam) (*IdentityInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByTypeAndPID not implemented")
- }
- func (UnimplementedAccountServer) GetIdentityByFromOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByFromOpenIDAndAppID not implemented")
- }
- func (UnimplementedAccountServer) FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindTagListBySex not implemented")
- }
- func (UnimplementedAccountServer) FindTagsByIDs(context.Context, *common.Ids) (*common.TagListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindTagsByIDs not implemented")
- }
- func (UnimplementedAccountServer) RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RandomIntroduce not implemented")
- }
- func (UnimplementedAccountServer) UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UploadMaterialVoice not implemented")
- }
- func (UnimplementedAccountServer) FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindMemeByType not implemented")
- }
- func (UnimplementedAccountServer) FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindChatTopic not implemented")
- }
- func (UnimplementedAccountServer) RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RandomMeme not implemented")
- }
- func (UnimplementedAccountServer) RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RandomSwiftMessage not implemented")
- }
- 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.
- // Use of this interface is not recommended, as added methods to AccountServer will
- // result in compilation errors.
- type UnsafeAccountServer interface {
- mustEmbedUnimplementedAccountServer()
- }
- func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) {
- s.RegisterService(&Account_ServiceDesc, srv)
- }
- func _Account_DebugLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DebugLoginRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).DebugLogin(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/DebugLogin",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).DebugLogin(ctx, req.(*DebugLoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_Authorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(AuthorizationRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).Authorization(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/Authorization",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).Authorization(ctx, req.(*AuthorizationRequest))
- }
- 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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).RandomNickname(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/RandomNickname",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).RandomNickname(ctx, req.(*common.SexReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_RandomAvatar_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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).RandomAvatar(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/RandomAvatar",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).RandomAvatar(ctx, req.(*common.SexReq))
- }
- 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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).RandomAvatarList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/RandomAvatarList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).RandomAvatarList(ctx, req.(*common.SexReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_GetIdentityByOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(OpenIDAndAppIDRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/GetIdentityByOpenIDAndAppID",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).GetIdentityByOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_GetIdentityByTypeAndPID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.PersonParam)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).GetIdentityByTypeAndPID(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/GetIdentityByTypeAndPID",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).GetIdentityByTypeAndPID(ctx, req.(*common.PersonParam))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_GetIdentityByFromOpenIDAndAppID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(OpenIDAndAppIDRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).GetIdentityByFromOpenIDAndAppID(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/GetIdentityByFromOpenIDAndAppID",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).GetIdentityByFromOpenIDAndAppID(ctx, req.(*OpenIDAndAppIDRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_FindTagListBySex_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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).FindTagListBySex(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/FindTagListBySex",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).FindTagListBySex(ctx, req.(*common.SexReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_FindTagsByIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.Ids)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).FindTagsByIDs(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/FindTagsByIDs",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).FindTagsByIDs(ctx, req.(*common.Ids))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_RandomIntroduce_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 {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).RandomIntroduce(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/RandomIntroduce",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).RandomIntroduce(ctx, req.(*common.SexReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_UploadMaterialVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MediaID)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).UploadMaterialVoice(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/UploadMaterialVoice",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).UploadMaterialVoice(ctx, req.(*MediaID))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_FindMemeByType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.MemeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).FindMemeByType(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/FindMemeByType",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).FindMemeByType(ctx, req.(*common.MemeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_FindChatTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.FindChatTopicRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).FindChatTopic(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/FindChatTopic",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).FindChatTopic(ctx, req.(*common.FindChatTopicRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_RandomMeme_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.RandomNum)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).RandomMeme(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/RandomMeme",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).RandomMeme(ctx, req.(*common.RandomNum))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_RandomSwiftMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(common.RandomNumAndSex)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).RandomSwiftMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/RandomSwiftMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).RandomSwiftMessage(ctx, req.(*common.RandomNumAndSex))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_CheckText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CheckTextRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).CheckText(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/CheckText",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).CheckText(ctx, req.(*CheckTextRequest))
- }
- 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)
- var Account_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "api.account.Account",
- HandlerType: (*AccountServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "DebugLogin",
- Handler: _Account_DebugLogin_Handler,
- },
- {
- MethodName: "Authorization",
- Handler: _Account_Authorization_Handler,
- },
- {
- MethodName: "RandomNickname",
- Handler: _Account_RandomNickname_Handler,
- },
- {
- MethodName: "RandomAvatar",
- Handler: _Account_RandomAvatar_Handler,
- },
- {
- MethodName: "RandomAvatarList",
- Handler: _Account_RandomAvatarList_Handler,
- },
- {
- MethodName: "GetIdentityByOpenIDAndAppID",
- Handler: _Account_GetIdentityByOpenIDAndAppID_Handler,
- },
- {
- MethodName: "GetIdentityByTypeAndPID",
- Handler: _Account_GetIdentityByTypeAndPID_Handler,
- },
- {
- MethodName: "GetIdentityByFromOpenIDAndAppID",
- Handler: _Account_GetIdentityByFromOpenIDAndAppID_Handler,
- },
- {
- MethodName: "FindTagListBySex",
- Handler: _Account_FindTagListBySex_Handler,
- },
- {
- MethodName: "FindTagsByIDs",
- Handler: _Account_FindTagsByIDs_Handler,
- },
- {
- MethodName: "RandomIntroduce",
- Handler: _Account_RandomIntroduce_Handler,
- },
- {
- MethodName: "UploadMaterialVoice",
- Handler: _Account_UploadMaterialVoice_Handler,
- },
- {
- MethodName: "FindMemeByType",
- Handler: _Account_FindMemeByType_Handler,
- },
- {
- MethodName: "FindChatTopic",
- Handler: _Account_FindChatTopic_Handler,
- },
- {
- MethodName: "RandomMeme",
- Handler: _Account_RandomMeme_Handler,
- },
- {
- MethodName: "RandomSwiftMessage",
- Handler: _Account_RandomSwiftMessage_Handler,
- },
- {
- MethodName: "CheckText",
- Handler: _Account_CheckText_Handler,
- },
- {
- MethodName: "GetUserLoginConfig",
- Handler: _Account_GetUserLoginConfig_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "account.proto",
- }
|