ai_grpc.pb.go 32 KB

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