| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166 |
- // Code generated by protoc-gen-go-http. DO NOT EDIT.
- // versions:
- // protoc-gen-go-http v2.0.0
- package partner
- import (
- context "context"
- base "git.ikuban.com/server/base-protobuf/kuban/api/base"
- reply "git.ikuban.com/server/kratos-utils/http/reply"
- chat "git.ikuban.com/server/pw-protobuf/api/chat"
- common "git.ikuban.com/server/pw-protobuf/api/common"
- statistics "git.ikuban.com/server/pw-protobuf/api/statistics"
- http "github.com/go-kratos/kratos/v2/transport/http"
- binding "github.com/go-kratos/kratos/v2/transport/http/binding"
- emptypb "google.golang.org/protobuf/types/known/emptypb"
- ioutil "io/ioutil"
- time "time"
- )
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the kratos package it is being compiled against.
- var _ = new(context.Context)
- var _ = binding.EncodeURL
- var _ = ioutil.Discard
- var _ = new(time.Time)
- var _ = new(reply.SuccessReply)
- var _ = new(base.Html)
- const _ = http.SupportPackageIsVersion1
- type PartnerHTTPServer interface {
- CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
- CreateUserPartnerRoom(context.Context, *common.PersonIDParam) (*chat.RoomReply, error)
- FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
- FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
- FindChatTopic(context.Context, *common.ListPageAndSexRequest) (*common.ChatTopicList, error)
- FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
- FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
- FindMemeTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
- FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
- FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
- FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
- FindUnReplyRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
- FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
- GetLevelBalanceTable(context.Context, *emptypb.Empty) (*LevelTable, error)
- GetPartnerBalance(context.Context, *emptypb.Empty) (*PartnerBalance, error)
- GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
- GetPartnerIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
- GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
- GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
- PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
- PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
- RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
- RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
- SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
- UpdatePartnerInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
- WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
- }
- func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
- r := s.Route("/")
- r.POST("/api/partner/info", _Partner_GetPartnerInfo0_HTTP_Handler(srv))
- r.POST("/api/partner/balance", _Partner_GetPartnerBalance0_HTTP_Handler(srv))
- r.POST("/api/partner/message", _Partner_GetPartnerMessage0_HTTP_Handler(srv))
- r.POST("/api/partner/num/look", _Partner_GetPartnerLookNum0_HTTP_Handler(srv))
- r.POST("/api/partner/code/send", _Partner_SendPhoneCode0_HTTP_Handler(srv))
- r.POST("/api/partner/code/check", _Partner_CheckPhoneCode0_HTTP_Handler(srv))
- r.POST("/api/partner/update/information", _Partner_UpdatePartnerInformation0_HTTP_Handler(srv))
- r.POST("/api/partner/home", _Partner_PartnerGetHomeInfo0_HTTP_Handler(srv))
- r.POST("/api/partner/num", _Partner_PartnerGetPersonLikedAndLooked0_HTTP_Handler(srv))
- r.POST("/api/partner/list/look", _Partner_FindLookList0_HTTP_Handler(srv))
- r.POST("/api/wx/jssdk/config", _Partner_WxConf0_HTTP_Handler(srv))
- r.POST("/api/partner/create/room", _Partner_CreateUserPartnerRoom0_HTTP_Handler(srv))
- r.POST("/api/partner/list/tag", _Partner_FindTagListBySex0_HTTP_Handler(srv))
- r.POST("/api/partner/list/online", _Partner_FindOnlineList0_HTTP_Handler(srv))
- r.POST("/api/partner/list/chat/unreply", _Partner_FindUnReplyRoomList0_HTTP_Handler(srv))
- r.POST("/api/partner/list/chat/within", _Partner_FindWithinSevenDayRoomList0_HTTP_Handler(srv))
- r.POST("/api/partner/list/chat/over", _Partner_FindOverSevenDayRoomList0_HTTP_Handler(srv))
- r.POST("/api/partner/chat/record", _Partner_FindChatRecordList0_HTTP_Handler(srv))
- r.POST("/api/partner/chat/room/msg", _Partner_FindChatRoomMsg0_HTTP_Handler(srv))
- r.POST("/api/partner/level/table", _Partner_GetLevelBalanceTable0_HTTP_Handler(srv))
- r.POST("/api/partner/islike", _Partner_GetPartnerIsLike0_HTTP_Handler(srv))
- r.POST("/api/partner/find/meme/type", _Partner_FindMemeByType0_HTTP_Handler(srv))
- r.POST("/api/partner/find/topic", _Partner_FindChatTopic0_HTTP_Handler(srv))
- r.POST("/api/partner/find/meme/random", _Partner_RandomMeme0_HTTP_Handler(srv))
- r.POST("/api/partner/find/topic/random", _Partner_RandomSwiftMessage0_HTTP_Handler(srv))
- r.POST("/api/partner/find/meme/title", _Partner_FindMemeTitle0_HTTP_Handler(srv))
- }
- func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in emptypb.Empty
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/GetPartnerInfo")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.GetPartnerInfo(ctx, req.(*emptypb.Empty))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_GetPartnerBalance0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in emptypb.Empty
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/GetPartnerBalance")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.GetPartnerBalance(ctx, req.(*emptypb.Empty))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_GetPartnerMessage0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in emptypb.Empty
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/GetPartnerMessage")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.GetPartnerMessage(ctx, req.(*emptypb.Empty))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_GetPartnerLookNum0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in emptypb.Empty
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/GetPartnerLookNum")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.GetPartnerLookNum(ctx, req.(*emptypb.Empty))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_SendPhoneCode0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.SendPhoneCodeRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/SendPhoneCode")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_CheckPhoneCode0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.CheckPhoneCodeRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/CheckPhoneCode")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_UpdatePartnerInformation0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.UpdateInformationRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/UpdatePartnerInformation")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.UpdatePartnerInformation(ctx, req.(*common.UpdateInformationRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_PartnerGetHomeInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.PersonParam
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/PartnerGetHomeInfo")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.PartnerGetHomeInfo(ctx, req.(*common.PersonParam))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_PartnerGetPersonLikedAndLooked0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.PersonParam
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/PartnerGetPersonLikedAndLooked")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.PartnerGetPersonLikedAndLooked(ctx, req.(*common.PersonParam))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindLookList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.ListPageRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindLookList")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindLookList(ctx, req.(*common.ListPageRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_WxConf0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.WxConfReq
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/WxConf")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.WxConf(ctx, req.(*common.WxConfReq))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_CreateUserPartnerRoom0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.PersonIDParam
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/CreateUserPartnerRoom")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.CreateUserPartnerRoom(ctx, req.(*common.PersonIDParam))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindTagListBySex0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.SexReq
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindTagListBySex")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindTagListBySex(ctx, req.(*common.SexReq))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindOnlineList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.ListPage2Request
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindOnlineList")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindOnlineList(ctx, req.(*common.ListPage2Request))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindUnReplyRoomList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.ListPageRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindUnReplyRoomList")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindUnReplyRoomList(ctx, req.(*common.ListPageRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindWithinSevenDayRoomList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.ListPageRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindWithinSevenDayRoomList")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindWithinSevenDayRoomList(ctx, req.(*common.ListPageRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindOverSevenDayRoomList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.ListPageRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindOverSevenDayRoomList")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindOverSevenDayRoomList(ctx, req.(*common.ListPageRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindChatRecordList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.FindChatRecordListRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindChatRecordList")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindChatRecordList(ctx, req.(*common.FindChatRecordListRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindChatRoomMsg0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.FindChatRoomMsgRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindChatRoomMsg")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindChatRoomMsg(ctx, req.(*common.FindChatRoomMsgRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_GetLevelBalanceTable0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in emptypb.Empty
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/GetLevelBalanceTable")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.GetLevelBalanceTable(ctx, req.(*emptypb.Empty))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_GetPartnerIsLike0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.PersonParam
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/GetPartnerIsLike")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.GetPartnerIsLike(ctx, req.(*common.PersonParam))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindMemeByType0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.MemeRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindMemeByType")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindMemeByType(ctx, req.(*common.MemeRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindChatTopic0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.ListPageAndSexRequest
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindChatTopic")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindChatTopic(ctx, req.(*common.ListPageAndSexRequest))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_RandomMeme0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.RandomNum
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/RandomMeme")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.RandomMeme(ctx, req.(*common.RandomNum))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_RandomSwiftMessage0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in common.RandomNumAndSex
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/RandomSwiftMessage")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.RandomSwiftMessage(ctx, req.(*common.RandomNumAndSex))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- func _Partner_FindMemeTitle0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
- return func(ctx http.Context) error {
- var in emptypb.Empty
- if err := ctx.Bind(&in); err != nil {
- return err
- }
- if err := ctx.BindQuery(&in); err != nil {
- return err
- }
- http.SetOperation(ctx, "/api.partner.Partner/FindMemeTitle")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindMemeTitle(ctx, req.(*emptypb.Empty))
- })
- out, err := h(ctx, &in)
- if err != nil {
- return err
- }
- success := &reply.SuccessReply{
- Code: 0,
- }
- if out != nil {
- success.Data = out
- }
- return ctx.Result(200, success)
- }
- }
- type PartnerHTTPClient interface {
- CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
- CreateUserPartnerRoom(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
- FindChatRecordList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
- FindChatRoomMsg(ctx context.Context, req *common.FindChatRoomMsgRequest, opts ...http.CallOption) (rsp *common.ChatRoomMsg, err error)
- FindChatTopic(ctx context.Context, req *common.ListPageAndSexRequest, opts ...http.CallOption) (rsp *common.ChatTopicList, err error)
- FindLookList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *statistics.LookAndLikeListReply, err error)
- FindMemeByType(ctx context.Context, req *common.MemeRequest, opts ...http.CallOption) (rsp *common.MemeList, err error)
- FindMemeTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, err error)
- FindOnlineList(ctx context.Context, req *common.ListPage2Request, opts ...http.CallOption) (rsp *common.OnlinePersonListReply, err error)
- FindOverSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
- FindTagListBySex(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *common.TagListReply, err error)
- FindUnReplyRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
- FindWithinSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
- GetLevelBalanceTable(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *LevelTable, err error)
- GetPartnerBalance(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerBalance, err error)
- GetPartnerInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerInfo, err error)
- GetPartnerIsLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.IsLike, err error)
- GetPartnerLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
- GetPartnerMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerMessage, err error)
- PartnerGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
- PartnerGetPersonLikedAndLooked(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.LookedAndLikedNum, err error)
- RandomMeme(ctx context.Context, req *common.RandomNum, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
- RandomSwiftMessage(ctx context.Context, req *common.RandomNumAndSex, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
- SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
- UpdatePartnerInformation(ctx context.Context, req *common.UpdateInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
- WxConf(ctx context.Context, req *common.WxConfReq, opts ...http.CallOption) (rsp *common.WxConfResponse, err error)
- }
- type PartnerHTTPClientImpl struct {
- cc *http.Client
- }
- func NewPartnerHTTPClient(client *http.Client) PartnerHTTPClient {
- return &PartnerHTTPClientImpl{client}
- }
- func (c *PartnerHTTPClientImpl) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
- var out emptypb.Empty
- pattern := "/api/partner/code/check"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/CheckPhoneCode"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) CreateUserPartnerRoom(ctx context.Context, in *common.PersonIDParam, opts ...http.CallOption) (*chat.RoomReply, error) {
- var out chat.RoomReply
- pattern := "/api/partner/create/room"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/CreateUserPartnerRoom"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...http.CallOption) (*common.ChatRecordListReply, error) {
- var out common.ChatRecordListReply
- pattern := "/api/partner/chat/record"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindChatRecordList"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...http.CallOption) (*common.ChatRoomMsg, error) {
- var out common.ChatRoomMsg
- pattern := "/api/partner/chat/room/msg"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindChatRoomMsg"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindChatTopic(ctx context.Context, in *common.ListPageAndSexRequest, opts ...http.CallOption) (*common.ChatTopicList, error) {
- var out common.ChatTopicList
- pattern := "/api/partner/find/topic"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindChatTopic"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*statistics.LookAndLikeListReply, error) {
- var out statistics.LookAndLikeListReply
- pattern := "/api/partner/list/look"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindLookList"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...http.CallOption) (*common.MemeList, error) {
- var out common.MemeList
- pattern := "/api/partner/find/meme/type"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindMemeByType"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindMemeTitle(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.MemeTitleList, error) {
- var out common.MemeTitleList
- pattern := "/api/partner/find/meme/title"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindMemeTitle"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...http.CallOption) (*common.OnlinePersonListReply, error) {
- var out common.OnlinePersonListReply
- pattern := "/api/partner/list/online"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindOnlineList"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*chat.PartnerFindRoomListReply, error) {
- var out chat.PartnerFindRoomListReply
- pattern := "/api/partner/list/chat/over"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindOverSevenDayRoomList"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...http.CallOption) (*common.TagListReply, error) {
- var out common.TagListReply
- pattern := "/api/partner/list/tag"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindTagListBySex"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindUnReplyRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*chat.PartnerFindRoomListReply, error) {
- var out chat.PartnerFindRoomListReply
- pattern := "/api/partner/list/chat/unreply"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindUnReplyRoomList"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*chat.PartnerFindRoomListReply, error) {
- var out chat.PartnerFindRoomListReply
- pattern := "/api/partner/list/chat/within"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindWithinSevenDayRoomList"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) GetLevelBalanceTable(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*LevelTable, error) {
- var out LevelTable
- pattern := "/api/partner/level/table"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/GetLevelBalanceTable"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) GetPartnerBalance(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerBalance, error) {
- var out PartnerBalance
- pattern := "/api/partner/balance"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerBalance"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerInfo, error) {
- var out PartnerInfo
- pattern := "/api/partner/info"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerInfo"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) GetPartnerIsLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.IsLike, error) {
- var out common.IsLike
- pattern := "/api/partner/islike"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerIsLike"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) GetPartnerLookNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*statistics.LookMessageReply, error) {
- var out statistics.LookMessageReply
- pattern := "/api/partner/num/look"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerLookNum"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) GetPartnerMessage(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerMessage, error) {
- var out PartnerMessage
- pattern := "/api/partner/message"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerMessage"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.HomeInfo, error) {
- var out common.HomeInfo
- pattern := "/api/partner/home"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetHomeInfo"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) PartnerGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.LookedAndLikedNum, error) {
- var out common.LookedAndLikedNum
- pattern := "/api/partner/num"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetPersonLikedAndLooked"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...http.CallOption) (*common.CommonTextList, error) {
- var out common.CommonTextList
- pattern := "/api/partner/find/meme/random"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/RandomMeme"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...http.CallOption) (*common.CommonTextList, error) {
- var out common.CommonTextList
- pattern := "/api/partner/find/topic/random"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/RandomSwiftMessage"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
- var out emptypb.Empty
- pattern := "/api/partner/code/send"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/SendPhoneCode"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) UpdatePartnerInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
- var out emptypb.Empty
- pattern := "/api/partner/update/information"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/UpdatePartnerInformation"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
- func (c *PartnerHTTPClientImpl) WxConf(ctx context.Context, in *common.WxConfReq, opts ...http.CallOption) (*common.WxConfResponse, error) {
- var out common.WxConfResponse
- pattern := "/api/wx/jssdk/config"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/WxConf"))
- opts = append(opts, http.PathTemplate(pattern))
- err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
- if err != nil {
- return nil, err
- }
- return &out, err
- }
|