|
|
@@ -37,6 +37,7 @@ type AiHTTPServer interface {
|
|
|
GetAIRobot(context.Context, *AIRobotIDRequest) (*AIRobotInfo, error)
|
|
|
GetAIShareMessage(context.Context, *GetAIShareMessageRequest) (*GetAIShareMessageReply, error)
|
|
|
GetAdditionalService(context.Context, *GetAdditionalServiceRequest) (*GetAdditionalServiceReply, error)
|
|
|
+ GetMiniProgramConf(context.Context, *emptypb.Empty) (*GetMiniProgramConfReply, error)
|
|
|
GetShareQrcode(context.Context, *GetAIShareMessageRequest) (*GetShareQrcodeReply, error)
|
|
|
SendAIChat(context.Context, *SendAIChatRequest) (*emptypb.Empty, error)
|
|
|
SetVideoLink(context.Context, *SetVideoLinkRequest) (*emptypb.Empty, error)
|
|
|
@@ -63,6 +64,7 @@ func RegisterAiHTTPServer(s *http.Server, srv AiHTTPServer) {
|
|
|
r.POST("/api/share/ai/qrcode", _Ai_GetShareQrcode0_HTTP_Handler(srv))
|
|
|
r.POST("/api/share/ai/link", _Ai_SetVideoLink0_HTTP_Handler(srv))
|
|
|
r.POST("/api/share/ai/vip", _Ai_VipUpAI0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/ai/share/conf", _Ai_GetMiniProgramConf0_HTTP_Handler(srv))
|
|
|
}
|
|
|
|
|
|
func _Ai_FindAITemplate0_HTTP_Handler(srv AiHTTPServer) func(ctx http.Context) error {
|
|
|
@@ -497,6 +499,33 @@ func _Ai_VipUpAI0_HTTP_Handler(srv AiHTTPServer) func(ctx http.Context) error {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func _Ai_GetMiniProgramConf0_HTTP_Handler(srv AiHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in emptypb.Empty
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.ai.Ai/GetMiniProgramConf")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.GetMiniProgramConf(ctx, req.(*emptypb.Empty))
|
|
|
+ })
|
|
|
+ out, err := h(ctx, &in)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ success := &reply.SuccessReply{
|
|
|
+ Code: 0,
|
|
|
+ }
|
|
|
+ if out != nil {
|
|
|
+ success.Data = out
|
|
|
+ }
|
|
|
+ return ctx.Result(200, success)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
type AiHTTPClient interface {
|
|
|
CreateAIRobot(ctx context.Context, req *CreateAIRobotRequest, opts ...http.CallOption) (rsp *AIRobotIDReply, err error)
|
|
|
DeleteAIRobot(ctx context.Context, req *AIRobotIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
@@ -508,6 +537,7 @@ type AiHTTPClient interface {
|
|
|
GetAIRobot(ctx context.Context, req *AIRobotIDRequest, opts ...http.CallOption) (rsp *AIRobotInfo, err error)
|
|
|
GetAIShareMessage(ctx context.Context, req *GetAIShareMessageRequest, opts ...http.CallOption) (rsp *GetAIShareMessageReply, err error)
|
|
|
GetAdditionalService(ctx context.Context, req *GetAdditionalServiceRequest, opts ...http.CallOption) (rsp *GetAdditionalServiceReply, err error)
|
|
|
+ GetMiniProgramConf(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMiniProgramConfReply, err error)
|
|
|
GetShareQrcode(ctx context.Context, req *GetAIShareMessageRequest, opts ...http.CallOption) (rsp *GetShareQrcodeReply, err error)
|
|
|
SendAIChat(ctx context.Context, req *SendAIChatRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
SetVideoLink(ctx context.Context, req *SetVideoLinkRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
@@ -654,6 +684,19 @@ func (c *AiHTTPClientImpl) GetAdditionalService(ctx context.Context, in *GetAddi
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *AiHTTPClientImpl) GetMiniProgramConf(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMiniProgramConfReply, error) {
|
|
|
+ var out GetMiniProgramConfReply
|
|
|
+ pattern := "/api/ai/share/conf"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.ai.Ai/GetMiniProgramConf"))
|
|
|
+ opts = append(opts, http.PathTemplate(pattern))
|
|
|
+ err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return &out, err
|
|
|
+}
|
|
|
+
|
|
|
func (c *AiHTTPClientImpl) GetShareQrcode(ctx context.Context, in *GetAIShareMessageRequest, opts ...http.CallOption) (*GetShareQrcodeReply, error) {
|
|
|
var out GetShareQrcodeReply
|
|
|
pattern := "/api/share/ai/qrcode"
|