partner_http.pb.go 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198
  1. // Code generated by protoc-gen-go-http. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go-http v2.0.0
  4. package partner
  5. import (
  6. context "context"
  7. base "git.ikuban.com/server/base-protobuf/kuban/api/base"
  8. reply "git.ikuban.com/server/kratos-utils/http/reply"
  9. chat "git.ikuban.com/server/pw-protobuf/api/chat"
  10. common "git.ikuban.com/server/pw-protobuf/api/common"
  11. statistics "git.ikuban.com/server/pw-protobuf/api/statistics"
  12. http "github.com/go-kratos/kratos/v2/transport/http"
  13. binding "github.com/go-kratos/kratos/v2/transport/http/binding"
  14. emptypb "google.golang.org/protobuf/types/known/emptypb"
  15. ioutil "io/ioutil"
  16. time "time"
  17. )
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the kratos package it is being compiled against.
  20. var _ = new(context.Context)
  21. var _ = binding.EncodeURL
  22. var _ = ioutil.Discard
  23. var _ = new(time.Time)
  24. var _ = new(reply.SuccessReply)
  25. var _ = new(base.Html)
  26. const _ = http.SupportPackageIsVersion1
  27. type PartnerHTTPServer interface {
  28. CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)
  29. CreateScrip(context.Context, *CreateScripRequest) (*common.ScripID, error)
  30. CreateUserPartnerRoom(context.Context, *common.CreateChatRoomParam) (*chat.RoomReply, error)
  31. DeleteScrip(context.Context, *common.ScripIdRequest) (*emptypb.Empty, error)
  32. FindChatCollectList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  33. FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
  34. FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
  35. FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error)
  36. FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
  37. FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
  38. FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
  39. FindMemeTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
  40. FindMyScrip(context.Context, *common.ListPageRequest) (*common.ScripReply, error)
  41. FindNotReplyNum(context.Context, *emptypb.Empty) (*chat.FindNotReplyNumReply, error)
  42. FindOnlineList(context.Context, *common.ListPage2Request) (*common.RecommendPersonListReply, error)
  43. FindOtherScrip(context.Context, *common.FindScripRequest) (*common.ScripReply, error)
  44. FindOverSevenDayAvatar(context.Context, *emptypb.Empty) (*common.FindOverSevenDayAvatarReply, error)
  45. FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
  46. FindRecommendScrip(context.Context, *common.ListPageRequest) (*common.ScripReply, error)
  47. FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
  48. FindUnReplyRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
  49. FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
  50. GetLevelBalanceTable(context.Context, *emptypb.Empty) (*LevelTable, error)
  51. GetPartnerBalance(context.Context, *emptypb.Empty) (*PartnerBalance, error)
  52. GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
  53. GetPartnerIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
  54. GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
  55. GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
  56. PartnerApplyWithdraw(context.Context, *PartnerApplyWithdrawRequest) (*emptypb.Empty, error)
  57. PartnerCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error)
  58. PartnerDeleteCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error)
  59. PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*emptypb.Empty, error)
  60. PartnerGetChatCard(context.Context, *common.PersonParam) (*common.PartnerChatCardInfo, error)
  61. PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
  62. PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
  63. PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
  64. PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
  65. PartnerUpdateWorkingStatus(context.Context, *PartnerUpdateWorkingStatusRequest) (*emptypb.Empty, error)
  66. PartnerWithdrawRecordList(context.Context, *common.ListPageRequest) (*PartnerWithdrawRecordListReply, error)
  67. PartnerWithdrawTemplateList(context.Context, *emptypb.Empty) (*PartnerWithdrawTemplateListReply, error)
  68. PersonClickLookBack(context.Context, *emptypb.Empty) (*common.ScripInfo, error)
  69. PersonLookScrip(context.Context, *common.ScripIdRequest) (*emptypb.Empty, error)
  70. PersonReplyScrip(context.Context, *ReplyScripRequest) (*common.ChatRecordInfo, error)
  71. RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
  72. RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
  73. Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
  74. SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
  75. UpdateLastScripID(context.Context, *common.UpdateLastScripIDRequest) (*emptypb.Empty, error)
  76. UpdatePartnerInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
  77. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  78. }
  79. func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
  80. r := s.Route("/")
  81. r.POST("/api/partner/info", _Partner_GetPartnerInfo0_HTTP_Handler(srv))
  82. r.POST("/api/partner/code/send", _Partner_SendPhoneCode0_HTTP_Handler(srv))
  83. r.POST("/api/partner/code/check", _Partner_CheckPhoneCode0_HTTP_Handler(srv))
  84. r.POST("/api/partner/update/information", _Partner_UpdatePartnerInformation0_HTTP_Handler(srv))
  85. r.POST("/api/partner/create/room", _Partner_CreateUserPartnerRoom0_HTTP_Handler(srv))
  86. r.POST("/api/partner/balance", _Partner_GetPartnerBalance0_HTTP_Handler(srv))
  87. r.POST("/api/partner/home", _Partner_PartnerGetHomeInfo0_HTTP_Handler(srv))
  88. r.POST("/api/partner/num", _Partner_PartnerGetPersonLikedAndLooked0_HTTP_Handler(srv))
  89. r.POST("/api/partner/list/look", _Partner_FindLookList0_HTTP_Handler(srv))
  90. r.POST("/api/wx/jssdk/config", _Partner_WxConf0_HTTP_Handler(srv))
  91. r.POST("/api/partner/list/tag", _Partner_FindTagListBySex0_HTTP_Handler(srv))
  92. r.POST("/api/partner/list/online", _Partner_FindOnlineList0_HTTP_Handler(srv))
  93. r.POST("/api/partner/list/chat/within", _Partner_FindWithinSevenDayRoomList0_HTTP_Handler(srv))
  94. r.POST("/api/partner/list/chat/over", _Partner_FindOverSevenDayRoomList0_HTTP_Handler(srv))
  95. r.POST("/api/partner/chat/record", _Partner_FindChatRecordList0_HTTP_Handler(srv))
  96. r.POST("/api/partner/chat/room/msg", _Partner_FindChatRoomMsg0_HTTP_Handler(srv))
  97. r.POST("/api/partner/islike", _Partner_GetPartnerIsLike0_HTTP_Handler(srv))
  98. r.POST("/api/partner/find/meme/type", _Partner_FindMemeByType0_HTTP_Handler(srv))
  99. r.POST("/api/partner/find/topic", _Partner_FindChatTopic0_HTTP_Handler(srv))
  100. r.POST("/api/partner/find/meme/random", _Partner_RandomMeme0_HTTP_Handler(srv))
  101. r.POST("/api/partner/find/topic/random", _Partner_RandomSwiftMessage0_HTTP_Handler(srv))
  102. r.POST("/api/partner/find/meme/title", _Partner_FindMemeTitle0_HTTP_Handler(srv))
  103. r.POST("/api/partner/chat/card", _Partner_PartnerGetChatCard0_HTTP_Handler(srv))
  104. r.POST("/api/partner/find/chat/title", _Partner_FindChatTopicTitle0_HTTP_Handler(srv))
  105. r.POST("/api/partner/like", _Partner_PartnerLike0_HTTP_Handler(srv))
  106. r.POST("/api/partner/unlike", _Partner_PartnerUnLike0_HTTP_Handler(srv))
  107. r.POST("/api/partner/report", _Partner_Report0_HTTP_Handler(srv))
  108. r.POST("/api/partner/over/avatar/list", _Partner_FindOverSevenDayAvatar0_HTTP_Handler(srv))
  109. r.POST("/api/partner/scrip/last/update", _Partner_UpdateLastScripID0_HTTP_Handler(srv))
  110. r.POST("/api/partner/scrip/create", _Partner_CreateScrip0_HTTP_Handler(srv))
  111. r.POST("/api/partner/scrip/delete", _Partner_DeleteScrip0_HTTP_Handler(srv))
  112. r.POST("/api/partner/scrip/find/self", _Partner_FindMyScrip0_HTTP_Handler(srv))
  113. r.POST("/api/partner/scrip/find/other", _Partner_FindOtherScrip0_HTTP_Handler(srv))
  114. r.POST("/api/partner/scrip/find/recommend", _Partner_FindRecommendScrip0_HTTP_Handler(srv))
  115. r.POST("/api/partner/scrip/look", _Partner_PersonLookScrip0_HTTP_Handler(srv))
  116. r.POST("/api/partner/scrip/look/back", _Partner_PersonClickLookBack0_HTTP_Handler(srv))
  117. r.POST("/api/partner/scrip/reply", _Partner_PersonReplyScrip0_HTTP_Handler(srv))
  118. r.POST("/api/partner/collect", _Partner_PartnerCollect0_HTTP_Handler(srv))
  119. r.POST("/api/partner/collect/delete", _Partner_PartnerDeleteCollect0_HTTP_Handler(srv))
  120. r.POST("/api/partner/collect/list", _Partner_FindChatCollectList0_HTTP_Handler(srv))
  121. r.POST("/api/partner/message", _Partner_GetPartnerMessage0_HTTP_Handler(srv))
  122. r.POST("/api/partner/num/look", _Partner_GetPartnerLookNum0_HTTP_Handler(srv))
  123. r.POST("/api/partner/list/chat/unreply", _Partner_FindUnReplyRoomList0_HTTP_Handler(srv))
  124. r.POST("/api/partner/level/table", _Partner_GetLevelBalanceTable0_HTTP_Handler(srv))
  125. r.POST("/api/partner/chat/award", _Partner_PartnerGetAward0_HTTP_Handler(srv))
  126. r.POST("/api/partner/working/status/update", _Partner_PartnerUpdateWorkingStatus0_HTTP_Handler(srv))
  127. r.POST("/api/partner/chat/unreply/num", _Partner_FindNotReplyNum0_HTTP_Handler(srv))
  128. r.POST("/api/partner/withdraw", _Partner_PartnerApplyWithdraw0_HTTP_Handler(srv))
  129. r.POST("/api/partner/withdraw/template/list", _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv))
  130. r.POST("/api/partner/withdraw/record/list", _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv))
  131. }
  132. func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  133. return func(ctx http.Context) error {
  134. var in emptypb.Empty
  135. if err := ctx.Bind(&in); err != nil {
  136. return err
  137. }
  138. if err := ctx.BindQuery(&in); err != nil {
  139. return err
  140. }
  141. http.SetOperation(ctx, "/api.partner.Partner/GetPartnerInfo")
  142. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  143. return srv.GetPartnerInfo(ctx, req.(*emptypb.Empty))
  144. })
  145. out, err := h(ctx, &in)
  146. if err != nil {
  147. return err
  148. }
  149. success := &reply.SuccessReply{
  150. Code: 0,
  151. }
  152. if out != nil {
  153. success.Data = out
  154. }
  155. return ctx.Result(200, success)
  156. }
  157. }
  158. func _Partner_SendPhoneCode0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  159. return func(ctx http.Context) error {
  160. var in common.SendPhoneCodeRequest
  161. if err := ctx.Bind(&in); err != nil {
  162. return err
  163. }
  164. if err := ctx.BindQuery(&in); err != nil {
  165. return err
  166. }
  167. http.SetOperation(ctx, "/api.partner.Partner/SendPhoneCode")
  168. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  169. return srv.SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))
  170. })
  171. out, err := h(ctx, &in)
  172. if err != nil {
  173. return err
  174. }
  175. success := &reply.SuccessReply{
  176. Code: 0,
  177. }
  178. if out != nil {
  179. success.Data = out
  180. }
  181. return ctx.Result(200, success)
  182. }
  183. }
  184. func _Partner_CheckPhoneCode0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  185. return func(ctx http.Context) error {
  186. var in common.CheckPhoneCodeRequest
  187. if err := ctx.Bind(&in); err != nil {
  188. return err
  189. }
  190. if err := ctx.BindQuery(&in); err != nil {
  191. return err
  192. }
  193. http.SetOperation(ctx, "/api.partner.Partner/CheckPhoneCode")
  194. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  195. return srv.CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))
  196. })
  197. out, err := h(ctx, &in)
  198. if err != nil {
  199. return err
  200. }
  201. success := &reply.SuccessReply{
  202. Code: 0,
  203. }
  204. if out != nil {
  205. success.Data = out
  206. }
  207. return ctx.Result(200, success)
  208. }
  209. }
  210. func _Partner_UpdatePartnerInformation0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  211. return func(ctx http.Context) error {
  212. var in common.UpdateInformationRequest
  213. if err := ctx.Bind(&in); err != nil {
  214. return err
  215. }
  216. if err := ctx.BindQuery(&in); err != nil {
  217. return err
  218. }
  219. http.SetOperation(ctx, "/api.partner.Partner/UpdatePartnerInformation")
  220. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  221. return srv.UpdatePartnerInformation(ctx, req.(*common.UpdateInformationRequest))
  222. })
  223. out, err := h(ctx, &in)
  224. if err != nil {
  225. return err
  226. }
  227. success := &reply.SuccessReply{
  228. Code: 0,
  229. }
  230. if out != nil {
  231. success.Data = out
  232. }
  233. return ctx.Result(200, success)
  234. }
  235. }
  236. func _Partner_CreateUserPartnerRoom0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  237. return func(ctx http.Context) error {
  238. var in common.CreateChatRoomParam
  239. if err := ctx.Bind(&in); err != nil {
  240. return err
  241. }
  242. if err := ctx.BindQuery(&in); err != nil {
  243. return err
  244. }
  245. http.SetOperation(ctx, "/api.partner.Partner/CreateUserPartnerRoom")
  246. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  247. return srv.CreateUserPartnerRoom(ctx, req.(*common.CreateChatRoomParam))
  248. })
  249. out, err := h(ctx, &in)
  250. if err != nil {
  251. return err
  252. }
  253. success := &reply.SuccessReply{
  254. Code: 0,
  255. }
  256. if out != nil {
  257. success.Data = out
  258. }
  259. return ctx.Result(200, success)
  260. }
  261. }
  262. func _Partner_GetPartnerBalance0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  263. return func(ctx http.Context) error {
  264. var in emptypb.Empty
  265. if err := ctx.Bind(&in); err != nil {
  266. return err
  267. }
  268. if err := ctx.BindQuery(&in); err != nil {
  269. return err
  270. }
  271. http.SetOperation(ctx, "/api.partner.Partner/GetPartnerBalance")
  272. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  273. return srv.GetPartnerBalance(ctx, req.(*emptypb.Empty))
  274. })
  275. out, err := h(ctx, &in)
  276. if err != nil {
  277. return err
  278. }
  279. success := &reply.SuccessReply{
  280. Code: 0,
  281. }
  282. if out != nil {
  283. success.Data = out
  284. }
  285. return ctx.Result(200, success)
  286. }
  287. }
  288. func _Partner_PartnerGetHomeInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  289. return func(ctx http.Context) error {
  290. var in common.PersonParam
  291. if err := ctx.Bind(&in); err != nil {
  292. return err
  293. }
  294. if err := ctx.BindQuery(&in); err != nil {
  295. return err
  296. }
  297. http.SetOperation(ctx, "/api.partner.Partner/PartnerGetHomeInfo")
  298. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  299. return srv.PartnerGetHomeInfo(ctx, req.(*common.PersonParam))
  300. })
  301. out, err := h(ctx, &in)
  302. if err != nil {
  303. return err
  304. }
  305. success := &reply.SuccessReply{
  306. Code: 0,
  307. }
  308. if out != nil {
  309. success.Data = out
  310. }
  311. return ctx.Result(200, success)
  312. }
  313. }
  314. func _Partner_PartnerGetPersonLikedAndLooked0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  315. return func(ctx http.Context) error {
  316. var in common.PersonParam
  317. if err := ctx.Bind(&in); err != nil {
  318. return err
  319. }
  320. if err := ctx.BindQuery(&in); err != nil {
  321. return err
  322. }
  323. http.SetOperation(ctx, "/api.partner.Partner/PartnerGetPersonLikedAndLooked")
  324. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  325. return srv.PartnerGetPersonLikedAndLooked(ctx, req.(*common.PersonParam))
  326. })
  327. out, err := h(ctx, &in)
  328. if err != nil {
  329. return err
  330. }
  331. success := &reply.SuccessReply{
  332. Code: 0,
  333. }
  334. if out != nil {
  335. success.Data = out
  336. }
  337. return ctx.Result(200, success)
  338. }
  339. }
  340. func _Partner_FindLookList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  341. return func(ctx http.Context) error {
  342. var in common.ListPageRequest
  343. if err := ctx.Bind(&in); err != nil {
  344. return err
  345. }
  346. if err := ctx.BindQuery(&in); err != nil {
  347. return err
  348. }
  349. http.SetOperation(ctx, "/api.partner.Partner/FindLookList")
  350. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  351. return srv.FindLookList(ctx, req.(*common.ListPageRequest))
  352. })
  353. out, err := h(ctx, &in)
  354. if err != nil {
  355. return err
  356. }
  357. success := &reply.SuccessReply{
  358. Code: 0,
  359. }
  360. if out != nil {
  361. success.Data = out
  362. }
  363. return ctx.Result(200, success)
  364. }
  365. }
  366. func _Partner_WxConf0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  367. return func(ctx http.Context) error {
  368. var in common.WxConfReq
  369. if err := ctx.Bind(&in); err != nil {
  370. return err
  371. }
  372. if err := ctx.BindQuery(&in); err != nil {
  373. return err
  374. }
  375. http.SetOperation(ctx, "/api.partner.Partner/WxConf")
  376. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  377. return srv.WxConf(ctx, req.(*common.WxConfReq))
  378. })
  379. out, err := h(ctx, &in)
  380. if err != nil {
  381. return err
  382. }
  383. success := &reply.SuccessReply{
  384. Code: 0,
  385. }
  386. if out != nil {
  387. success.Data = out
  388. }
  389. return ctx.Result(200, success)
  390. }
  391. }
  392. func _Partner_FindTagListBySex0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  393. return func(ctx http.Context) error {
  394. var in common.SexReq
  395. if err := ctx.Bind(&in); err != nil {
  396. return err
  397. }
  398. if err := ctx.BindQuery(&in); err != nil {
  399. return err
  400. }
  401. http.SetOperation(ctx, "/api.partner.Partner/FindTagListBySex")
  402. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  403. return srv.FindTagListBySex(ctx, req.(*common.SexReq))
  404. })
  405. out, err := h(ctx, &in)
  406. if err != nil {
  407. return err
  408. }
  409. success := &reply.SuccessReply{
  410. Code: 0,
  411. }
  412. if out != nil {
  413. success.Data = out
  414. }
  415. return ctx.Result(200, success)
  416. }
  417. }
  418. func _Partner_FindOnlineList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  419. return func(ctx http.Context) error {
  420. var in common.ListPage2Request
  421. if err := ctx.Bind(&in); err != nil {
  422. return err
  423. }
  424. if err := ctx.BindQuery(&in); err != nil {
  425. return err
  426. }
  427. http.SetOperation(ctx, "/api.partner.Partner/FindOnlineList")
  428. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  429. return srv.FindOnlineList(ctx, req.(*common.ListPage2Request))
  430. })
  431. out, err := h(ctx, &in)
  432. if err != nil {
  433. return err
  434. }
  435. success := &reply.SuccessReply{
  436. Code: 0,
  437. }
  438. if out != nil {
  439. success.Data = out
  440. }
  441. return ctx.Result(200, success)
  442. }
  443. }
  444. func _Partner_FindWithinSevenDayRoomList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  445. return func(ctx http.Context) error {
  446. var in common.ListPageRequest
  447. if err := ctx.Bind(&in); err != nil {
  448. return err
  449. }
  450. if err := ctx.BindQuery(&in); err != nil {
  451. return err
  452. }
  453. http.SetOperation(ctx, "/api.partner.Partner/FindWithinSevenDayRoomList")
  454. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  455. return srv.FindWithinSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  456. })
  457. out, err := h(ctx, &in)
  458. if err != nil {
  459. return err
  460. }
  461. success := &reply.SuccessReply{
  462. Code: 0,
  463. }
  464. if out != nil {
  465. success.Data = out
  466. }
  467. return ctx.Result(200, success)
  468. }
  469. }
  470. func _Partner_FindOverSevenDayRoomList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  471. return func(ctx http.Context) error {
  472. var in common.ListPageRequest
  473. if err := ctx.Bind(&in); err != nil {
  474. return err
  475. }
  476. if err := ctx.BindQuery(&in); err != nil {
  477. return err
  478. }
  479. http.SetOperation(ctx, "/api.partner.Partner/FindOverSevenDayRoomList")
  480. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  481. return srv.FindOverSevenDayRoomList(ctx, req.(*common.ListPageRequest))
  482. })
  483. out, err := h(ctx, &in)
  484. if err != nil {
  485. return err
  486. }
  487. success := &reply.SuccessReply{
  488. Code: 0,
  489. }
  490. if out != nil {
  491. success.Data = out
  492. }
  493. return ctx.Result(200, success)
  494. }
  495. }
  496. func _Partner_FindChatRecordList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  497. return func(ctx http.Context) error {
  498. var in common.FindChatRecordListRequest
  499. if err := ctx.Bind(&in); err != nil {
  500. return err
  501. }
  502. if err := ctx.BindQuery(&in); err != nil {
  503. return err
  504. }
  505. http.SetOperation(ctx, "/api.partner.Partner/FindChatRecordList")
  506. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  507. return srv.FindChatRecordList(ctx, req.(*common.FindChatRecordListRequest))
  508. })
  509. out, err := h(ctx, &in)
  510. if err != nil {
  511. return err
  512. }
  513. success := &reply.SuccessReply{
  514. Code: 0,
  515. }
  516. if out != nil {
  517. success.Data = out
  518. }
  519. return ctx.Result(200, success)
  520. }
  521. }
  522. func _Partner_FindChatRoomMsg0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  523. return func(ctx http.Context) error {
  524. var in common.FindChatRoomMsgRequest
  525. if err := ctx.Bind(&in); err != nil {
  526. return err
  527. }
  528. if err := ctx.BindQuery(&in); err != nil {
  529. return err
  530. }
  531. http.SetOperation(ctx, "/api.partner.Partner/FindChatRoomMsg")
  532. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  533. return srv.FindChatRoomMsg(ctx, req.(*common.FindChatRoomMsgRequest))
  534. })
  535. out, err := h(ctx, &in)
  536. if err != nil {
  537. return err
  538. }
  539. success := &reply.SuccessReply{
  540. Code: 0,
  541. }
  542. if out != nil {
  543. success.Data = out
  544. }
  545. return ctx.Result(200, success)
  546. }
  547. }
  548. func _Partner_GetPartnerIsLike0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  549. return func(ctx http.Context) error {
  550. var in common.PersonParam
  551. if err := ctx.Bind(&in); err != nil {
  552. return err
  553. }
  554. if err := ctx.BindQuery(&in); err != nil {
  555. return err
  556. }
  557. http.SetOperation(ctx, "/api.partner.Partner/GetPartnerIsLike")
  558. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  559. return srv.GetPartnerIsLike(ctx, req.(*common.PersonParam))
  560. })
  561. out, err := h(ctx, &in)
  562. if err != nil {
  563. return err
  564. }
  565. success := &reply.SuccessReply{
  566. Code: 0,
  567. }
  568. if out != nil {
  569. success.Data = out
  570. }
  571. return ctx.Result(200, success)
  572. }
  573. }
  574. func _Partner_FindMemeByType0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  575. return func(ctx http.Context) error {
  576. var in common.MemeRequest
  577. if err := ctx.Bind(&in); err != nil {
  578. return err
  579. }
  580. if err := ctx.BindQuery(&in); err != nil {
  581. return err
  582. }
  583. http.SetOperation(ctx, "/api.partner.Partner/FindMemeByType")
  584. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  585. return srv.FindMemeByType(ctx, req.(*common.MemeRequest))
  586. })
  587. out, err := h(ctx, &in)
  588. if err != nil {
  589. return err
  590. }
  591. success := &reply.SuccessReply{
  592. Code: 0,
  593. }
  594. if out != nil {
  595. success.Data = out
  596. }
  597. return ctx.Result(200, success)
  598. }
  599. }
  600. func _Partner_FindChatTopic0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  601. return func(ctx http.Context) error {
  602. var in common.FindChatTopicRequest
  603. if err := ctx.Bind(&in); err != nil {
  604. return err
  605. }
  606. if err := ctx.BindQuery(&in); err != nil {
  607. return err
  608. }
  609. http.SetOperation(ctx, "/api.partner.Partner/FindChatTopic")
  610. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  611. return srv.FindChatTopic(ctx, req.(*common.FindChatTopicRequest))
  612. })
  613. out, err := h(ctx, &in)
  614. if err != nil {
  615. return err
  616. }
  617. success := &reply.SuccessReply{
  618. Code: 0,
  619. }
  620. if out != nil {
  621. success.Data = out
  622. }
  623. return ctx.Result(200, success)
  624. }
  625. }
  626. func _Partner_RandomMeme0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  627. return func(ctx http.Context) error {
  628. var in common.RandomNum
  629. if err := ctx.Bind(&in); err != nil {
  630. return err
  631. }
  632. if err := ctx.BindQuery(&in); err != nil {
  633. return err
  634. }
  635. http.SetOperation(ctx, "/api.partner.Partner/RandomMeme")
  636. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  637. return srv.RandomMeme(ctx, req.(*common.RandomNum))
  638. })
  639. out, err := h(ctx, &in)
  640. if err != nil {
  641. return err
  642. }
  643. success := &reply.SuccessReply{
  644. Code: 0,
  645. }
  646. if out != nil {
  647. success.Data = out
  648. }
  649. return ctx.Result(200, success)
  650. }
  651. }
  652. func _Partner_RandomSwiftMessage0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  653. return func(ctx http.Context) error {
  654. var in common.RandomNumAndSex
  655. if err := ctx.Bind(&in); err != nil {
  656. return err
  657. }
  658. if err := ctx.BindQuery(&in); err != nil {
  659. return err
  660. }
  661. http.SetOperation(ctx, "/api.partner.Partner/RandomSwiftMessage")
  662. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  663. return srv.RandomSwiftMessage(ctx, req.(*common.RandomNumAndSex))
  664. })
  665. out, err := h(ctx, &in)
  666. if err != nil {
  667. return err
  668. }
  669. success := &reply.SuccessReply{
  670. Code: 0,
  671. }
  672. if out != nil {
  673. success.Data = out
  674. }
  675. return ctx.Result(200, success)
  676. }
  677. }
  678. func _Partner_FindMemeTitle0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  679. return func(ctx http.Context) error {
  680. var in emptypb.Empty
  681. if err := ctx.Bind(&in); err != nil {
  682. return err
  683. }
  684. if err := ctx.BindQuery(&in); err != nil {
  685. return err
  686. }
  687. http.SetOperation(ctx, "/api.partner.Partner/FindMemeTitle")
  688. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  689. return srv.FindMemeTitle(ctx, req.(*emptypb.Empty))
  690. })
  691. out, err := h(ctx, &in)
  692. if err != nil {
  693. return err
  694. }
  695. success := &reply.SuccessReply{
  696. Code: 0,
  697. }
  698. if out != nil {
  699. success.Data = out
  700. }
  701. return ctx.Result(200, success)
  702. }
  703. }
  704. func _Partner_PartnerGetChatCard0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  705. return func(ctx http.Context) error {
  706. var in common.PersonParam
  707. if err := ctx.Bind(&in); err != nil {
  708. return err
  709. }
  710. if err := ctx.BindQuery(&in); err != nil {
  711. return err
  712. }
  713. http.SetOperation(ctx, "/api.partner.Partner/PartnerGetChatCard")
  714. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  715. return srv.PartnerGetChatCard(ctx, req.(*common.PersonParam))
  716. })
  717. out, err := h(ctx, &in)
  718. if err != nil {
  719. return err
  720. }
  721. success := &reply.SuccessReply{
  722. Code: 0,
  723. }
  724. if out != nil {
  725. success.Data = out
  726. }
  727. return ctx.Result(200, success)
  728. }
  729. }
  730. func _Partner_FindChatTopicTitle0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  731. return func(ctx http.Context) error {
  732. var in emptypb.Empty
  733. if err := ctx.Bind(&in); err != nil {
  734. return err
  735. }
  736. if err := ctx.BindQuery(&in); err != nil {
  737. return err
  738. }
  739. http.SetOperation(ctx, "/api.partner.Partner/FindChatTopicTitle")
  740. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  741. return srv.FindChatTopicTitle(ctx, req.(*emptypb.Empty))
  742. })
  743. out, err := h(ctx, &in)
  744. if err != nil {
  745. return err
  746. }
  747. success := &reply.SuccessReply{
  748. Code: 0,
  749. }
  750. if out != nil {
  751. success.Data = out
  752. }
  753. return ctx.Result(200, success)
  754. }
  755. }
  756. func _Partner_PartnerLike0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  757. return func(ctx http.Context) error {
  758. var in common.PersonParam
  759. if err := ctx.Bind(&in); err != nil {
  760. return err
  761. }
  762. if err := ctx.BindQuery(&in); err != nil {
  763. return err
  764. }
  765. http.SetOperation(ctx, "/api.partner.Partner/PartnerLike")
  766. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  767. return srv.PartnerLike(ctx, req.(*common.PersonParam))
  768. })
  769. out, err := h(ctx, &in)
  770. if err != nil {
  771. return err
  772. }
  773. success := &reply.SuccessReply{
  774. Code: 0,
  775. }
  776. if out != nil {
  777. success.Data = out
  778. }
  779. return ctx.Result(200, success)
  780. }
  781. }
  782. func _Partner_PartnerUnLike0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  783. return func(ctx http.Context) error {
  784. var in common.PersonParam
  785. if err := ctx.Bind(&in); err != nil {
  786. return err
  787. }
  788. if err := ctx.BindQuery(&in); err != nil {
  789. return err
  790. }
  791. http.SetOperation(ctx, "/api.partner.Partner/PartnerUnLike")
  792. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  793. return srv.PartnerUnLike(ctx, req.(*common.PersonParam))
  794. })
  795. out, err := h(ctx, &in)
  796. if err != nil {
  797. return err
  798. }
  799. success := &reply.SuccessReply{
  800. Code: 0,
  801. }
  802. if out != nil {
  803. success.Data = out
  804. }
  805. return ctx.Result(200, success)
  806. }
  807. }
  808. func _Partner_Report0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  809. return func(ctx http.Context) error {
  810. var in common.ReportChatRequest
  811. if err := ctx.Bind(&in); err != nil {
  812. return err
  813. }
  814. if err := ctx.BindQuery(&in); err != nil {
  815. return err
  816. }
  817. http.SetOperation(ctx, "/api.partner.Partner/Report")
  818. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  819. return srv.Report(ctx, req.(*common.ReportChatRequest))
  820. })
  821. out, err := h(ctx, &in)
  822. if err != nil {
  823. return err
  824. }
  825. success := &reply.SuccessReply{
  826. Code: 0,
  827. }
  828. if out != nil {
  829. success.Data = out
  830. }
  831. return ctx.Result(200, success)
  832. }
  833. }
  834. func _Partner_FindOverSevenDayAvatar0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  835. return func(ctx http.Context) error {
  836. var in emptypb.Empty
  837. if err := ctx.Bind(&in); err != nil {
  838. return err
  839. }
  840. if err := ctx.BindQuery(&in); err != nil {
  841. return err
  842. }
  843. http.SetOperation(ctx, "/api.partner.Partner/FindOverSevenDayAvatar")
  844. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  845. return srv.FindOverSevenDayAvatar(ctx, req.(*emptypb.Empty))
  846. })
  847. out, err := h(ctx, &in)
  848. if err != nil {
  849. return err
  850. }
  851. success := &reply.SuccessReply{
  852. Code: 0,
  853. }
  854. if out != nil {
  855. success.Data = out
  856. }
  857. return ctx.Result(200, success)
  858. }
  859. }
  860. func _Partner_UpdateLastScripID0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  861. return func(ctx http.Context) error {
  862. var in common.UpdateLastScripIDRequest
  863. if err := ctx.Bind(&in); err != nil {
  864. return err
  865. }
  866. if err := ctx.BindQuery(&in); err != nil {
  867. return err
  868. }
  869. http.SetOperation(ctx, "/api.partner.Partner/UpdateLastScripID")
  870. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  871. return srv.UpdateLastScripID(ctx, req.(*common.UpdateLastScripIDRequest))
  872. })
  873. out, err := h(ctx, &in)
  874. if err != nil {
  875. return err
  876. }
  877. success := &reply.SuccessReply{
  878. Code: 0,
  879. }
  880. if out != nil {
  881. success.Data = out
  882. }
  883. return ctx.Result(200, success)
  884. }
  885. }
  886. func _Partner_CreateScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  887. return func(ctx http.Context) error {
  888. var in CreateScripRequest
  889. if err := ctx.Bind(&in); err != nil {
  890. return err
  891. }
  892. if err := ctx.BindQuery(&in); err != nil {
  893. return err
  894. }
  895. http.SetOperation(ctx, "/api.partner.Partner/CreateScrip")
  896. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  897. return srv.CreateScrip(ctx, req.(*CreateScripRequest))
  898. })
  899. out, err := h(ctx, &in)
  900. if err != nil {
  901. return err
  902. }
  903. success := &reply.SuccessReply{
  904. Code: 0,
  905. }
  906. if out != nil {
  907. success.Data = out
  908. }
  909. return ctx.Result(200, success)
  910. }
  911. }
  912. func _Partner_DeleteScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  913. return func(ctx http.Context) error {
  914. var in common.ScripIdRequest
  915. if err := ctx.Bind(&in); err != nil {
  916. return err
  917. }
  918. if err := ctx.BindQuery(&in); err != nil {
  919. return err
  920. }
  921. http.SetOperation(ctx, "/api.partner.Partner/DeleteScrip")
  922. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  923. return srv.DeleteScrip(ctx, req.(*common.ScripIdRequest))
  924. })
  925. out, err := h(ctx, &in)
  926. if err != nil {
  927. return err
  928. }
  929. success := &reply.SuccessReply{
  930. Code: 0,
  931. }
  932. if out != nil {
  933. success.Data = out
  934. }
  935. return ctx.Result(200, success)
  936. }
  937. }
  938. func _Partner_FindMyScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  939. return func(ctx http.Context) error {
  940. var in common.ListPageRequest
  941. if err := ctx.Bind(&in); err != nil {
  942. return err
  943. }
  944. if err := ctx.BindQuery(&in); err != nil {
  945. return err
  946. }
  947. http.SetOperation(ctx, "/api.partner.Partner/FindMyScrip")
  948. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  949. return srv.FindMyScrip(ctx, req.(*common.ListPageRequest))
  950. })
  951. out, err := h(ctx, &in)
  952. if err != nil {
  953. return err
  954. }
  955. success := &reply.SuccessReply{
  956. Code: 0,
  957. }
  958. if out != nil {
  959. success.Data = out
  960. }
  961. return ctx.Result(200, success)
  962. }
  963. }
  964. func _Partner_FindOtherScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  965. return func(ctx http.Context) error {
  966. var in common.FindScripRequest
  967. if err := ctx.Bind(&in); err != nil {
  968. return err
  969. }
  970. if err := ctx.BindQuery(&in); err != nil {
  971. return err
  972. }
  973. http.SetOperation(ctx, "/api.partner.Partner/FindOtherScrip")
  974. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  975. return srv.FindOtherScrip(ctx, req.(*common.FindScripRequest))
  976. })
  977. out, err := h(ctx, &in)
  978. if err != nil {
  979. return err
  980. }
  981. success := &reply.SuccessReply{
  982. Code: 0,
  983. }
  984. if out != nil {
  985. success.Data = out
  986. }
  987. return ctx.Result(200, success)
  988. }
  989. }
  990. func _Partner_FindRecommendScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  991. return func(ctx http.Context) error {
  992. var in common.ListPageRequest
  993. if err := ctx.Bind(&in); err != nil {
  994. return err
  995. }
  996. if err := ctx.BindQuery(&in); err != nil {
  997. return err
  998. }
  999. http.SetOperation(ctx, "/api.partner.Partner/FindRecommendScrip")
  1000. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1001. return srv.FindRecommendScrip(ctx, req.(*common.ListPageRequest))
  1002. })
  1003. out, err := h(ctx, &in)
  1004. if err != nil {
  1005. return err
  1006. }
  1007. success := &reply.SuccessReply{
  1008. Code: 0,
  1009. }
  1010. if out != nil {
  1011. success.Data = out
  1012. }
  1013. return ctx.Result(200, success)
  1014. }
  1015. }
  1016. func _Partner_PersonLookScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1017. return func(ctx http.Context) error {
  1018. var in common.ScripIdRequest
  1019. if err := ctx.Bind(&in); err != nil {
  1020. return err
  1021. }
  1022. if err := ctx.BindQuery(&in); err != nil {
  1023. return err
  1024. }
  1025. http.SetOperation(ctx, "/api.partner.Partner/PersonLookScrip")
  1026. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1027. return srv.PersonLookScrip(ctx, req.(*common.ScripIdRequest))
  1028. })
  1029. out, err := h(ctx, &in)
  1030. if err != nil {
  1031. return err
  1032. }
  1033. success := &reply.SuccessReply{
  1034. Code: 0,
  1035. }
  1036. if out != nil {
  1037. success.Data = out
  1038. }
  1039. return ctx.Result(200, success)
  1040. }
  1041. }
  1042. func _Partner_PersonClickLookBack0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1043. return func(ctx http.Context) error {
  1044. var in emptypb.Empty
  1045. if err := ctx.Bind(&in); err != nil {
  1046. return err
  1047. }
  1048. if err := ctx.BindQuery(&in); err != nil {
  1049. return err
  1050. }
  1051. http.SetOperation(ctx, "/api.partner.Partner/PersonClickLookBack")
  1052. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1053. return srv.PersonClickLookBack(ctx, req.(*emptypb.Empty))
  1054. })
  1055. out, err := h(ctx, &in)
  1056. if err != nil {
  1057. return err
  1058. }
  1059. success := &reply.SuccessReply{
  1060. Code: 0,
  1061. }
  1062. if out != nil {
  1063. success.Data = out
  1064. }
  1065. return ctx.Result(200, success)
  1066. }
  1067. }
  1068. func _Partner_PersonReplyScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1069. return func(ctx http.Context) error {
  1070. var in ReplyScripRequest
  1071. if err := ctx.Bind(&in); err != nil {
  1072. return err
  1073. }
  1074. if err := ctx.BindQuery(&in); err != nil {
  1075. return err
  1076. }
  1077. http.SetOperation(ctx, "/api.partner.Partner/PersonReplyScrip")
  1078. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1079. return srv.PersonReplyScrip(ctx, req.(*ReplyScripRequest))
  1080. })
  1081. out, err := h(ctx, &in)
  1082. if err != nil {
  1083. return err
  1084. }
  1085. success := &reply.SuccessReply{
  1086. Code: 0,
  1087. }
  1088. if out != nil {
  1089. success.Data = out
  1090. }
  1091. return ctx.Result(200, success)
  1092. }
  1093. }
  1094. func _Partner_PartnerCollect0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1095. return func(ctx http.Context) error {
  1096. var in PartnerCollectRequest
  1097. if err := ctx.Bind(&in); err != nil {
  1098. return err
  1099. }
  1100. if err := ctx.BindQuery(&in); err != nil {
  1101. return err
  1102. }
  1103. http.SetOperation(ctx, "/api.partner.Partner/PartnerCollect")
  1104. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1105. return srv.PartnerCollect(ctx, req.(*PartnerCollectRequest))
  1106. })
  1107. out, err := h(ctx, &in)
  1108. if err != nil {
  1109. return err
  1110. }
  1111. success := &reply.SuccessReply{
  1112. Code: 0,
  1113. }
  1114. if out != nil {
  1115. success.Data = out
  1116. }
  1117. return ctx.Result(200, success)
  1118. }
  1119. }
  1120. func _Partner_PartnerDeleteCollect0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1121. return func(ctx http.Context) error {
  1122. var in PartnerCollectRequest
  1123. if err := ctx.Bind(&in); err != nil {
  1124. return err
  1125. }
  1126. if err := ctx.BindQuery(&in); err != nil {
  1127. return err
  1128. }
  1129. http.SetOperation(ctx, "/api.partner.Partner/PartnerDeleteCollect")
  1130. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1131. return srv.PartnerDeleteCollect(ctx, req.(*PartnerCollectRequest))
  1132. })
  1133. out, err := h(ctx, &in)
  1134. if err != nil {
  1135. return err
  1136. }
  1137. success := &reply.SuccessReply{
  1138. Code: 0,
  1139. }
  1140. if out != nil {
  1141. success.Data = out
  1142. }
  1143. return ctx.Result(200, success)
  1144. }
  1145. }
  1146. func _Partner_FindChatCollectList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1147. return func(ctx http.Context) error {
  1148. var in common.FindChatRecordListRequest
  1149. if err := ctx.Bind(&in); err != nil {
  1150. return err
  1151. }
  1152. if err := ctx.BindQuery(&in); err != nil {
  1153. return err
  1154. }
  1155. http.SetOperation(ctx, "/api.partner.Partner/FindChatCollectList")
  1156. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1157. return srv.FindChatCollectList(ctx, req.(*common.FindChatRecordListRequest))
  1158. })
  1159. out, err := h(ctx, &in)
  1160. if err != nil {
  1161. return err
  1162. }
  1163. success := &reply.SuccessReply{
  1164. Code: 0,
  1165. }
  1166. if out != nil {
  1167. success.Data = out
  1168. }
  1169. return ctx.Result(200, success)
  1170. }
  1171. }
  1172. func _Partner_GetPartnerMessage0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1173. return func(ctx http.Context) error {
  1174. var in emptypb.Empty
  1175. if err := ctx.Bind(&in); err != nil {
  1176. return err
  1177. }
  1178. if err := ctx.BindQuery(&in); err != nil {
  1179. return err
  1180. }
  1181. http.SetOperation(ctx, "/api.partner.Partner/GetPartnerMessage")
  1182. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1183. return srv.GetPartnerMessage(ctx, req.(*emptypb.Empty))
  1184. })
  1185. out, err := h(ctx, &in)
  1186. if err != nil {
  1187. return err
  1188. }
  1189. success := &reply.SuccessReply{
  1190. Code: 0,
  1191. }
  1192. if out != nil {
  1193. success.Data = out
  1194. }
  1195. return ctx.Result(200, success)
  1196. }
  1197. }
  1198. func _Partner_GetPartnerLookNum0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1199. return func(ctx http.Context) error {
  1200. var in emptypb.Empty
  1201. if err := ctx.Bind(&in); err != nil {
  1202. return err
  1203. }
  1204. if err := ctx.BindQuery(&in); err != nil {
  1205. return err
  1206. }
  1207. http.SetOperation(ctx, "/api.partner.Partner/GetPartnerLookNum")
  1208. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1209. return srv.GetPartnerLookNum(ctx, req.(*emptypb.Empty))
  1210. })
  1211. out, err := h(ctx, &in)
  1212. if err != nil {
  1213. return err
  1214. }
  1215. success := &reply.SuccessReply{
  1216. Code: 0,
  1217. }
  1218. if out != nil {
  1219. success.Data = out
  1220. }
  1221. return ctx.Result(200, success)
  1222. }
  1223. }
  1224. func _Partner_FindUnReplyRoomList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1225. return func(ctx http.Context) error {
  1226. var in common.ListPageRequest
  1227. if err := ctx.Bind(&in); err != nil {
  1228. return err
  1229. }
  1230. if err := ctx.BindQuery(&in); err != nil {
  1231. return err
  1232. }
  1233. http.SetOperation(ctx, "/api.partner.Partner/FindUnReplyRoomList")
  1234. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1235. return srv.FindUnReplyRoomList(ctx, req.(*common.ListPageRequest))
  1236. })
  1237. out, err := h(ctx, &in)
  1238. if err != nil {
  1239. return err
  1240. }
  1241. success := &reply.SuccessReply{
  1242. Code: 0,
  1243. }
  1244. if out != nil {
  1245. success.Data = out
  1246. }
  1247. return ctx.Result(200, success)
  1248. }
  1249. }
  1250. func _Partner_GetLevelBalanceTable0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1251. return func(ctx http.Context) error {
  1252. var in emptypb.Empty
  1253. if err := ctx.Bind(&in); err != nil {
  1254. return err
  1255. }
  1256. if err := ctx.BindQuery(&in); err != nil {
  1257. return err
  1258. }
  1259. http.SetOperation(ctx, "/api.partner.Partner/GetLevelBalanceTable")
  1260. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1261. return srv.GetLevelBalanceTable(ctx, req.(*emptypb.Empty))
  1262. })
  1263. out, err := h(ctx, &in)
  1264. if err != nil {
  1265. return err
  1266. }
  1267. success := &reply.SuccessReply{
  1268. Code: 0,
  1269. }
  1270. if out != nil {
  1271. success.Data = out
  1272. }
  1273. return ctx.Result(200, success)
  1274. }
  1275. }
  1276. func _Partner_PartnerGetAward0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1277. return func(ctx http.Context) error {
  1278. var in PartnerGetAwardRequest
  1279. if err := ctx.Bind(&in); err != nil {
  1280. return err
  1281. }
  1282. if err := ctx.BindQuery(&in); err != nil {
  1283. return err
  1284. }
  1285. http.SetOperation(ctx, "/api.partner.Partner/PartnerGetAward")
  1286. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1287. return srv.PartnerGetAward(ctx, req.(*PartnerGetAwardRequest))
  1288. })
  1289. out, err := h(ctx, &in)
  1290. if err != nil {
  1291. return err
  1292. }
  1293. success := &reply.SuccessReply{
  1294. Code: 0,
  1295. }
  1296. if out != nil {
  1297. success.Data = out
  1298. }
  1299. return ctx.Result(200, success)
  1300. }
  1301. }
  1302. func _Partner_PartnerUpdateWorkingStatus0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1303. return func(ctx http.Context) error {
  1304. var in PartnerUpdateWorkingStatusRequest
  1305. if err := ctx.Bind(&in); err != nil {
  1306. return err
  1307. }
  1308. if err := ctx.BindQuery(&in); err != nil {
  1309. return err
  1310. }
  1311. http.SetOperation(ctx, "/api.partner.Partner/PartnerUpdateWorkingStatus")
  1312. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1313. return srv.PartnerUpdateWorkingStatus(ctx, req.(*PartnerUpdateWorkingStatusRequest))
  1314. })
  1315. out, err := h(ctx, &in)
  1316. if err != nil {
  1317. return err
  1318. }
  1319. success := &reply.SuccessReply{
  1320. Code: 0,
  1321. }
  1322. if out != nil {
  1323. success.Data = out
  1324. }
  1325. return ctx.Result(200, success)
  1326. }
  1327. }
  1328. func _Partner_FindNotReplyNum0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1329. return func(ctx http.Context) error {
  1330. var in emptypb.Empty
  1331. if err := ctx.Bind(&in); err != nil {
  1332. return err
  1333. }
  1334. if err := ctx.BindQuery(&in); err != nil {
  1335. return err
  1336. }
  1337. http.SetOperation(ctx, "/api.partner.Partner/FindNotReplyNum")
  1338. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1339. return srv.FindNotReplyNum(ctx, req.(*emptypb.Empty))
  1340. })
  1341. out, err := h(ctx, &in)
  1342. if err != nil {
  1343. return err
  1344. }
  1345. success := &reply.SuccessReply{
  1346. Code: 0,
  1347. }
  1348. if out != nil {
  1349. success.Data = out
  1350. }
  1351. return ctx.Result(200, success)
  1352. }
  1353. }
  1354. func _Partner_PartnerApplyWithdraw0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1355. return func(ctx http.Context) error {
  1356. var in PartnerApplyWithdrawRequest
  1357. if err := ctx.Bind(&in); err != nil {
  1358. return err
  1359. }
  1360. if err := ctx.BindQuery(&in); err != nil {
  1361. return err
  1362. }
  1363. http.SetOperation(ctx, "/api.partner.Partner/PartnerApplyWithdraw")
  1364. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1365. return srv.PartnerApplyWithdraw(ctx, req.(*PartnerApplyWithdrawRequest))
  1366. })
  1367. out, err := h(ctx, &in)
  1368. if err != nil {
  1369. return err
  1370. }
  1371. success := &reply.SuccessReply{
  1372. Code: 0,
  1373. }
  1374. if out != nil {
  1375. success.Data = out
  1376. }
  1377. return ctx.Result(200, success)
  1378. }
  1379. }
  1380. func _Partner_PartnerWithdrawTemplateList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1381. return func(ctx http.Context) error {
  1382. var in emptypb.Empty
  1383. if err := ctx.Bind(&in); err != nil {
  1384. return err
  1385. }
  1386. if err := ctx.BindQuery(&in); err != nil {
  1387. return err
  1388. }
  1389. http.SetOperation(ctx, "/api.partner.Partner/PartnerWithdrawTemplateList")
  1390. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1391. return srv.PartnerWithdrawTemplateList(ctx, req.(*emptypb.Empty))
  1392. })
  1393. out, err := h(ctx, &in)
  1394. if err != nil {
  1395. return err
  1396. }
  1397. success := &reply.SuccessReply{
  1398. Code: 0,
  1399. }
  1400. if out != nil {
  1401. success.Data = out
  1402. }
  1403. return ctx.Result(200, success)
  1404. }
  1405. }
  1406. func _Partner_PartnerWithdrawRecordList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
  1407. return func(ctx http.Context) error {
  1408. var in common.ListPageRequest
  1409. if err := ctx.Bind(&in); err != nil {
  1410. return err
  1411. }
  1412. if err := ctx.BindQuery(&in); err != nil {
  1413. return err
  1414. }
  1415. http.SetOperation(ctx, "/api.partner.Partner/PartnerWithdrawRecordList")
  1416. h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
  1417. return srv.PartnerWithdrawRecordList(ctx, req.(*common.ListPageRequest))
  1418. })
  1419. out, err := h(ctx, &in)
  1420. if err != nil {
  1421. return err
  1422. }
  1423. success := &reply.SuccessReply{
  1424. Code: 0,
  1425. }
  1426. if out != nil {
  1427. success.Data = out
  1428. }
  1429. return ctx.Result(200, success)
  1430. }
  1431. }
  1432. type PartnerHTTPClient interface {
  1433. CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1434. CreateScrip(ctx context.Context, req *CreateScripRequest, opts ...http.CallOption) (rsp *common.ScripID, err error)
  1435. CreateUserPartnerRoom(ctx context.Context, req *common.CreateChatRoomParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
  1436. DeleteScrip(ctx context.Context, req *common.ScripIdRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1437. FindChatCollectList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
  1438. FindChatRecordList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
  1439. FindChatRoomMsg(ctx context.Context, req *common.FindChatRoomMsgRequest, opts ...http.CallOption) (rsp *common.ChatRoomMsg, err error)
  1440. FindChatTopic(ctx context.Context, req *common.FindChatTopicRequest, opts ...http.CallOption) (rsp *common.ChatTopicList, err error)
  1441. FindChatTopicTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, err error)
  1442. FindLookList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *statistics.LookAndLikeListReply, err error)
  1443. FindMemeByType(ctx context.Context, req *common.MemeRequest, opts ...http.CallOption) (rsp *common.MemeList, err error)
  1444. FindMemeTitle(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.MemeTitleList, err error)
  1445. FindMyScrip(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *common.ScripReply, err error)
  1446. FindNotReplyNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *chat.FindNotReplyNumReply, err error)
  1447. FindOnlineList(ctx context.Context, req *common.ListPage2Request, opts ...http.CallOption) (rsp *common.RecommendPersonListReply, err error)
  1448. FindOtherScrip(ctx context.Context, req *common.FindScripRequest, opts ...http.CallOption) (rsp *common.ScripReply, err error)
  1449. FindOverSevenDayAvatar(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.FindOverSevenDayAvatarReply, err error)
  1450. FindOverSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
  1451. FindRecommendScrip(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *common.ScripReply, err error)
  1452. FindTagListBySex(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *common.TagListReply, err error)
  1453. FindUnReplyRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
  1454. FindWithinSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
  1455. GetLevelBalanceTable(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *LevelTable, err error)
  1456. GetPartnerBalance(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerBalance, err error)
  1457. GetPartnerInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerInfo, err error)
  1458. GetPartnerIsLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.IsLike, err error)
  1459. GetPartnerLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
  1460. GetPartnerMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerMessage, err error)
  1461. PartnerApplyWithdraw(ctx context.Context, req *PartnerApplyWithdrawRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1462. PartnerCollect(ctx context.Context, req *PartnerCollectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1463. PartnerDeleteCollect(ctx context.Context, req *PartnerCollectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1464. PartnerGetAward(ctx context.Context, req *PartnerGetAwardRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1465. PartnerGetChatCard(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.PartnerChatCardInfo, err error)
  1466. PartnerGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
  1467. PartnerGetPersonLikedAndLooked(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.LookedAndLikedNum, err error)
  1468. PartnerLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1469. PartnerUnLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1470. PartnerUpdateWorkingStatus(ctx context.Context, req *PartnerUpdateWorkingStatusRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1471. PartnerWithdrawRecordList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *PartnerWithdrawRecordListReply, err error)
  1472. PartnerWithdrawTemplateList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerWithdrawTemplateListReply, err error)
  1473. PersonClickLookBack(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *common.ScripInfo, err error)
  1474. PersonLookScrip(ctx context.Context, req *common.ScripIdRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1475. PersonReplyScrip(ctx context.Context, req *ReplyScripRequest, opts ...http.CallOption) (rsp *common.ChatRecordInfo, err error)
  1476. RandomMeme(ctx context.Context, req *common.RandomNum, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
  1477. RandomSwiftMessage(ctx context.Context, req *common.RandomNumAndSex, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
  1478. Report(ctx context.Context, req *common.ReportChatRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1479. SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1480. UpdateLastScripID(ctx context.Context, req *common.UpdateLastScripIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1481. UpdatePartnerInformation(ctx context.Context, req *common.UpdateInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
  1482. WxConf(ctx context.Context, req *common.WxConfReq, opts ...http.CallOption) (rsp *common.WxConfResponse, err error)
  1483. }
  1484. type PartnerHTTPClientImpl struct {
  1485. cc *http.Client
  1486. }
  1487. func NewPartnerHTTPClient(client *http.Client) PartnerHTTPClient {
  1488. return &PartnerHTTPClientImpl{client}
  1489. }
  1490. func (c *PartnerHTTPClientImpl) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1491. var out emptypb.Empty
  1492. pattern := "/api/partner/code/check"
  1493. path := binding.EncodeURL(pattern, in, false)
  1494. opts = append(opts, http.Operation("/api.partner.Partner/CheckPhoneCode"))
  1495. opts = append(opts, http.PathTemplate(pattern))
  1496. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1497. if err != nil {
  1498. return nil, err
  1499. }
  1500. return &out, err
  1501. }
  1502. func (c *PartnerHTTPClientImpl) CreateScrip(ctx context.Context, in *CreateScripRequest, opts ...http.CallOption) (*common.ScripID, error) {
  1503. var out common.ScripID
  1504. pattern := "/api/partner/scrip/create"
  1505. path := binding.EncodeURL(pattern, in, false)
  1506. opts = append(opts, http.Operation("/api.partner.Partner/CreateScrip"))
  1507. opts = append(opts, http.PathTemplate(pattern))
  1508. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1509. if err != nil {
  1510. return nil, err
  1511. }
  1512. return &out, err
  1513. }
  1514. func (c *PartnerHTTPClientImpl) CreateUserPartnerRoom(ctx context.Context, in *common.CreateChatRoomParam, opts ...http.CallOption) (*chat.RoomReply, error) {
  1515. var out chat.RoomReply
  1516. pattern := "/api/partner/create/room"
  1517. path := binding.EncodeURL(pattern, in, false)
  1518. opts = append(opts, http.Operation("/api.partner.Partner/CreateUserPartnerRoom"))
  1519. opts = append(opts, http.PathTemplate(pattern))
  1520. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1521. if err != nil {
  1522. return nil, err
  1523. }
  1524. return &out, err
  1525. }
  1526. func (c *PartnerHTTPClientImpl) DeleteScrip(ctx context.Context, in *common.ScripIdRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1527. var out emptypb.Empty
  1528. pattern := "/api/partner/scrip/delete"
  1529. path := binding.EncodeURL(pattern, in, false)
  1530. opts = append(opts, http.Operation("/api.partner.Partner/DeleteScrip"))
  1531. opts = append(opts, http.PathTemplate(pattern))
  1532. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1533. if err != nil {
  1534. return nil, err
  1535. }
  1536. return &out, err
  1537. }
  1538. func (c *PartnerHTTPClientImpl) FindChatCollectList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...http.CallOption) (*common.ChatRecordListReply, error) {
  1539. var out common.ChatRecordListReply
  1540. pattern := "/api/partner/collect/list"
  1541. path := binding.EncodeURL(pattern, in, false)
  1542. opts = append(opts, http.Operation("/api.partner.Partner/FindChatCollectList"))
  1543. opts = append(opts, http.PathTemplate(pattern))
  1544. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1545. if err != nil {
  1546. return nil, err
  1547. }
  1548. return &out, err
  1549. }
  1550. func (c *PartnerHTTPClientImpl) FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...http.CallOption) (*common.ChatRecordListReply, error) {
  1551. var out common.ChatRecordListReply
  1552. pattern := "/api/partner/chat/record"
  1553. path := binding.EncodeURL(pattern, in, false)
  1554. opts = append(opts, http.Operation("/api.partner.Partner/FindChatRecordList"))
  1555. opts = append(opts, http.PathTemplate(pattern))
  1556. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1557. if err != nil {
  1558. return nil, err
  1559. }
  1560. return &out, err
  1561. }
  1562. func (c *PartnerHTTPClientImpl) FindChatRoomMsg(ctx context.Context, in *common.FindChatRoomMsgRequest, opts ...http.CallOption) (*common.ChatRoomMsg, error) {
  1563. var out common.ChatRoomMsg
  1564. pattern := "/api/partner/chat/room/msg"
  1565. path := binding.EncodeURL(pattern, in, false)
  1566. opts = append(opts, http.Operation("/api.partner.Partner/FindChatRoomMsg"))
  1567. opts = append(opts, http.PathTemplate(pattern))
  1568. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1569. if err != nil {
  1570. return nil, err
  1571. }
  1572. return &out, err
  1573. }
  1574. func (c *PartnerHTTPClientImpl) FindChatTopic(ctx context.Context, in *common.FindChatTopicRequest, opts ...http.CallOption) (*common.ChatTopicList, error) {
  1575. var out common.ChatTopicList
  1576. pattern := "/api/partner/find/topic"
  1577. path := binding.EncodeURL(pattern, in, false)
  1578. opts = append(opts, http.Operation("/api.partner.Partner/FindChatTopic"))
  1579. opts = append(opts, http.PathTemplate(pattern))
  1580. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1581. if err != nil {
  1582. return nil, err
  1583. }
  1584. return &out, err
  1585. }
  1586. func (c *PartnerHTTPClientImpl) FindChatTopicTitle(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.MemeTitleList, error) {
  1587. var out common.MemeTitleList
  1588. pattern := "/api/partner/find/chat/title"
  1589. path := binding.EncodeURL(pattern, in, false)
  1590. opts = append(opts, http.Operation("/api.partner.Partner/FindChatTopicTitle"))
  1591. opts = append(opts, http.PathTemplate(pattern))
  1592. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1593. if err != nil {
  1594. return nil, err
  1595. }
  1596. return &out, err
  1597. }
  1598. func (c *PartnerHTTPClientImpl) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*statistics.LookAndLikeListReply, error) {
  1599. var out statistics.LookAndLikeListReply
  1600. pattern := "/api/partner/list/look"
  1601. path := binding.EncodeURL(pattern, in, false)
  1602. opts = append(opts, http.Operation("/api.partner.Partner/FindLookList"))
  1603. opts = append(opts, http.PathTemplate(pattern))
  1604. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1605. if err != nil {
  1606. return nil, err
  1607. }
  1608. return &out, err
  1609. }
  1610. func (c *PartnerHTTPClientImpl) FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...http.CallOption) (*common.MemeList, error) {
  1611. var out common.MemeList
  1612. pattern := "/api/partner/find/meme/type"
  1613. path := binding.EncodeURL(pattern, in, false)
  1614. opts = append(opts, http.Operation("/api.partner.Partner/FindMemeByType"))
  1615. opts = append(opts, http.PathTemplate(pattern))
  1616. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1617. if err != nil {
  1618. return nil, err
  1619. }
  1620. return &out, err
  1621. }
  1622. func (c *PartnerHTTPClientImpl) FindMemeTitle(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.MemeTitleList, error) {
  1623. var out common.MemeTitleList
  1624. pattern := "/api/partner/find/meme/title"
  1625. path := binding.EncodeURL(pattern, in, false)
  1626. opts = append(opts, http.Operation("/api.partner.Partner/FindMemeTitle"))
  1627. opts = append(opts, http.PathTemplate(pattern))
  1628. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1629. if err != nil {
  1630. return nil, err
  1631. }
  1632. return &out, err
  1633. }
  1634. func (c *PartnerHTTPClientImpl) FindMyScrip(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*common.ScripReply, error) {
  1635. var out common.ScripReply
  1636. pattern := "/api/partner/scrip/find/self"
  1637. path := binding.EncodeURL(pattern, in, false)
  1638. opts = append(opts, http.Operation("/api.partner.Partner/FindMyScrip"))
  1639. opts = append(opts, http.PathTemplate(pattern))
  1640. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1641. if err != nil {
  1642. return nil, err
  1643. }
  1644. return &out, err
  1645. }
  1646. func (c *PartnerHTTPClientImpl) FindNotReplyNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*chat.FindNotReplyNumReply, error) {
  1647. var out chat.FindNotReplyNumReply
  1648. pattern := "/api/partner/chat/unreply/num"
  1649. path := binding.EncodeURL(pattern, in, false)
  1650. opts = append(opts, http.Operation("/api.partner.Partner/FindNotReplyNum"))
  1651. opts = append(opts, http.PathTemplate(pattern))
  1652. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1653. if err != nil {
  1654. return nil, err
  1655. }
  1656. return &out, err
  1657. }
  1658. func (c *PartnerHTTPClientImpl) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...http.CallOption) (*common.RecommendPersonListReply, error) {
  1659. var out common.RecommendPersonListReply
  1660. pattern := "/api/partner/list/online"
  1661. path := binding.EncodeURL(pattern, in, false)
  1662. opts = append(opts, http.Operation("/api.partner.Partner/FindOnlineList"))
  1663. opts = append(opts, http.PathTemplate(pattern))
  1664. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1665. if err != nil {
  1666. return nil, err
  1667. }
  1668. return &out, err
  1669. }
  1670. func (c *PartnerHTTPClientImpl) FindOtherScrip(ctx context.Context, in *common.FindScripRequest, opts ...http.CallOption) (*common.ScripReply, error) {
  1671. var out common.ScripReply
  1672. pattern := "/api/partner/scrip/find/other"
  1673. path := binding.EncodeURL(pattern, in, false)
  1674. opts = append(opts, http.Operation("/api.partner.Partner/FindOtherScrip"))
  1675. opts = append(opts, http.PathTemplate(pattern))
  1676. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1677. if err != nil {
  1678. return nil, err
  1679. }
  1680. return &out, err
  1681. }
  1682. func (c *PartnerHTTPClientImpl) FindOverSevenDayAvatar(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.FindOverSevenDayAvatarReply, error) {
  1683. var out common.FindOverSevenDayAvatarReply
  1684. pattern := "/api/partner/over/avatar/list"
  1685. path := binding.EncodeURL(pattern, in, false)
  1686. opts = append(opts, http.Operation("/api.partner.Partner/FindOverSevenDayAvatar"))
  1687. opts = append(opts, http.PathTemplate(pattern))
  1688. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1689. if err != nil {
  1690. return nil, err
  1691. }
  1692. return &out, err
  1693. }
  1694. func (c *PartnerHTTPClientImpl) FindOverSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*chat.PartnerFindRoomListReply, error) {
  1695. var out chat.PartnerFindRoomListReply
  1696. pattern := "/api/partner/list/chat/over"
  1697. path := binding.EncodeURL(pattern, in, false)
  1698. opts = append(opts, http.Operation("/api.partner.Partner/FindOverSevenDayRoomList"))
  1699. opts = append(opts, http.PathTemplate(pattern))
  1700. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1701. if err != nil {
  1702. return nil, err
  1703. }
  1704. return &out, err
  1705. }
  1706. func (c *PartnerHTTPClientImpl) FindRecommendScrip(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*common.ScripReply, error) {
  1707. var out common.ScripReply
  1708. pattern := "/api/partner/scrip/find/recommend"
  1709. path := binding.EncodeURL(pattern, in, false)
  1710. opts = append(opts, http.Operation("/api.partner.Partner/FindRecommendScrip"))
  1711. opts = append(opts, http.PathTemplate(pattern))
  1712. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1713. if err != nil {
  1714. return nil, err
  1715. }
  1716. return &out, err
  1717. }
  1718. func (c *PartnerHTTPClientImpl) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...http.CallOption) (*common.TagListReply, error) {
  1719. var out common.TagListReply
  1720. pattern := "/api/partner/list/tag"
  1721. path := binding.EncodeURL(pattern, in, false)
  1722. opts = append(opts, http.Operation("/api.partner.Partner/FindTagListBySex"))
  1723. opts = append(opts, http.PathTemplate(pattern))
  1724. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1725. if err != nil {
  1726. return nil, err
  1727. }
  1728. return &out, err
  1729. }
  1730. func (c *PartnerHTTPClientImpl) FindUnReplyRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*chat.PartnerFindRoomListReply, error) {
  1731. var out chat.PartnerFindRoomListReply
  1732. pattern := "/api/partner/list/chat/unreply"
  1733. path := binding.EncodeURL(pattern, in, false)
  1734. opts = append(opts, http.Operation("/api.partner.Partner/FindUnReplyRoomList"))
  1735. opts = append(opts, http.PathTemplate(pattern))
  1736. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1737. if err != nil {
  1738. return nil, err
  1739. }
  1740. return &out, err
  1741. }
  1742. func (c *PartnerHTTPClientImpl) FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*chat.PartnerFindRoomListReply, error) {
  1743. var out chat.PartnerFindRoomListReply
  1744. pattern := "/api/partner/list/chat/within"
  1745. path := binding.EncodeURL(pattern, in, false)
  1746. opts = append(opts, http.Operation("/api.partner.Partner/FindWithinSevenDayRoomList"))
  1747. opts = append(opts, http.PathTemplate(pattern))
  1748. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1749. if err != nil {
  1750. return nil, err
  1751. }
  1752. return &out, err
  1753. }
  1754. func (c *PartnerHTTPClientImpl) GetLevelBalanceTable(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*LevelTable, error) {
  1755. var out LevelTable
  1756. pattern := "/api/partner/level/table"
  1757. path := binding.EncodeURL(pattern, in, false)
  1758. opts = append(opts, http.Operation("/api.partner.Partner/GetLevelBalanceTable"))
  1759. opts = append(opts, http.PathTemplate(pattern))
  1760. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1761. if err != nil {
  1762. return nil, err
  1763. }
  1764. return &out, err
  1765. }
  1766. func (c *PartnerHTTPClientImpl) GetPartnerBalance(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerBalance, error) {
  1767. var out PartnerBalance
  1768. pattern := "/api/partner/balance"
  1769. path := binding.EncodeURL(pattern, in, false)
  1770. opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerBalance"))
  1771. opts = append(opts, http.PathTemplate(pattern))
  1772. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1773. if err != nil {
  1774. return nil, err
  1775. }
  1776. return &out, err
  1777. }
  1778. func (c *PartnerHTTPClientImpl) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerInfo, error) {
  1779. var out PartnerInfo
  1780. pattern := "/api/partner/info"
  1781. path := binding.EncodeURL(pattern, in, false)
  1782. opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerInfo"))
  1783. opts = append(opts, http.PathTemplate(pattern))
  1784. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1785. if err != nil {
  1786. return nil, err
  1787. }
  1788. return &out, err
  1789. }
  1790. func (c *PartnerHTTPClientImpl) GetPartnerIsLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.IsLike, error) {
  1791. var out common.IsLike
  1792. pattern := "/api/partner/islike"
  1793. path := binding.EncodeURL(pattern, in, false)
  1794. opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerIsLike"))
  1795. opts = append(opts, http.PathTemplate(pattern))
  1796. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1797. if err != nil {
  1798. return nil, err
  1799. }
  1800. return &out, err
  1801. }
  1802. func (c *PartnerHTTPClientImpl) GetPartnerLookNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*statistics.LookMessageReply, error) {
  1803. var out statistics.LookMessageReply
  1804. pattern := "/api/partner/num/look"
  1805. path := binding.EncodeURL(pattern, in, false)
  1806. opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerLookNum"))
  1807. opts = append(opts, http.PathTemplate(pattern))
  1808. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1809. if err != nil {
  1810. return nil, err
  1811. }
  1812. return &out, err
  1813. }
  1814. func (c *PartnerHTTPClientImpl) GetPartnerMessage(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerMessage, error) {
  1815. var out PartnerMessage
  1816. pattern := "/api/partner/message"
  1817. path := binding.EncodeURL(pattern, in, false)
  1818. opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerMessage"))
  1819. opts = append(opts, http.PathTemplate(pattern))
  1820. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1821. if err != nil {
  1822. return nil, err
  1823. }
  1824. return &out, err
  1825. }
  1826. func (c *PartnerHTTPClientImpl) PartnerApplyWithdraw(ctx context.Context, in *PartnerApplyWithdrawRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1827. var out emptypb.Empty
  1828. pattern := "/api/partner/withdraw"
  1829. path := binding.EncodeURL(pattern, in, false)
  1830. opts = append(opts, http.Operation("/api.partner.Partner/PartnerApplyWithdraw"))
  1831. opts = append(opts, http.PathTemplate(pattern))
  1832. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1833. if err != nil {
  1834. return nil, err
  1835. }
  1836. return &out, err
  1837. }
  1838. func (c *PartnerHTTPClientImpl) PartnerCollect(ctx context.Context, in *PartnerCollectRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1839. var out emptypb.Empty
  1840. pattern := "/api/partner/collect"
  1841. path := binding.EncodeURL(pattern, in, false)
  1842. opts = append(opts, http.Operation("/api.partner.Partner/PartnerCollect"))
  1843. opts = append(opts, http.PathTemplate(pattern))
  1844. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1845. if err != nil {
  1846. return nil, err
  1847. }
  1848. return &out, err
  1849. }
  1850. func (c *PartnerHTTPClientImpl) PartnerDeleteCollect(ctx context.Context, in *PartnerCollectRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1851. var out emptypb.Empty
  1852. pattern := "/api/partner/collect/delete"
  1853. path := binding.EncodeURL(pattern, in, false)
  1854. opts = append(opts, http.Operation("/api.partner.Partner/PartnerDeleteCollect"))
  1855. opts = append(opts, http.PathTemplate(pattern))
  1856. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1857. if err != nil {
  1858. return nil, err
  1859. }
  1860. return &out, err
  1861. }
  1862. func (c *PartnerHTTPClientImpl) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1863. var out emptypb.Empty
  1864. pattern := "/api/partner/chat/award"
  1865. path := binding.EncodeURL(pattern, in, false)
  1866. opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetAward"))
  1867. opts = append(opts, http.PathTemplate(pattern))
  1868. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1869. if err != nil {
  1870. return nil, err
  1871. }
  1872. return &out, err
  1873. }
  1874. func (c *PartnerHTTPClientImpl) PartnerGetChatCard(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.PartnerChatCardInfo, error) {
  1875. var out common.PartnerChatCardInfo
  1876. pattern := "/api/partner/chat/card"
  1877. path := binding.EncodeURL(pattern, in, false)
  1878. opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetChatCard"))
  1879. opts = append(opts, http.PathTemplate(pattern))
  1880. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1881. if err != nil {
  1882. return nil, err
  1883. }
  1884. return &out, err
  1885. }
  1886. func (c *PartnerHTTPClientImpl) PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.HomeInfo, error) {
  1887. var out common.HomeInfo
  1888. pattern := "/api/partner/home"
  1889. path := binding.EncodeURL(pattern, in, false)
  1890. opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetHomeInfo"))
  1891. opts = append(opts, http.PathTemplate(pattern))
  1892. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1893. if err != nil {
  1894. return nil, err
  1895. }
  1896. return &out, err
  1897. }
  1898. func (c *PartnerHTTPClientImpl) PartnerGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.LookedAndLikedNum, error) {
  1899. var out common.LookedAndLikedNum
  1900. pattern := "/api/partner/num"
  1901. path := binding.EncodeURL(pattern, in, false)
  1902. opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetPersonLikedAndLooked"))
  1903. opts = append(opts, http.PathTemplate(pattern))
  1904. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1905. if err != nil {
  1906. return nil, err
  1907. }
  1908. return &out, err
  1909. }
  1910. func (c *PartnerHTTPClientImpl) PartnerLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
  1911. var out emptypb.Empty
  1912. pattern := "/api/partner/like"
  1913. path := binding.EncodeURL(pattern, in, false)
  1914. opts = append(opts, http.Operation("/api.partner.Partner/PartnerLike"))
  1915. opts = append(opts, http.PathTemplate(pattern))
  1916. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1917. if err != nil {
  1918. return nil, err
  1919. }
  1920. return &out, err
  1921. }
  1922. func (c *PartnerHTTPClientImpl) PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
  1923. var out emptypb.Empty
  1924. pattern := "/api/partner/unlike"
  1925. path := binding.EncodeURL(pattern, in, false)
  1926. opts = append(opts, http.Operation("/api.partner.Partner/PartnerUnLike"))
  1927. opts = append(opts, http.PathTemplate(pattern))
  1928. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1929. if err != nil {
  1930. return nil, err
  1931. }
  1932. return &out, err
  1933. }
  1934. func (c *PartnerHTTPClientImpl) PartnerUpdateWorkingStatus(ctx context.Context, in *PartnerUpdateWorkingStatusRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1935. var out emptypb.Empty
  1936. pattern := "/api/partner/working/status/update"
  1937. path := binding.EncodeURL(pattern, in, false)
  1938. opts = append(opts, http.Operation("/api.partner.Partner/PartnerUpdateWorkingStatus"))
  1939. opts = append(opts, http.PathTemplate(pattern))
  1940. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1941. if err != nil {
  1942. return nil, err
  1943. }
  1944. return &out, err
  1945. }
  1946. func (c *PartnerHTTPClientImpl) PartnerWithdrawRecordList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*PartnerWithdrawRecordListReply, error) {
  1947. var out PartnerWithdrawRecordListReply
  1948. pattern := "/api/partner/withdraw/record/list"
  1949. path := binding.EncodeURL(pattern, in, false)
  1950. opts = append(opts, http.Operation("/api.partner.Partner/PartnerWithdrawRecordList"))
  1951. opts = append(opts, http.PathTemplate(pattern))
  1952. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1953. if err != nil {
  1954. return nil, err
  1955. }
  1956. return &out, err
  1957. }
  1958. func (c *PartnerHTTPClientImpl) PartnerWithdrawTemplateList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerWithdrawTemplateListReply, error) {
  1959. var out PartnerWithdrawTemplateListReply
  1960. pattern := "/api/partner/withdraw/template/list"
  1961. path := binding.EncodeURL(pattern, in, false)
  1962. opts = append(opts, http.Operation("/api.partner.Partner/PartnerWithdrawTemplateList"))
  1963. opts = append(opts, http.PathTemplate(pattern))
  1964. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1965. if err != nil {
  1966. return nil, err
  1967. }
  1968. return &out, err
  1969. }
  1970. func (c *PartnerHTTPClientImpl) PersonClickLookBack(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*common.ScripInfo, error) {
  1971. var out common.ScripInfo
  1972. pattern := "/api/partner/scrip/look/back"
  1973. path := binding.EncodeURL(pattern, in, false)
  1974. opts = append(opts, http.Operation("/api.partner.Partner/PersonClickLookBack"))
  1975. opts = append(opts, http.PathTemplate(pattern))
  1976. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1977. if err != nil {
  1978. return nil, err
  1979. }
  1980. return &out, err
  1981. }
  1982. func (c *PartnerHTTPClientImpl) PersonLookScrip(ctx context.Context, in *common.ScripIdRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  1983. var out emptypb.Empty
  1984. pattern := "/api/partner/scrip/look"
  1985. path := binding.EncodeURL(pattern, in, false)
  1986. opts = append(opts, http.Operation("/api.partner.Partner/PersonLookScrip"))
  1987. opts = append(opts, http.PathTemplate(pattern))
  1988. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  1989. if err != nil {
  1990. return nil, err
  1991. }
  1992. return &out, err
  1993. }
  1994. func (c *PartnerHTTPClientImpl) PersonReplyScrip(ctx context.Context, in *ReplyScripRequest, opts ...http.CallOption) (*common.ChatRecordInfo, error) {
  1995. var out common.ChatRecordInfo
  1996. pattern := "/api/partner/scrip/reply"
  1997. path := binding.EncodeURL(pattern, in, false)
  1998. opts = append(opts, http.Operation("/api.partner.Partner/PersonReplyScrip"))
  1999. opts = append(opts, http.PathTemplate(pattern))
  2000. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2001. if err != nil {
  2002. return nil, err
  2003. }
  2004. return &out, err
  2005. }
  2006. func (c *PartnerHTTPClientImpl) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...http.CallOption) (*common.CommonTextList, error) {
  2007. var out common.CommonTextList
  2008. pattern := "/api/partner/find/meme/random"
  2009. path := binding.EncodeURL(pattern, in, false)
  2010. opts = append(opts, http.Operation("/api.partner.Partner/RandomMeme"))
  2011. opts = append(opts, http.PathTemplate(pattern))
  2012. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2013. if err != nil {
  2014. return nil, err
  2015. }
  2016. return &out, err
  2017. }
  2018. func (c *PartnerHTTPClientImpl) RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...http.CallOption) (*common.CommonTextList, error) {
  2019. var out common.CommonTextList
  2020. pattern := "/api/partner/find/topic/random"
  2021. path := binding.EncodeURL(pattern, in, false)
  2022. opts = append(opts, http.Operation("/api.partner.Partner/RandomSwiftMessage"))
  2023. opts = append(opts, http.PathTemplate(pattern))
  2024. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2025. if err != nil {
  2026. return nil, err
  2027. }
  2028. return &out, err
  2029. }
  2030. func (c *PartnerHTTPClientImpl) Report(ctx context.Context, in *common.ReportChatRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  2031. var out emptypb.Empty
  2032. pattern := "/api/partner/report"
  2033. path := binding.EncodeURL(pattern, in, false)
  2034. opts = append(opts, http.Operation("/api.partner.Partner/Report"))
  2035. opts = append(opts, http.PathTemplate(pattern))
  2036. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2037. if err != nil {
  2038. return nil, err
  2039. }
  2040. return &out, err
  2041. }
  2042. func (c *PartnerHTTPClientImpl) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  2043. var out emptypb.Empty
  2044. pattern := "/api/partner/code/send"
  2045. path := binding.EncodeURL(pattern, in, false)
  2046. opts = append(opts, http.Operation("/api.partner.Partner/SendPhoneCode"))
  2047. opts = append(opts, http.PathTemplate(pattern))
  2048. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2049. if err != nil {
  2050. return nil, err
  2051. }
  2052. return &out, err
  2053. }
  2054. func (c *PartnerHTTPClientImpl) UpdateLastScripID(ctx context.Context, in *common.UpdateLastScripIDRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  2055. var out emptypb.Empty
  2056. pattern := "/api/partner/scrip/last/update"
  2057. path := binding.EncodeURL(pattern, in, false)
  2058. opts = append(opts, http.Operation("/api.partner.Partner/UpdateLastScripID"))
  2059. opts = append(opts, http.PathTemplate(pattern))
  2060. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2061. if err != nil {
  2062. return nil, err
  2063. }
  2064. return &out, err
  2065. }
  2066. func (c *PartnerHTTPClientImpl) UpdatePartnerInformation(ctx context.Context, in *common.UpdateInformationRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
  2067. var out emptypb.Empty
  2068. pattern := "/api/partner/update/information"
  2069. path := binding.EncodeURL(pattern, in, false)
  2070. opts = append(opts, http.Operation("/api.partner.Partner/UpdatePartnerInformation"))
  2071. opts = append(opts, http.PathTemplate(pattern))
  2072. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2073. if err != nil {
  2074. return nil, err
  2075. }
  2076. return &out, err
  2077. }
  2078. func (c *PartnerHTTPClientImpl) WxConf(ctx context.Context, in *common.WxConfReq, opts ...http.CallOption) (*common.WxConfResponse, error) {
  2079. var out common.WxConfResponse
  2080. pattern := "/api/wx/jssdk/config"
  2081. path := binding.EncodeURL(pattern, in, false)
  2082. opts = append(opts, http.Operation("/api.partner.Partner/WxConf"))
  2083. opts = append(opts, http.PathTemplate(pattern))
  2084. err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
  2085. if err != nil {
  2086. return nil, err
  2087. }
  2088. return &out, err
  2089. }