wx_grpc.pb.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package wx
  3. import (
  4. context "context"
  5. account "git.ikuban.com/server/pw-protobuf/api/account"
  6. common "git.ikuban.com/server/pw-protobuf/api/common"
  7. grpc "google.golang.org/grpc"
  8. codes "google.golang.org/grpc/codes"
  9. status "google.golang.org/grpc/status"
  10. emptypb "google.golang.org/protobuf/types/known/emptypb"
  11. )
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the grpc package it is being compiled against.
  14. // Requires gRPC-Go v1.32.0 or later.
  15. const _ = grpc.SupportPackageIsVersion7
  16. // WxClient is the client API for Wx service.
  17. //
  18. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  19. type WxClient interface {
  20. // 定时发送签到提醒
  21. CronSignInUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  22. // 定时发送未读消息提醒
  23. CronSendUnreadTemplate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  24. // 未读发送模板消息
  25. SendNewMessageUnreadReminder(ctx context.Context, in *SendNewMessageUnreadReminderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  26. // 好友访问提醒
  27. SendNewVisitorTemplateReminder(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
  28. // 移除用户已读
  29. ReduceUserUnread(ctx context.Context, in *ReduceUserUnreadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  30. // 获取key对应的参数
  31. GetUserMsgByKey(ctx context.Context, in *GetUserMsgByKeyRequest, opts ...grpc.CallOption) (*GetUserMsgByKeyReply, error)
  32. // 微信SDK初始化
  33. WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error)
  34. // 通过微信下载语音并上传到七牛
  35. UploadMaterialVoice(ctx context.Context, in *account.MediaID, opts ...grpc.CallOption) (*account.MaterialLink, error)
  36. // 定时删除过期选择
  37. CronDeleteOldUserSelect(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  38. GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*GetAccessTokenReply, error)
  39. SendNewVisitorReminder(ctx context.Context, in *OpenIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  40. SendAIReply(ctx context.Context, in *SendAIReplyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  41. GetWxGzhQrcode(ctx context.Context, in *GetWxGzhQrcodeRequest, opts ...grpc.CallOption) (*GetWxGzhQrcodeReply, error)
  42. SendMiniProgramShareVideoLinkFail(ctx context.Context, in *SendMiniProgramShareVideoLinkFailRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  43. SendMiniProgramSuccessInviteFriend(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
  44. SendMiniProgramUpOfficialVersion(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
  45. }
  46. type wxClient struct {
  47. cc grpc.ClientConnInterface
  48. }
  49. func NewWxClient(cc grpc.ClientConnInterface) WxClient {
  50. return &wxClient{cc}
  51. }
  52. func (c *wxClient) CronSignInUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  53. out := new(emptypb.Empty)
  54. err := c.cc.Invoke(ctx, "/api.wx.Wx/CronSignInUser", in, out, opts...)
  55. if err != nil {
  56. return nil, err
  57. }
  58. return out, nil
  59. }
  60. func (c *wxClient) CronSendUnreadTemplate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  61. out := new(emptypb.Empty)
  62. err := c.cc.Invoke(ctx, "/api.wx.Wx/CronSendUnreadTemplate", in, out, opts...)
  63. if err != nil {
  64. return nil, err
  65. }
  66. return out, nil
  67. }
  68. func (c *wxClient) SendNewMessageUnreadReminder(ctx context.Context, in *SendNewMessageUnreadReminderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  69. out := new(emptypb.Empty)
  70. err := c.cc.Invoke(ctx, "/api.wx.Wx/SendNewMessageUnreadReminder", in, out, opts...)
  71. if err != nil {
  72. return nil, err
  73. }
  74. return out, nil
  75. }
  76. func (c *wxClient) SendNewVisitorTemplateReminder(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  77. out := new(emptypb.Empty)
  78. err := c.cc.Invoke(ctx, "/api.wx.Wx/SendNewVisitorTemplateReminder", in, out, opts...)
  79. if err != nil {
  80. return nil, err
  81. }
  82. return out, nil
  83. }
  84. func (c *wxClient) ReduceUserUnread(ctx context.Context, in *ReduceUserUnreadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  85. out := new(emptypb.Empty)
  86. err := c.cc.Invoke(ctx, "/api.wx.Wx/ReduceUserUnread", in, out, opts...)
  87. if err != nil {
  88. return nil, err
  89. }
  90. return out, nil
  91. }
  92. func (c *wxClient) GetUserMsgByKey(ctx context.Context, in *GetUserMsgByKeyRequest, opts ...grpc.CallOption) (*GetUserMsgByKeyReply, error) {
  93. out := new(GetUserMsgByKeyReply)
  94. err := c.cc.Invoke(ctx, "/api.wx.Wx/GetUserMsgByKey", in, out, opts...)
  95. if err != nil {
  96. return nil, err
  97. }
  98. return out, nil
  99. }
  100. func (c *wxClient) WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error) {
  101. out := new(common.WxConfResponse)
  102. err := c.cc.Invoke(ctx, "/api.wx.Wx/WxConf", in, out, opts...)
  103. if err != nil {
  104. return nil, err
  105. }
  106. return out, nil
  107. }
  108. func (c *wxClient) UploadMaterialVoice(ctx context.Context, in *account.MediaID, opts ...grpc.CallOption) (*account.MaterialLink, error) {
  109. out := new(account.MaterialLink)
  110. err := c.cc.Invoke(ctx, "/api.wx.Wx/UploadMaterialVoice", in, out, opts...)
  111. if err != nil {
  112. return nil, err
  113. }
  114. return out, nil
  115. }
  116. func (c *wxClient) CronDeleteOldUserSelect(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  117. out := new(emptypb.Empty)
  118. err := c.cc.Invoke(ctx, "/api.wx.Wx/CronDeleteOldUserSelect", in, out, opts...)
  119. if err != nil {
  120. return nil, err
  121. }
  122. return out, nil
  123. }
  124. func (c *wxClient) GetAccessToken(ctx context.Context, in *GetAccessTokenRequest, opts ...grpc.CallOption) (*GetAccessTokenReply, error) {
  125. out := new(GetAccessTokenReply)
  126. err := c.cc.Invoke(ctx, "/api.wx.Wx/GetAccessToken", in, out, opts...)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return out, nil
  131. }
  132. func (c *wxClient) SendNewVisitorReminder(ctx context.Context, in *OpenIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  133. out := new(emptypb.Empty)
  134. err := c.cc.Invoke(ctx, "/api.wx.Wx/SendNewVisitorReminder", in, out, opts...)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return out, nil
  139. }
  140. func (c *wxClient) SendAIReply(ctx context.Context, in *SendAIReplyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  141. out := new(emptypb.Empty)
  142. err := c.cc.Invoke(ctx, "/api.wx.Wx/SendAIReply", in, out, opts...)
  143. if err != nil {
  144. return nil, err
  145. }
  146. return out, nil
  147. }
  148. func (c *wxClient) GetWxGzhQrcode(ctx context.Context, in *GetWxGzhQrcodeRequest, opts ...grpc.CallOption) (*GetWxGzhQrcodeReply, error) {
  149. out := new(GetWxGzhQrcodeReply)
  150. err := c.cc.Invoke(ctx, "/api.wx.Wx/GetWxGzhQrcode", in, out, opts...)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return out, nil
  155. }
  156. func (c *wxClient) SendMiniProgramShareVideoLinkFail(ctx context.Context, in *SendMiniProgramShareVideoLinkFailRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  157. out := new(emptypb.Empty)
  158. err := c.cc.Invoke(ctx, "/api.wx.Wx/sendMiniProgramShareVideoLinkFail", in, out, opts...)
  159. if err != nil {
  160. return nil, err
  161. }
  162. return out, nil
  163. }
  164. func (c *wxClient) SendMiniProgramSuccessInviteFriend(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  165. out := new(emptypb.Empty)
  166. err := c.cc.Invoke(ctx, "/api.wx.Wx/sendMiniProgramSuccessInviteFriend", in, out, opts...)
  167. if err != nil {
  168. return nil, err
  169. }
  170. return out, nil
  171. }
  172. func (c *wxClient) SendMiniProgramUpOfficialVersion(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  173. out := new(emptypb.Empty)
  174. err := c.cc.Invoke(ctx, "/api.wx.Wx/sendMiniProgramUpOfficialVersion", in, out, opts...)
  175. if err != nil {
  176. return nil, err
  177. }
  178. return out, nil
  179. }
  180. // WxServer is the server API for Wx service.
  181. // All implementations must embed UnimplementedWxServer
  182. // for forward compatibility
  183. type WxServer interface {
  184. // 定时发送签到提醒
  185. CronSignInUser(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  186. // 定时发送未读消息提醒
  187. CronSendUnreadTemplate(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  188. // 未读发送模板消息
  189. SendNewMessageUnreadReminder(context.Context, *SendNewMessageUnreadReminderRequest) (*emptypb.Empty, error)
  190. // 好友访问提醒
  191. SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
  192. // 移除用户已读
  193. ReduceUserUnread(context.Context, *ReduceUserUnreadRequest) (*emptypb.Empty, error)
  194. // 获取key对应的参数
  195. GetUserMsgByKey(context.Context, *GetUserMsgByKeyRequest) (*GetUserMsgByKeyReply, error)
  196. // 微信SDK初始化
  197. WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
  198. // 通过微信下载语音并上传到七牛
  199. UploadMaterialVoice(context.Context, *account.MediaID) (*account.MaterialLink, error)
  200. // 定时删除过期选择
  201. CronDeleteOldUserSelect(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  202. GetAccessToken(context.Context, *GetAccessTokenRequest) (*GetAccessTokenReply, error)
  203. SendNewVisitorReminder(context.Context, *OpenIDRequest) (*emptypb.Empty, error)
  204. SendAIReply(context.Context, *SendAIReplyRequest) (*emptypb.Empty, error)
  205. GetWxGzhQrcode(context.Context, *GetWxGzhQrcodeRequest) (*GetWxGzhQrcodeReply, error)
  206. SendMiniProgramShareVideoLinkFail(context.Context, *SendMiniProgramShareVideoLinkFailRequest) (*emptypb.Empty, error)
  207. SendMiniProgramSuccessInviteFriend(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
  208. SendMiniProgramUpOfficialVersion(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
  209. mustEmbedUnimplementedWxServer()
  210. }
  211. // UnimplementedWxServer must be embedded to have forward compatible implementations.
  212. type UnimplementedWxServer struct {
  213. }
  214. func (UnimplementedWxServer) CronSignInUser(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  215. return nil, status.Errorf(codes.Unimplemented, "method CronSignInUser not implemented")
  216. }
  217. func (UnimplementedWxServer) CronSendUnreadTemplate(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  218. return nil, status.Errorf(codes.Unimplemented, "method CronSendUnreadTemplate not implemented")
  219. }
  220. func (UnimplementedWxServer) SendNewMessageUnreadReminder(context.Context, *SendNewMessageUnreadReminderRequest) (*emptypb.Empty, error) {
  221. return nil, status.Errorf(codes.Unimplemented, "method SendNewMessageUnreadReminder not implemented")
  222. }
  223. func (UnimplementedWxServer) SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
  224. return nil, status.Errorf(codes.Unimplemented, "method SendNewVisitorTemplateReminder not implemented")
  225. }
  226. func (UnimplementedWxServer) ReduceUserUnread(context.Context, *ReduceUserUnreadRequest) (*emptypb.Empty, error) {
  227. return nil, status.Errorf(codes.Unimplemented, "method ReduceUserUnread not implemented")
  228. }
  229. func (UnimplementedWxServer) GetUserMsgByKey(context.Context, *GetUserMsgByKeyRequest) (*GetUserMsgByKeyReply, error) {
  230. return nil, status.Errorf(codes.Unimplemented, "method GetUserMsgByKey not implemented")
  231. }
  232. func (UnimplementedWxServer) WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error) {
  233. return nil, status.Errorf(codes.Unimplemented, "method WxConf not implemented")
  234. }
  235. func (UnimplementedWxServer) UploadMaterialVoice(context.Context, *account.MediaID) (*account.MaterialLink, error) {
  236. return nil, status.Errorf(codes.Unimplemented, "method UploadMaterialVoice not implemented")
  237. }
  238. func (UnimplementedWxServer) CronDeleteOldUserSelect(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  239. return nil, status.Errorf(codes.Unimplemented, "method CronDeleteOldUserSelect not implemented")
  240. }
  241. func (UnimplementedWxServer) GetAccessToken(context.Context, *GetAccessTokenRequest) (*GetAccessTokenReply, error) {
  242. return nil, status.Errorf(codes.Unimplemented, "method GetAccessToken not implemented")
  243. }
  244. func (UnimplementedWxServer) SendNewVisitorReminder(context.Context, *OpenIDRequest) (*emptypb.Empty, error) {
  245. return nil, status.Errorf(codes.Unimplemented, "method SendNewVisitorReminder not implemented")
  246. }
  247. func (UnimplementedWxServer) SendAIReply(context.Context, *SendAIReplyRequest) (*emptypb.Empty, error) {
  248. return nil, status.Errorf(codes.Unimplemented, "method SendAIReply not implemented")
  249. }
  250. func (UnimplementedWxServer) GetWxGzhQrcode(context.Context, *GetWxGzhQrcodeRequest) (*GetWxGzhQrcodeReply, error) {
  251. return nil, status.Errorf(codes.Unimplemented, "method GetWxGzhQrcode not implemented")
  252. }
  253. func (UnimplementedWxServer) SendMiniProgramShareVideoLinkFail(context.Context, *SendMiniProgramShareVideoLinkFailRequest) (*emptypb.Empty, error) {
  254. return nil, status.Errorf(codes.Unimplemented, "method SendMiniProgramShareVideoLinkFail not implemented")
  255. }
  256. func (UnimplementedWxServer) SendMiniProgramSuccessInviteFriend(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
  257. return nil, status.Errorf(codes.Unimplemented, "method SendMiniProgramSuccessInviteFriend not implemented")
  258. }
  259. func (UnimplementedWxServer) SendMiniProgramUpOfficialVersion(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
  260. return nil, status.Errorf(codes.Unimplemented, "method SendMiniProgramUpOfficialVersion not implemented")
  261. }
  262. func (UnimplementedWxServer) mustEmbedUnimplementedWxServer() {}
  263. // UnsafeWxServer may be embedded to opt out of forward compatibility for this service.
  264. // Use of this interface is not recommended, as added methods to WxServer will
  265. // result in compilation errors.
  266. type UnsafeWxServer interface {
  267. mustEmbedUnimplementedWxServer()
  268. }
  269. func RegisterWxServer(s grpc.ServiceRegistrar, srv WxServer) {
  270. s.RegisterService(&Wx_ServiceDesc, srv)
  271. }
  272. func _Wx_CronSignInUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  273. in := new(emptypb.Empty)
  274. if err := dec(in); err != nil {
  275. return nil, err
  276. }
  277. if interceptor == nil {
  278. return srv.(WxServer).CronSignInUser(ctx, in)
  279. }
  280. info := &grpc.UnaryServerInfo{
  281. Server: srv,
  282. FullMethod: "/api.wx.Wx/CronSignInUser",
  283. }
  284. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  285. return srv.(WxServer).CronSignInUser(ctx, req.(*emptypb.Empty))
  286. }
  287. return interceptor(ctx, in, info, handler)
  288. }
  289. func _Wx_CronSendUnreadTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  290. in := new(emptypb.Empty)
  291. if err := dec(in); err != nil {
  292. return nil, err
  293. }
  294. if interceptor == nil {
  295. return srv.(WxServer).CronSendUnreadTemplate(ctx, in)
  296. }
  297. info := &grpc.UnaryServerInfo{
  298. Server: srv,
  299. FullMethod: "/api.wx.Wx/CronSendUnreadTemplate",
  300. }
  301. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  302. return srv.(WxServer).CronSendUnreadTemplate(ctx, req.(*emptypb.Empty))
  303. }
  304. return interceptor(ctx, in, info, handler)
  305. }
  306. func _Wx_SendNewMessageUnreadReminder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  307. in := new(SendNewMessageUnreadReminderRequest)
  308. if err := dec(in); err != nil {
  309. return nil, err
  310. }
  311. if interceptor == nil {
  312. return srv.(WxServer).SendNewMessageUnreadReminder(ctx, in)
  313. }
  314. info := &grpc.UnaryServerInfo{
  315. Server: srv,
  316. FullMethod: "/api.wx.Wx/SendNewMessageUnreadReminder",
  317. }
  318. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  319. return srv.(WxServer).SendNewMessageUnreadReminder(ctx, req.(*SendNewMessageUnreadReminderRequest))
  320. }
  321. return interceptor(ctx, in, info, handler)
  322. }
  323. func _Wx_SendNewVisitorTemplateReminder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  324. in := new(common.PersonIDParam)
  325. if err := dec(in); err != nil {
  326. return nil, err
  327. }
  328. if interceptor == nil {
  329. return srv.(WxServer).SendNewVisitorTemplateReminder(ctx, in)
  330. }
  331. info := &grpc.UnaryServerInfo{
  332. Server: srv,
  333. FullMethod: "/api.wx.Wx/SendNewVisitorTemplateReminder",
  334. }
  335. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  336. return srv.(WxServer).SendNewVisitorTemplateReminder(ctx, req.(*common.PersonIDParam))
  337. }
  338. return interceptor(ctx, in, info, handler)
  339. }
  340. func _Wx_ReduceUserUnread_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  341. in := new(ReduceUserUnreadRequest)
  342. if err := dec(in); err != nil {
  343. return nil, err
  344. }
  345. if interceptor == nil {
  346. return srv.(WxServer).ReduceUserUnread(ctx, in)
  347. }
  348. info := &grpc.UnaryServerInfo{
  349. Server: srv,
  350. FullMethod: "/api.wx.Wx/ReduceUserUnread",
  351. }
  352. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  353. return srv.(WxServer).ReduceUserUnread(ctx, req.(*ReduceUserUnreadRequest))
  354. }
  355. return interceptor(ctx, in, info, handler)
  356. }
  357. func _Wx_GetUserMsgByKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  358. in := new(GetUserMsgByKeyRequest)
  359. if err := dec(in); err != nil {
  360. return nil, err
  361. }
  362. if interceptor == nil {
  363. return srv.(WxServer).GetUserMsgByKey(ctx, in)
  364. }
  365. info := &grpc.UnaryServerInfo{
  366. Server: srv,
  367. FullMethod: "/api.wx.Wx/GetUserMsgByKey",
  368. }
  369. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  370. return srv.(WxServer).GetUserMsgByKey(ctx, req.(*GetUserMsgByKeyRequest))
  371. }
  372. return interceptor(ctx, in, info, handler)
  373. }
  374. func _Wx_WxConf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  375. in := new(common.WxConfReq)
  376. if err := dec(in); err != nil {
  377. return nil, err
  378. }
  379. if interceptor == nil {
  380. return srv.(WxServer).WxConf(ctx, in)
  381. }
  382. info := &grpc.UnaryServerInfo{
  383. Server: srv,
  384. FullMethod: "/api.wx.Wx/WxConf",
  385. }
  386. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  387. return srv.(WxServer).WxConf(ctx, req.(*common.WxConfReq))
  388. }
  389. return interceptor(ctx, in, info, handler)
  390. }
  391. func _Wx_UploadMaterialVoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  392. in := new(account.MediaID)
  393. if err := dec(in); err != nil {
  394. return nil, err
  395. }
  396. if interceptor == nil {
  397. return srv.(WxServer).UploadMaterialVoice(ctx, in)
  398. }
  399. info := &grpc.UnaryServerInfo{
  400. Server: srv,
  401. FullMethod: "/api.wx.Wx/UploadMaterialVoice",
  402. }
  403. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  404. return srv.(WxServer).UploadMaterialVoice(ctx, req.(*account.MediaID))
  405. }
  406. return interceptor(ctx, in, info, handler)
  407. }
  408. func _Wx_CronDeleteOldUserSelect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  409. in := new(emptypb.Empty)
  410. if err := dec(in); err != nil {
  411. return nil, err
  412. }
  413. if interceptor == nil {
  414. return srv.(WxServer).CronDeleteOldUserSelect(ctx, in)
  415. }
  416. info := &grpc.UnaryServerInfo{
  417. Server: srv,
  418. FullMethod: "/api.wx.Wx/CronDeleteOldUserSelect",
  419. }
  420. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  421. return srv.(WxServer).CronDeleteOldUserSelect(ctx, req.(*emptypb.Empty))
  422. }
  423. return interceptor(ctx, in, info, handler)
  424. }
  425. func _Wx_GetAccessToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  426. in := new(GetAccessTokenRequest)
  427. if err := dec(in); err != nil {
  428. return nil, err
  429. }
  430. if interceptor == nil {
  431. return srv.(WxServer).GetAccessToken(ctx, in)
  432. }
  433. info := &grpc.UnaryServerInfo{
  434. Server: srv,
  435. FullMethod: "/api.wx.Wx/GetAccessToken",
  436. }
  437. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  438. return srv.(WxServer).GetAccessToken(ctx, req.(*GetAccessTokenRequest))
  439. }
  440. return interceptor(ctx, in, info, handler)
  441. }
  442. func _Wx_SendNewVisitorReminder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  443. in := new(OpenIDRequest)
  444. if err := dec(in); err != nil {
  445. return nil, err
  446. }
  447. if interceptor == nil {
  448. return srv.(WxServer).SendNewVisitorReminder(ctx, in)
  449. }
  450. info := &grpc.UnaryServerInfo{
  451. Server: srv,
  452. FullMethod: "/api.wx.Wx/SendNewVisitorReminder",
  453. }
  454. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  455. return srv.(WxServer).SendNewVisitorReminder(ctx, req.(*OpenIDRequest))
  456. }
  457. return interceptor(ctx, in, info, handler)
  458. }
  459. func _Wx_SendAIReply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  460. in := new(SendAIReplyRequest)
  461. if err := dec(in); err != nil {
  462. return nil, err
  463. }
  464. if interceptor == nil {
  465. return srv.(WxServer).SendAIReply(ctx, in)
  466. }
  467. info := &grpc.UnaryServerInfo{
  468. Server: srv,
  469. FullMethod: "/api.wx.Wx/SendAIReply",
  470. }
  471. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  472. return srv.(WxServer).SendAIReply(ctx, req.(*SendAIReplyRequest))
  473. }
  474. return interceptor(ctx, in, info, handler)
  475. }
  476. func _Wx_GetWxGzhQrcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  477. in := new(GetWxGzhQrcodeRequest)
  478. if err := dec(in); err != nil {
  479. return nil, err
  480. }
  481. if interceptor == nil {
  482. return srv.(WxServer).GetWxGzhQrcode(ctx, in)
  483. }
  484. info := &grpc.UnaryServerInfo{
  485. Server: srv,
  486. FullMethod: "/api.wx.Wx/GetWxGzhQrcode",
  487. }
  488. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  489. return srv.(WxServer).GetWxGzhQrcode(ctx, req.(*GetWxGzhQrcodeRequest))
  490. }
  491. return interceptor(ctx, in, info, handler)
  492. }
  493. func _Wx_SendMiniProgramShareVideoLinkFail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  494. in := new(SendMiniProgramShareVideoLinkFailRequest)
  495. if err := dec(in); err != nil {
  496. return nil, err
  497. }
  498. if interceptor == nil {
  499. return srv.(WxServer).SendMiniProgramShareVideoLinkFail(ctx, in)
  500. }
  501. info := &grpc.UnaryServerInfo{
  502. Server: srv,
  503. FullMethod: "/api.wx.Wx/sendMiniProgramShareVideoLinkFail",
  504. }
  505. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  506. return srv.(WxServer).SendMiniProgramShareVideoLinkFail(ctx, req.(*SendMiniProgramShareVideoLinkFailRequest))
  507. }
  508. return interceptor(ctx, in, info, handler)
  509. }
  510. func _Wx_SendMiniProgramSuccessInviteFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  511. in := new(common.PersonIDParam)
  512. if err := dec(in); err != nil {
  513. return nil, err
  514. }
  515. if interceptor == nil {
  516. return srv.(WxServer).SendMiniProgramSuccessInviteFriend(ctx, in)
  517. }
  518. info := &grpc.UnaryServerInfo{
  519. Server: srv,
  520. FullMethod: "/api.wx.Wx/sendMiniProgramSuccessInviteFriend",
  521. }
  522. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  523. return srv.(WxServer).SendMiniProgramSuccessInviteFriend(ctx, req.(*common.PersonIDParam))
  524. }
  525. return interceptor(ctx, in, info, handler)
  526. }
  527. func _Wx_SendMiniProgramUpOfficialVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  528. in := new(common.PersonIDParam)
  529. if err := dec(in); err != nil {
  530. return nil, err
  531. }
  532. if interceptor == nil {
  533. return srv.(WxServer).SendMiniProgramUpOfficialVersion(ctx, in)
  534. }
  535. info := &grpc.UnaryServerInfo{
  536. Server: srv,
  537. FullMethod: "/api.wx.Wx/sendMiniProgramUpOfficialVersion",
  538. }
  539. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  540. return srv.(WxServer).SendMiniProgramUpOfficialVersion(ctx, req.(*common.PersonIDParam))
  541. }
  542. return interceptor(ctx, in, info, handler)
  543. }
  544. // Wx_ServiceDesc is the grpc.ServiceDesc for Wx service.
  545. // It's only intended for direct use with grpc.RegisterService,
  546. // and not to be introspected or modified (even as a copy)
  547. var Wx_ServiceDesc = grpc.ServiceDesc{
  548. ServiceName: "api.wx.Wx",
  549. HandlerType: (*WxServer)(nil),
  550. Methods: []grpc.MethodDesc{
  551. {
  552. MethodName: "CronSignInUser",
  553. Handler: _Wx_CronSignInUser_Handler,
  554. },
  555. {
  556. MethodName: "CronSendUnreadTemplate",
  557. Handler: _Wx_CronSendUnreadTemplate_Handler,
  558. },
  559. {
  560. MethodName: "SendNewMessageUnreadReminder",
  561. Handler: _Wx_SendNewMessageUnreadReminder_Handler,
  562. },
  563. {
  564. MethodName: "SendNewVisitorTemplateReminder",
  565. Handler: _Wx_SendNewVisitorTemplateReminder_Handler,
  566. },
  567. {
  568. MethodName: "ReduceUserUnread",
  569. Handler: _Wx_ReduceUserUnread_Handler,
  570. },
  571. {
  572. MethodName: "GetUserMsgByKey",
  573. Handler: _Wx_GetUserMsgByKey_Handler,
  574. },
  575. {
  576. MethodName: "WxConf",
  577. Handler: _Wx_WxConf_Handler,
  578. },
  579. {
  580. MethodName: "UploadMaterialVoice",
  581. Handler: _Wx_UploadMaterialVoice_Handler,
  582. },
  583. {
  584. MethodName: "CronDeleteOldUserSelect",
  585. Handler: _Wx_CronDeleteOldUserSelect_Handler,
  586. },
  587. {
  588. MethodName: "GetAccessToken",
  589. Handler: _Wx_GetAccessToken_Handler,
  590. },
  591. {
  592. MethodName: "SendNewVisitorReminder",
  593. Handler: _Wx_SendNewVisitorReminder_Handler,
  594. },
  595. {
  596. MethodName: "SendAIReply",
  597. Handler: _Wx_SendAIReply_Handler,
  598. },
  599. {
  600. MethodName: "GetWxGzhQrcode",
  601. Handler: _Wx_GetWxGzhQrcode_Handler,
  602. },
  603. {
  604. MethodName: "sendMiniProgramShareVideoLinkFail",
  605. Handler: _Wx_SendMiniProgramShareVideoLinkFail_Handler,
  606. },
  607. {
  608. MethodName: "sendMiniProgramSuccessInviteFriend",
  609. Handler: _Wx_SendMiniProgramSuccessInviteFriend_Handler,
  610. },
  611. {
  612. MethodName: "sendMiniProgramUpOfficialVersion",
  613. Handler: _Wx_SendMiniProgramUpOfficialVersion_Handler,
  614. },
  615. },
  616. Streams: []grpc.StreamDesc{},
  617. Metadata: "wx.proto",
  618. }