| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121 |
- // 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"
- emptypb "google.golang.org/protobuf/types/known/emptypb"
- )
- // 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)
- AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...grpc.CallOption) (*MiniProgramTokenReply, error)
- // 获取用户登录配置
- GetUserLoginConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.GetLoginConfigReply, error)
- // 获取公众号配置
- GetGetGzhConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetGetGzhConfigReply, 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)
- // 统计订阅消息
- StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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)
- // 减少订阅消息
- ReduceSubscribeMessage(ctx context.Context, in *ReduceSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 获取订阅了签到的人
- GetSignUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.PersonIDList, error)
- // 随机头像列表
- RandomAvatarList(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*RandomAvatarListReply, 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)
- // 通过类型获取表情包列表
- 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)
- // 通过openID和appID查询
- GetIdentityByOpenIDAndAppID(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
- // 通过openID和appID查询 未查到就创建
- GetIdentityByOpenIDAndAppIDAndCreate(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error)
- // 通过accountID获取Identify信息
- 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信息
- GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(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)
- // 用户取关
- UserUnsubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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) AuthorizationMiniProgram(ctx context.Context, in *AuthorizationMiniProgramRequest, opts ...grpc.CallOption) (*MiniProgramTokenReply, error) {
- out := new(MiniProgramTokenReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/AuthorizationMiniProgram", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) GetUserLoginConfig(ctx context.Context, in *emptypb.Empty, 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
- }
- 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) 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) 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) 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) ReduceSubscribeMessage(ctx context.Context, in *ReduceSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.account.Account/ReduceSubscribeMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) GetSignUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.PersonIDList, error) {
- out := new(common.PersonIDList)
- err := c.cc.Invoke(ctx, "/api.account.Account/GetSignUser", 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) 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) 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) 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) GetIdentityByOpenIDAndAppIDAndCreate(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*IdentityInfo, error) {
- out := new(IdentityInfo)
- err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentityByOpenIDAndAppIDAndCreate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) GetIdentifyByAccountID(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) {
- out := new(GetIdentifyByAccountIDReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentifyByAccountID", in, out, opts...)
- if err != nil {
- return nil, err
- }
- 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) GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx context.Context, in *GetIdentifyByAccountIDRequest, opts ...grpc.CallOption) (*GetIdentifyByAccountIDReply, error) {
- out := new(GetIdentifyByAccountIDReply)
- err := c.cc.Invoke(ctx, "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribeByMiniProgram", 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) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.account.Account/UserSubscribe", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *accountClient) UserUnsubscribe(ctx context.Context, in *OpenIDAndAppIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, "/api.account.Account/UserUnsubscribe", 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)
- AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*MiniProgramTokenReply, error)
- // 获取用户登录配置
- GetUserLoginConfig(context.Context, *emptypb.Empty) (*common.GetLoginConfigReply, error)
- // 获取公众号配置
- GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error)
- RandomNickname(context.Context, *common.SexReq) (*RandomNicknameReply, error)
- RandomAvatar(context.Context, *common.SexReq) (*RandomAvatarReply, error)
- // 统计订阅消息
- StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error)
- // 随机介绍接口
- RandomIntroduce(context.Context, *common.SexReq) (*common.RandomIntroduceReply, error)
- // 通过微信下载语音并上传到七牛
- UploadMaterialVoice(context.Context, *MediaID) (*MaterialLink, error)
- // 减少订阅消息
- ReduceSubscribeMessage(context.Context, *ReduceSubscribeMessageRequest) (*emptypb.Empty, error)
- // 获取订阅了签到的人
- GetSignUser(context.Context, *emptypb.Empty) (*common.PersonIDList, error)
- // 随机头像列表
- RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error)
- // 通过分组名和性别查询标签
- FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
- // 通过标签IDs查询标签
- FindTagsByIDs(context.Context, *common.Ids) (*common.TagListReply, 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)
- // 通过openID和appID查询
- GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
- // 通过openID和appID查询 未查到就创建
- GetIdentityByOpenIDAndAppIDAndCreate(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error)
- // 通过accountID获取Identify信息
- GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
- // 通过accountID获取Identify信息
- GetIdentifyByAccountIDAndIsSubscribe(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
- // 通过accountID获取Identify信息
- GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error)
- // 通过accountID获取Identify信息
- FindIdentifyByAccountIDAndIsSubscribe(context.Context, *FindIdentifyByAccountIDAndIsSubscribeRequest) (*FindIdentifyByAccountIDAndIsSubscribeReply, error)
- // 用户关注
- UserSubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error)
- // 用户取关
- UserUnsubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, 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) AuthorizationMiniProgram(context.Context, *AuthorizationMiniProgramRequest) (*MiniProgramTokenReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method AuthorizationMiniProgram not implemented")
- }
- func (UnimplementedAccountServer) GetUserLoginConfig(context.Context, *emptypb.Empty) (*common.GetLoginConfigReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUserLoginConfig not implemented")
- }
- func (UnimplementedAccountServer) GetGetGzhConfig(context.Context, *emptypb.Empty) (*GetGetGzhConfigReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetGetGzhConfig 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) StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StatisticsSubscribeMessage 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) ReduceSubscribeMessage(context.Context, *ReduceSubscribeMessageRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ReduceSubscribeMessage not implemented")
- }
- func (UnimplementedAccountServer) GetSignUser(context.Context, *emptypb.Empty) (*common.PersonIDList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetSignUser not implemented")
- }
- func (UnimplementedAccountServer) RandomAvatarList(context.Context, *common.SexReq) (*RandomAvatarListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RandomAvatarList 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) 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) GetIdentityByOpenIDAndAppID(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppID not implemented")
- }
- func (UnimplementedAccountServer) GetIdentityByOpenIDAndAppIDAndCreate(context.Context, *OpenIDAndAppIDRequest) (*IdentityInfo, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetIdentityByOpenIDAndAppIDAndCreate not implemented")
- }
- func (UnimplementedAccountServer) GetIdentifyByAccountID(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
- 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) GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(context.Context, *GetIdentifyByAccountIDRequest) (*GetIdentifyByAccountIDReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetIdentifyByAccountIDAndIsSubscribeByMiniProgram 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) {
- return nil, status.Errorf(codes.Unimplemented, "method UserSubscribe not implemented")
- }
- func (UnimplementedAccountServer) UserUnsubscribe(context.Context, *OpenIDAndAppIDRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserUnsubscribe 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_AuthorizationMiniProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(AuthorizationMiniProgramRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).AuthorizationMiniProgram(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/AuthorizationMiniProgram",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).AuthorizationMiniProgram(ctx, req.(*AuthorizationMiniProgramRequest))
- }
- 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(emptypb.Empty)
- 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.(*emptypb.Empty))
- }
- 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_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_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_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_ReduceSubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ReduceSubscribeMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).ReduceSubscribeMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/ReduceSubscribeMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).ReduceSubscribeMessage(ctx, req.(*ReduceSubscribeMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_GetSignUser_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).GetSignUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/GetSignUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).GetSignUser(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 {
- 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_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_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_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_GetIdentityByOpenIDAndAppIDAndCreate_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).GetIdentityByOpenIDAndAppIDAndCreate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/GetIdentityByOpenIDAndAppIDAndCreate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).GetIdentityByOpenIDAndAppIDAndCreate(ctx, req.(*OpenIDAndAppIDRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_GetIdentifyByAccountID_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).GetIdentifyByAccountID(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/GetIdentifyByAccountID",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).GetIdentifyByAccountID(ctx, req.(*GetIdentifyByAccountIDRequest))
- }
- 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_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_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).GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/GetIdentifyByAccountIDAndIsSubscribeByMiniProgram",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).GetIdentifyByAccountIDAndIsSubscribeByMiniProgram(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) {
- in := new(OpenIDAndAppIDRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(AccountServer).UserSubscribe(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/UserSubscribe",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).UserSubscribe(ctx, req.(*OpenIDAndAppIDRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Account_UserUnsubscribe_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).UserUnsubscribe(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/api.account.Account/UserUnsubscribe",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(AccountServer).UserUnsubscribe(ctx, req.(*OpenIDAndAppIDRequest))
- }
- 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: "AuthorizationMiniProgram",
- Handler: _Account_AuthorizationMiniProgram_Handler,
- },
- {
- MethodName: "GetUserLoginConfig",
- Handler: _Account_GetUserLoginConfig_Handler,
- },
- {
- MethodName: "GetGetGzhConfig",
- Handler: _Account_GetGetGzhConfig_Handler,
- },
- {
- MethodName: "RandomNickname",
- Handler: _Account_RandomNickname_Handler,
- },
- {
- MethodName: "RandomAvatar",
- Handler: _Account_RandomAvatar_Handler,
- },
- {
- MethodName: "StatisticsSubscribeMessage",
- Handler: _Account_StatisticsSubscribeMessage_Handler,
- },
- {
- MethodName: "RandomIntroduce",
- Handler: _Account_RandomIntroduce_Handler,
- },
- {
- MethodName: "UploadMaterialVoice",
- Handler: _Account_UploadMaterialVoice_Handler,
- },
- {
- MethodName: "ReduceSubscribeMessage",
- Handler: _Account_ReduceSubscribeMessage_Handler,
- },
- {
- MethodName: "GetSignUser",
- Handler: _Account_GetSignUser_Handler,
- },
- {
- MethodName: "RandomAvatarList",
- Handler: _Account_RandomAvatarList_Handler,
- },
- {
- MethodName: "FindTagListBySex",
- Handler: _Account_FindTagListBySex_Handler,
- },
- {
- MethodName: "FindTagsByIDs",
- Handler: _Account_FindTagsByIDs_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: "GetIdentityByOpenIDAndAppID",
- Handler: _Account_GetIdentityByOpenIDAndAppID_Handler,
- },
- {
- MethodName: "GetIdentityByOpenIDAndAppIDAndCreate",
- Handler: _Account_GetIdentityByOpenIDAndAppIDAndCreate_Handler,
- },
- {
- MethodName: "GetIdentifyByAccountID",
- Handler: _Account_GetIdentifyByAccountID_Handler,
- },
- {
- MethodName: "GetIdentifyByAccountIDAndIsSubscribe",
- Handler: _Account_GetIdentifyByAccountIDAndIsSubscribe_Handler,
- },
- {
- MethodName: "GetIdentifyByAccountIDAndIsSubscribeByMiniProgram",
- Handler: _Account_GetIdentifyByAccountIDAndIsSubscribeByMiniProgram_Handler,
- },
- {
- MethodName: "FindIdentifyByAccountIDAndIsSubscribe",
- Handler: _Account_FindIdentifyByAccountIDAndIsSubscribe_Handler,
- },
- {
- MethodName: "UserSubscribe",
- Handler: _Account_UserSubscribe_Handler,
- },
- {
- MethodName: "UserUnsubscribe",
- Handler: _Account_UserUnsubscribe_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "account.proto",
- }
|