| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252 |
- // 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.FindChatTopicRequest) (*common.ChatTopicList, error)
- FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, 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)
- PartnerGetChatCard(context.Context, *common.PersonParam) (*common.ChatCardInfo, 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))
- r.POST("/api/partner/chat/card", _Partner_PartnerGetChatCard0_HTTP_Handler(srv))
- r.POST("/api/partner/find/chat/title", _Partner_FindChatTopicTitle0_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.FindChatTopicRequest
- 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.FindChatTopicRequest))
- })
- 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)
- }
- }
- func _Partner_PartnerGetChatCard0_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/PartnerGetChatCard")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.PartnerGetChatCard(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_FindChatTopicTitle0_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/FindChatTopicTitle")
- h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.FindChatTopicTitle(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.FindChatTopicRequest, opts ...http.CallOption) (rsp *common.ChatTopicList, err error)
- FindChatTopicTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, 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)
- PartnerGetChatCard(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.ChatCardInfo, 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.FindChatTopicRequest, 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) FindChatTopicTitle(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.MemeTitleList, error) {
- var out common.MemeTitleList
- pattern := "/api/partner/find/chat/title"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/FindChatTopicTitle"))
- 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) PartnerGetChatCard(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.ChatCardInfo, error) {
- var out common.ChatCardInfo
- pattern := "/api/partner/chat/card"
- path := binding.EncodeURL(pattern, in, false)
- opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetChatCard"))
- 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
- }
|