ai_grpc.pb.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package ai
  3. import (
  4. context "context"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. emptypb "google.golang.org/protobuf/types/known/emptypb"
  9. )
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the grpc package it is being compiled against.
  12. // Requires gRPC-Go v1.32.0 or later.
  13. const _ = grpc.SupportPackageIsVersion7
  14. // AiClient is the client API for Ai service.
  15. //
  16. // 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.
  17. type AiClient interface {
  18. // 查询AI模板
  19. FindAITemplate(ctx context.Context, in *FindAITemplateRequest, opts ...grpc.CallOption) (*FindAITemplateReply, error)
  20. // 创建AI
  21. CreateAIRobot(ctx context.Context, in *CreateAIRobotRequest, opts ...grpc.CallOption) (*AIRobotIDReply, error)
  22. // 销毁AI
  23. DeleteAIRobot(ctx context.Context, in *AIRobotIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  24. // 更新AI
  25. UpdateAIRobot(ctx context.Context, in *UpdateAIRobotRequest, opts ...grpc.CallOption) (*AIRobotIDReply, error)
  26. // 查询AI机器人列表
  27. FindAIRobotList(ctx context.Context, in *FindAIRobotListRequest, opts ...grpc.CallOption) (*AIRobotList, error)
  28. // 查询AI机器人
  29. GetAIRobot(ctx context.Context, in *AIRobotIDRequest, opts ...grpc.CallOption) (*AIRobotInfo, error)
  30. // 查询AI聊天记录
  31. FindAIChatRecordList(ctx context.Context, in *FindAIChatRecordListRequest, opts ...grpc.CallOption) (*AIRecordListReply, error)
  32. // 发送消息给ai
  33. SendAIChat(ctx context.Context, in *SendAIChatRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  34. // 查询额外服务列表
  35. FindAdditionalServiceTemplateList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindAdditionalServiceTemplateListReply, error)
  36. // 获取额外服务
  37. GetAdditionalService(ctx context.Context, in *GetAdditionalServiceRequest, opts ...grpc.CallOption) (*GetAdditionalServiceReply, error)
  38. // 更新并创建额外服务
  39. UpdateAdditionalService(ctx context.Context, in *UpdateAdditionalServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  40. // 查询用户的ai信息
  41. FindUserAIMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindUserAIMessageReply, error)
  42. // 定时执行服务
  43. CronAdditionalService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
  44. // 用户已读
  45. GetIsRead(ctx context.Context, in *GetIsReadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  46. // 获取AI升级信息
  47. GetAIShareMessage(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetAIShareMessageReply, error)
  48. // 获取二维码
  49. GetShareQrcode(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetShareQrcodeReply, error)
  50. // 保存视频链接
  51. SetVideoLink(ctx context.Context, in *SetVideoLinkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  52. // vip直接升级
  53. VipUpAI(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  54. // 用户受到邀请
  55. ShareUserInto(ctx context.Context, in *ShareUserIntoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  56. }
  57. type aiClient struct {
  58. cc grpc.ClientConnInterface
  59. }
  60. func NewAiClient(cc grpc.ClientConnInterface) AiClient {
  61. return &aiClient{cc}
  62. }
  63. func (c *aiClient) FindAITemplate(ctx context.Context, in *FindAITemplateRequest, opts ...grpc.CallOption) (*FindAITemplateReply, error) {
  64. out := new(FindAITemplateReply)
  65. err := c.cc.Invoke(ctx, "/api.ai.Ai/FindAITemplate", in, out, opts...)
  66. if err != nil {
  67. return nil, err
  68. }
  69. return out, nil
  70. }
  71. func (c *aiClient) CreateAIRobot(ctx context.Context, in *CreateAIRobotRequest, opts ...grpc.CallOption) (*AIRobotIDReply, error) {
  72. out := new(AIRobotIDReply)
  73. err := c.cc.Invoke(ctx, "/api.ai.Ai/CreateAIRobot", in, out, opts...)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return out, nil
  78. }
  79. func (c *aiClient) DeleteAIRobot(ctx context.Context, in *AIRobotIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  80. out := new(emptypb.Empty)
  81. err := c.cc.Invoke(ctx, "/api.ai.Ai/DeleteAIRobot", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *aiClient) UpdateAIRobot(ctx context.Context, in *UpdateAIRobotRequest, opts ...grpc.CallOption) (*AIRobotIDReply, error) {
  88. out := new(AIRobotIDReply)
  89. err := c.cc.Invoke(ctx, "/api.ai.Ai/UpdateAIRobot", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *aiClient) FindAIRobotList(ctx context.Context, in *FindAIRobotListRequest, opts ...grpc.CallOption) (*AIRobotList, error) {
  96. out := new(AIRobotList)
  97. err := c.cc.Invoke(ctx, "/api.ai.Ai/FindAIRobotList", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *aiClient) GetAIRobot(ctx context.Context, in *AIRobotIDRequest, opts ...grpc.CallOption) (*AIRobotInfo, error) {
  104. out := new(AIRobotInfo)
  105. err := c.cc.Invoke(ctx, "/api.ai.Ai/GetAIRobot", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. func (c *aiClient) FindAIChatRecordList(ctx context.Context, in *FindAIChatRecordListRequest, opts ...grpc.CallOption) (*AIRecordListReply, error) {
  112. out := new(AIRecordListReply)
  113. err := c.cc.Invoke(ctx, "/api.ai.Ai/FindAIChatRecordList", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *aiClient) SendAIChat(ctx context.Context, in *SendAIChatRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  120. out := new(emptypb.Empty)
  121. err := c.cc.Invoke(ctx, "/api.ai.Ai/SendAIChat", in, out, opts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *aiClient) FindAdditionalServiceTemplateList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindAdditionalServiceTemplateListReply, error) {
  128. out := new(FindAdditionalServiceTemplateListReply)
  129. err := c.cc.Invoke(ctx, "/api.ai.Ai/FindAdditionalServiceTemplateList", in, out, opts...)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return out, nil
  134. }
  135. func (c *aiClient) GetAdditionalService(ctx context.Context, in *GetAdditionalServiceRequest, opts ...grpc.CallOption) (*GetAdditionalServiceReply, error) {
  136. out := new(GetAdditionalServiceReply)
  137. err := c.cc.Invoke(ctx, "/api.ai.Ai/GetAdditionalService", in, out, opts...)
  138. if err != nil {
  139. return nil, err
  140. }
  141. return out, nil
  142. }
  143. func (c *aiClient) UpdateAdditionalService(ctx context.Context, in *UpdateAdditionalServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  144. out := new(emptypb.Empty)
  145. err := c.cc.Invoke(ctx, "/api.ai.Ai/UpdateAdditionalService", in, out, opts...)
  146. if err != nil {
  147. return nil, err
  148. }
  149. return out, nil
  150. }
  151. func (c *aiClient) FindUserAIMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindUserAIMessageReply, error) {
  152. out := new(FindUserAIMessageReply)
  153. err := c.cc.Invoke(ctx, "/api.ai.Ai/FindUserAIMessage", in, out, opts...)
  154. if err != nil {
  155. return nil, err
  156. }
  157. return out, nil
  158. }
  159. func (c *aiClient) CronAdditionalService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  160. out := new(emptypb.Empty)
  161. err := c.cc.Invoke(ctx, "/api.ai.Ai/CronAdditionalService", in, out, opts...)
  162. if err != nil {
  163. return nil, err
  164. }
  165. return out, nil
  166. }
  167. func (c *aiClient) GetIsRead(ctx context.Context, in *GetIsReadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  168. out := new(emptypb.Empty)
  169. err := c.cc.Invoke(ctx, "/api.ai.Ai/GetIsRead", in, out, opts...)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return out, nil
  174. }
  175. func (c *aiClient) GetAIShareMessage(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetAIShareMessageReply, error) {
  176. out := new(GetAIShareMessageReply)
  177. err := c.cc.Invoke(ctx, "/api.ai.Ai/GetAIShareMessage", in, out, opts...)
  178. if err != nil {
  179. return nil, err
  180. }
  181. return out, nil
  182. }
  183. func (c *aiClient) GetShareQrcode(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*GetShareQrcodeReply, error) {
  184. out := new(GetShareQrcodeReply)
  185. err := c.cc.Invoke(ctx, "/api.ai.Ai/GetShareQrcode", in, out, opts...)
  186. if err != nil {
  187. return nil, err
  188. }
  189. return out, nil
  190. }
  191. func (c *aiClient) SetVideoLink(ctx context.Context, in *SetVideoLinkRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  192. out := new(emptypb.Empty)
  193. err := c.cc.Invoke(ctx, "/api.ai.Ai/SetVideoLink", in, out, opts...)
  194. if err != nil {
  195. return nil, err
  196. }
  197. return out, nil
  198. }
  199. func (c *aiClient) VipUpAI(ctx context.Context, in *GetAIShareMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  200. out := new(emptypb.Empty)
  201. err := c.cc.Invoke(ctx, "/api.ai.Ai/VipUpAI", in, out, opts...)
  202. if err != nil {
  203. return nil, err
  204. }
  205. return out, nil
  206. }
  207. func (c *aiClient) ShareUserInto(ctx context.Context, in *ShareUserIntoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  208. out := new(emptypb.Empty)
  209. err := c.cc.Invoke(ctx, "/api.ai.Ai/ShareUserInto", in, out, opts...)
  210. if err != nil {
  211. return nil, err
  212. }
  213. return out, nil
  214. }
  215. // AiServer is the server API for Ai service.
  216. // All implementations must embed UnimplementedAiServer
  217. // for forward compatibility
  218. type AiServer interface {
  219. // 查询AI模板
  220. FindAITemplate(context.Context, *FindAITemplateRequest) (*FindAITemplateReply, error)
  221. // 创建AI
  222. CreateAIRobot(context.Context, *CreateAIRobotRequest) (*AIRobotIDReply, error)
  223. // 销毁AI
  224. DeleteAIRobot(context.Context, *AIRobotIDRequest) (*emptypb.Empty, error)
  225. // 更新AI
  226. UpdateAIRobot(context.Context, *UpdateAIRobotRequest) (*AIRobotIDReply, error)
  227. // 查询AI机器人列表
  228. FindAIRobotList(context.Context, *FindAIRobotListRequest) (*AIRobotList, error)
  229. // 查询AI机器人
  230. GetAIRobot(context.Context, *AIRobotIDRequest) (*AIRobotInfo, error)
  231. // 查询AI聊天记录
  232. FindAIChatRecordList(context.Context, *FindAIChatRecordListRequest) (*AIRecordListReply, error)
  233. // 发送消息给ai
  234. SendAIChat(context.Context, *SendAIChatRequest) (*emptypb.Empty, error)
  235. // 查询额外服务列表
  236. FindAdditionalServiceTemplateList(context.Context, *emptypb.Empty) (*FindAdditionalServiceTemplateListReply, error)
  237. // 获取额外服务
  238. GetAdditionalService(context.Context, *GetAdditionalServiceRequest) (*GetAdditionalServiceReply, error)
  239. // 更新并创建额外服务
  240. UpdateAdditionalService(context.Context, *UpdateAdditionalServiceRequest) (*emptypb.Empty, error)
  241. // 查询用户的ai信息
  242. FindUserAIMessage(context.Context, *emptypb.Empty) (*FindUserAIMessageReply, error)
  243. // 定时执行服务
  244. CronAdditionalService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
  245. // 用户已读
  246. GetIsRead(context.Context, *GetIsReadRequest) (*emptypb.Empty, error)
  247. // 获取AI升级信息
  248. GetAIShareMessage(context.Context, *GetAIShareMessageRequest) (*GetAIShareMessageReply, error)
  249. // 获取二维码
  250. GetShareQrcode(context.Context, *GetAIShareMessageRequest) (*GetShareQrcodeReply, error)
  251. // 保存视频链接
  252. SetVideoLink(context.Context, *SetVideoLinkRequest) (*emptypb.Empty, error)
  253. // vip直接升级
  254. VipUpAI(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error)
  255. // 用户受到邀请
  256. ShareUserInto(context.Context, *ShareUserIntoRequest) (*emptypb.Empty, error)
  257. mustEmbedUnimplementedAiServer()
  258. }
  259. // UnimplementedAiServer must be embedded to have forward compatible implementations.
  260. type UnimplementedAiServer struct {
  261. }
  262. func (UnimplementedAiServer) FindAITemplate(context.Context, *FindAITemplateRequest) (*FindAITemplateReply, error) {
  263. return nil, status.Errorf(codes.Unimplemented, "method FindAITemplate not implemented")
  264. }
  265. func (UnimplementedAiServer) CreateAIRobot(context.Context, *CreateAIRobotRequest) (*AIRobotIDReply, error) {
  266. return nil, status.Errorf(codes.Unimplemented, "method CreateAIRobot not implemented")
  267. }
  268. func (UnimplementedAiServer) DeleteAIRobot(context.Context, *AIRobotIDRequest) (*emptypb.Empty, error) {
  269. return nil, status.Errorf(codes.Unimplemented, "method DeleteAIRobot not implemented")
  270. }
  271. func (UnimplementedAiServer) UpdateAIRobot(context.Context, *UpdateAIRobotRequest) (*AIRobotIDReply, error) {
  272. return nil, status.Errorf(codes.Unimplemented, "method UpdateAIRobot not implemented")
  273. }
  274. func (UnimplementedAiServer) FindAIRobotList(context.Context, *FindAIRobotListRequest) (*AIRobotList, error) {
  275. return nil, status.Errorf(codes.Unimplemented, "method FindAIRobotList not implemented")
  276. }
  277. func (UnimplementedAiServer) GetAIRobot(context.Context, *AIRobotIDRequest) (*AIRobotInfo, error) {
  278. return nil, status.Errorf(codes.Unimplemented, "method GetAIRobot not implemented")
  279. }
  280. func (UnimplementedAiServer) FindAIChatRecordList(context.Context, *FindAIChatRecordListRequest) (*AIRecordListReply, error) {
  281. return nil, status.Errorf(codes.Unimplemented, "method FindAIChatRecordList not implemented")
  282. }
  283. func (UnimplementedAiServer) SendAIChat(context.Context, *SendAIChatRequest) (*emptypb.Empty, error) {
  284. return nil, status.Errorf(codes.Unimplemented, "method SendAIChat not implemented")
  285. }
  286. func (UnimplementedAiServer) FindAdditionalServiceTemplateList(context.Context, *emptypb.Empty) (*FindAdditionalServiceTemplateListReply, error) {
  287. return nil, status.Errorf(codes.Unimplemented, "method FindAdditionalServiceTemplateList not implemented")
  288. }
  289. func (UnimplementedAiServer) GetAdditionalService(context.Context, *GetAdditionalServiceRequest) (*GetAdditionalServiceReply, error) {
  290. return nil, status.Errorf(codes.Unimplemented, "method GetAdditionalService not implemented")
  291. }
  292. func (UnimplementedAiServer) UpdateAdditionalService(context.Context, *UpdateAdditionalServiceRequest) (*emptypb.Empty, error) {
  293. return nil, status.Errorf(codes.Unimplemented, "method UpdateAdditionalService not implemented")
  294. }
  295. func (UnimplementedAiServer) FindUserAIMessage(context.Context, *emptypb.Empty) (*FindUserAIMessageReply, error) {
  296. return nil, status.Errorf(codes.Unimplemented, "method FindUserAIMessage not implemented")
  297. }
  298. func (UnimplementedAiServer) CronAdditionalService(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
  299. return nil, status.Errorf(codes.Unimplemented, "method CronAdditionalService not implemented")
  300. }
  301. func (UnimplementedAiServer) GetIsRead(context.Context, *GetIsReadRequest) (*emptypb.Empty, error) {
  302. return nil, status.Errorf(codes.Unimplemented, "method GetIsRead not implemented")
  303. }
  304. func (UnimplementedAiServer) GetAIShareMessage(context.Context, *GetAIShareMessageRequest) (*GetAIShareMessageReply, error) {
  305. return nil, status.Errorf(codes.Unimplemented, "method GetAIShareMessage not implemented")
  306. }
  307. func (UnimplementedAiServer) GetShareQrcode(context.Context, *GetAIShareMessageRequest) (*GetShareQrcodeReply, error) {
  308. return nil, status.Errorf(codes.Unimplemented, "method GetShareQrcode not implemented")
  309. }
  310. func (UnimplementedAiServer) SetVideoLink(context.Context, *SetVideoLinkRequest) (*emptypb.Empty, error) {
  311. return nil, status.Errorf(codes.Unimplemented, "method SetVideoLink not implemented")
  312. }
  313. func (UnimplementedAiServer) VipUpAI(context.Context, *GetAIShareMessageRequest) (*emptypb.Empty, error) {
  314. return nil, status.Errorf(codes.Unimplemented, "method VipUpAI not implemented")
  315. }
  316. func (UnimplementedAiServer) ShareUserInto(context.Context, *ShareUserIntoRequest) (*emptypb.Empty, error) {
  317. return nil, status.Errorf(codes.Unimplemented, "method ShareUserInto not implemented")
  318. }
  319. func (UnimplementedAiServer) mustEmbedUnimplementedAiServer() {}
  320. // UnsafeAiServer may be embedded to opt out of forward compatibility for this service.
  321. // Use of this interface is not recommended, as added methods to AiServer will
  322. // result in compilation errors.
  323. type UnsafeAiServer interface {
  324. mustEmbedUnimplementedAiServer()
  325. }
  326. func RegisterAiServer(s grpc.ServiceRegistrar, srv AiServer) {
  327. s.RegisterService(&Ai_ServiceDesc, srv)
  328. }
  329. func _Ai_FindAITemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  330. in := new(FindAITemplateRequest)
  331. if err := dec(in); err != nil {
  332. return nil, err
  333. }
  334. if interceptor == nil {
  335. return srv.(AiServer).FindAITemplate(ctx, in)
  336. }
  337. info := &grpc.UnaryServerInfo{
  338. Server: srv,
  339. FullMethod: "/api.ai.Ai/FindAITemplate",
  340. }
  341. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  342. return srv.(AiServer).FindAITemplate(ctx, req.(*FindAITemplateRequest))
  343. }
  344. return interceptor(ctx, in, info, handler)
  345. }
  346. func _Ai_CreateAIRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  347. in := new(CreateAIRobotRequest)
  348. if err := dec(in); err != nil {
  349. return nil, err
  350. }
  351. if interceptor == nil {
  352. return srv.(AiServer).CreateAIRobot(ctx, in)
  353. }
  354. info := &grpc.UnaryServerInfo{
  355. Server: srv,
  356. FullMethod: "/api.ai.Ai/CreateAIRobot",
  357. }
  358. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  359. return srv.(AiServer).CreateAIRobot(ctx, req.(*CreateAIRobotRequest))
  360. }
  361. return interceptor(ctx, in, info, handler)
  362. }
  363. func _Ai_DeleteAIRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  364. in := new(AIRobotIDRequest)
  365. if err := dec(in); err != nil {
  366. return nil, err
  367. }
  368. if interceptor == nil {
  369. return srv.(AiServer).DeleteAIRobot(ctx, in)
  370. }
  371. info := &grpc.UnaryServerInfo{
  372. Server: srv,
  373. FullMethod: "/api.ai.Ai/DeleteAIRobot",
  374. }
  375. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  376. return srv.(AiServer).DeleteAIRobot(ctx, req.(*AIRobotIDRequest))
  377. }
  378. return interceptor(ctx, in, info, handler)
  379. }
  380. func _Ai_UpdateAIRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  381. in := new(UpdateAIRobotRequest)
  382. if err := dec(in); err != nil {
  383. return nil, err
  384. }
  385. if interceptor == nil {
  386. return srv.(AiServer).UpdateAIRobot(ctx, in)
  387. }
  388. info := &grpc.UnaryServerInfo{
  389. Server: srv,
  390. FullMethod: "/api.ai.Ai/UpdateAIRobot",
  391. }
  392. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  393. return srv.(AiServer).UpdateAIRobot(ctx, req.(*UpdateAIRobotRequest))
  394. }
  395. return interceptor(ctx, in, info, handler)
  396. }
  397. func _Ai_FindAIRobotList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  398. in := new(FindAIRobotListRequest)
  399. if err := dec(in); err != nil {
  400. return nil, err
  401. }
  402. if interceptor == nil {
  403. return srv.(AiServer).FindAIRobotList(ctx, in)
  404. }
  405. info := &grpc.UnaryServerInfo{
  406. Server: srv,
  407. FullMethod: "/api.ai.Ai/FindAIRobotList",
  408. }
  409. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  410. return srv.(AiServer).FindAIRobotList(ctx, req.(*FindAIRobotListRequest))
  411. }
  412. return interceptor(ctx, in, info, handler)
  413. }
  414. func _Ai_GetAIRobot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  415. in := new(AIRobotIDRequest)
  416. if err := dec(in); err != nil {
  417. return nil, err
  418. }
  419. if interceptor == nil {
  420. return srv.(AiServer).GetAIRobot(ctx, in)
  421. }
  422. info := &grpc.UnaryServerInfo{
  423. Server: srv,
  424. FullMethod: "/api.ai.Ai/GetAIRobot",
  425. }
  426. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  427. return srv.(AiServer).GetAIRobot(ctx, req.(*AIRobotIDRequest))
  428. }
  429. return interceptor(ctx, in, info, handler)
  430. }
  431. func _Ai_FindAIChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  432. in := new(FindAIChatRecordListRequest)
  433. if err := dec(in); err != nil {
  434. return nil, err
  435. }
  436. if interceptor == nil {
  437. return srv.(AiServer).FindAIChatRecordList(ctx, in)
  438. }
  439. info := &grpc.UnaryServerInfo{
  440. Server: srv,
  441. FullMethod: "/api.ai.Ai/FindAIChatRecordList",
  442. }
  443. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  444. return srv.(AiServer).FindAIChatRecordList(ctx, req.(*FindAIChatRecordListRequest))
  445. }
  446. return interceptor(ctx, in, info, handler)
  447. }
  448. func _Ai_SendAIChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  449. in := new(SendAIChatRequest)
  450. if err := dec(in); err != nil {
  451. return nil, err
  452. }
  453. if interceptor == nil {
  454. return srv.(AiServer).SendAIChat(ctx, in)
  455. }
  456. info := &grpc.UnaryServerInfo{
  457. Server: srv,
  458. FullMethod: "/api.ai.Ai/SendAIChat",
  459. }
  460. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  461. return srv.(AiServer).SendAIChat(ctx, req.(*SendAIChatRequest))
  462. }
  463. return interceptor(ctx, in, info, handler)
  464. }
  465. func _Ai_FindAdditionalServiceTemplateList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  466. in := new(emptypb.Empty)
  467. if err := dec(in); err != nil {
  468. return nil, err
  469. }
  470. if interceptor == nil {
  471. return srv.(AiServer).FindAdditionalServiceTemplateList(ctx, in)
  472. }
  473. info := &grpc.UnaryServerInfo{
  474. Server: srv,
  475. FullMethod: "/api.ai.Ai/FindAdditionalServiceTemplateList",
  476. }
  477. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  478. return srv.(AiServer).FindAdditionalServiceTemplateList(ctx, req.(*emptypb.Empty))
  479. }
  480. return interceptor(ctx, in, info, handler)
  481. }
  482. func _Ai_GetAdditionalService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  483. in := new(GetAdditionalServiceRequest)
  484. if err := dec(in); err != nil {
  485. return nil, err
  486. }
  487. if interceptor == nil {
  488. return srv.(AiServer).GetAdditionalService(ctx, in)
  489. }
  490. info := &grpc.UnaryServerInfo{
  491. Server: srv,
  492. FullMethod: "/api.ai.Ai/GetAdditionalService",
  493. }
  494. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  495. return srv.(AiServer).GetAdditionalService(ctx, req.(*GetAdditionalServiceRequest))
  496. }
  497. return interceptor(ctx, in, info, handler)
  498. }
  499. func _Ai_UpdateAdditionalService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  500. in := new(UpdateAdditionalServiceRequest)
  501. if err := dec(in); err != nil {
  502. return nil, err
  503. }
  504. if interceptor == nil {
  505. return srv.(AiServer).UpdateAdditionalService(ctx, in)
  506. }
  507. info := &grpc.UnaryServerInfo{
  508. Server: srv,
  509. FullMethod: "/api.ai.Ai/UpdateAdditionalService",
  510. }
  511. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  512. return srv.(AiServer).UpdateAdditionalService(ctx, req.(*UpdateAdditionalServiceRequest))
  513. }
  514. return interceptor(ctx, in, info, handler)
  515. }
  516. func _Ai_FindUserAIMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  517. in := new(emptypb.Empty)
  518. if err := dec(in); err != nil {
  519. return nil, err
  520. }
  521. if interceptor == nil {
  522. return srv.(AiServer).FindUserAIMessage(ctx, in)
  523. }
  524. info := &grpc.UnaryServerInfo{
  525. Server: srv,
  526. FullMethod: "/api.ai.Ai/FindUserAIMessage",
  527. }
  528. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  529. return srv.(AiServer).FindUserAIMessage(ctx, req.(*emptypb.Empty))
  530. }
  531. return interceptor(ctx, in, info, handler)
  532. }
  533. func _Ai_CronAdditionalService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  534. in := new(emptypb.Empty)
  535. if err := dec(in); err != nil {
  536. return nil, err
  537. }
  538. if interceptor == nil {
  539. return srv.(AiServer).CronAdditionalService(ctx, in)
  540. }
  541. info := &grpc.UnaryServerInfo{
  542. Server: srv,
  543. FullMethod: "/api.ai.Ai/CronAdditionalService",
  544. }
  545. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  546. return srv.(AiServer).CronAdditionalService(ctx, req.(*emptypb.Empty))
  547. }
  548. return interceptor(ctx, in, info, handler)
  549. }
  550. func _Ai_GetIsRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  551. in := new(GetIsReadRequest)
  552. if err := dec(in); err != nil {
  553. return nil, err
  554. }
  555. if interceptor == nil {
  556. return srv.(AiServer).GetIsRead(ctx, in)
  557. }
  558. info := &grpc.UnaryServerInfo{
  559. Server: srv,
  560. FullMethod: "/api.ai.Ai/GetIsRead",
  561. }
  562. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  563. return srv.(AiServer).GetIsRead(ctx, req.(*GetIsReadRequest))
  564. }
  565. return interceptor(ctx, in, info, handler)
  566. }
  567. func _Ai_GetAIShareMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  568. in := new(GetAIShareMessageRequest)
  569. if err := dec(in); err != nil {
  570. return nil, err
  571. }
  572. if interceptor == nil {
  573. return srv.(AiServer).GetAIShareMessage(ctx, in)
  574. }
  575. info := &grpc.UnaryServerInfo{
  576. Server: srv,
  577. FullMethod: "/api.ai.Ai/GetAIShareMessage",
  578. }
  579. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  580. return srv.(AiServer).GetAIShareMessage(ctx, req.(*GetAIShareMessageRequest))
  581. }
  582. return interceptor(ctx, in, info, handler)
  583. }
  584. func _Ai_GetShareQrcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  585. in := new(GetAIShareMessageRequest)
  586. if err := dec(in); err != nil {
  587. return nil, err
  588. }
  589. if interceptor == nil {
  590. return srv.(AiServer).GetShareQrcode(ctx, in)
  591. }
  592. info := &grpc.UnaryServerInfo{
  593. Server: srv,
  594. FullMethod: "/api.ai.Ai/GetShareQrcode",
  595. }
  596. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  597. return srv.(AiServer).GetShareQrcode(ctx, req.(*GetAIShareMessageRequest))
  598. }
  599. return interceptor(ctx, in, info, handler)
  600. }
  601. func _Ai_SetVideoLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  602. in := new(SetVideoLinkRequest)
  603. if err := dec(in); err != nil {
  604. return nil, err
  605. }
  606. if interceptor == nil {
  607. return srv.(AiServer).SetVideoLink(ctx, in)
  608. }
  609. info := &grpc.UnaryServerInfo{
  610. Server: srv,
  611. FullMethod: "/api.ai.Ai/SetVideoLink",
  612. }
  613. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  614. return srv.(AiServer).SetVideoLink(ctx, req.(*SetVideoLinkRequest))
  615. }
  616. return interceptor(ctx, in, info, handler)
  617. }
  618. func _Ai_VipUpAI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  619. in := new(GetAIShareMessageRequest)
  620. if err := dec(in); err != nil {
  621. return nil, err
  622. }
  623. if interceptor == nil {
  624. return srv.(AiServer).VipUpAI(ctx, in)
  625. }
  626. info := &grpc.UnaryServerInfo{
  627. Server: srv,
  628. FullMethod: "/api.ai.Ai/VipUpAI",
  629. }
  630. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  631. return srv.(AiServer).VipUpAI(ctx, req.(*GetAIShareMessageRequest))
  632. }
  633. return interceptor(ctx, in, info, handler)
  634. }
  635. func _Ai_ShareUserInto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  636. in := new(ShareUserIntoRequest)
  637. if err := dec(in); err != nil {
  638. return nil, err
  639. }
  640. if interceptor == nil {
  641. return srv.(AiServer).ShareUserInto(ctx, in)
  642. }
  643. info := &grpc.UnaryServerInfo{
  644. Server: srv,
  645. FullMethod: "/api.ai.Ai/ShareUserInto",
  646. }
  647. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  648. return srv.(AiServer).ShareUserInto(ctx, req.(*ShareUserIntoRequest))
  649. }
  650. return interceptor(ctx, in, info, handler)
  651. }
  652. // Ai_ServiceDesc is the grpc.ServiceDesc for Ai service.
  653. // It's only intended for direct use with grpc.RegisterService,
  654. // and not to be introspected or modified (even as a copy)
  655. var Ai_ServiceDesc = grpc.ServiceDesc{
  656. ServiceName: "api.ai.Ai",
  657. HandlerType: (*AiServer)(nil),
  658. Methods: []grpc.MethodDesc{
  659. {
  660. MethodName: "FindAITemplate",
  661. Handler: _Ai_FindAITemplate_Handler,
  662. },
  663. {
  664. MethodName: "CreateAIRobot",
  665. Handler: _Ai_CreateAIRobot_Handler,
  666. },
  667. {
  668. MethodName: "DeleteAIRobot",
  669. Handler: _Ai_DeleteAIRobot_Handler,
  670. },
  671. {
  672. MethodName: "UpdateAIRobot",
  673. Handler: _Ai_UpdateAIRobot_Handler,
  674. },
  675. {
  676. MethodName: "FindAIRobotList",
  677. Handler: _Ai_FindAIRobotList_Handler,
  678. },
  679. {
  680. MethodName: "GetAIRobot",
  681. Handler: _Ai_GetAIRobot_Handler,
  682. },
  683. {
  684. MethodName: "FindAIChatRecordList",
  685. Handler: _Ai_FindAIChatRecordList_Handler,
  686. },
  687. {
  688. MethodName: "SendAIChat",
  689. Handler: _Ai_SendAIChat_Handler,
  690. },
  691. {
  692. MethodName: "FindAdditionalServiceTemplateList",
  693. Handler: _Ai_FindAdditionalServiceTemplateList_Handler,
  694. },
  695. {
  696. MethodName: "GetAdditionalService",
  697. Handler: _Ai_GetAdditionalService_Handler,
  698. },
  699. {
  700. MethodName: "UpdateAdditionalService",
  701. Handler: _Ai_UpdateAdditionalService_Handler,
  702. },
  703. {
  704. MethodName: "FindUserAIMessage",
  705. Handler: _Ai_FindUserAIMessage_Handler,
  706. },
  707. {
  708. MethodName: "CronAdditionalService",
  709. Handler: _Ai_CronAdditionalService_Handler,
  710. },
  711. {
  712. MethodName: "GetIsRead",
  713. Handler: _Ai_GetIsRead_Handler,
  714. },
  715. {
  716. MethodName: "GetAIShareMessage",
  717. Handler: _Ai_GetAIShareMessage_Handler,
  718. },
  719. {
  720. MethodName: "GetShareQrcode",
  721. Handler: _Ai_GetShareQrcode_Handler,
  722. },
  723. {
  724. MethodName: "SetVideoLink",
  725. Handler: _Ai_SetVideoLink_Handler,
  726. },
  727. {
  728. MethodName: "VipUpAI",
  729. Handler: _Ai_VipUpAI_Handler,
  730. },
  731. {
  732. MethodName: "ShareUserInto",
  733. Handler: _Ai_ShareUserInto_Handler,
  734. },
  735. },
  736. Streams: []grpc.StreamDesc{},
  737. Metadata: "ai.proto",
  738. }