Browse Source

update

master
jaydan 2 weeks ago
parent
commit
b8a29bd8df
  1. 310
      app_gateway/v1/dynamic_gateway.pb.go
  2. 150
      app_gateway/v1/dynamic_gateway.proto
  3. 1650
      app_gateway/v1/dynamic_gateway.swagger.json
  4. 1134
      app_gateway/v1/dynamic_gateway.swagger.yaml
  5. 830
      app_gateway/v1/dynamic_gateway_grpc.pb.go
  6. 760
      app_gateway/v1/dynamic_gateway_http.pb.go
  7. 4025
      app_gateway/v1/dynamic_params.pb.go
  8. 400
      app_gateway/v1/dynamic_params.proto

310
app_gateway/v1/dynamic_gateway.pb.go

@ -0,0 +1,310 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.19.5
// source: app_gateway/v1/dynamic_gateway.proto
package v1
import (
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/dynamic/v1"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_app_gateway_v1_dynamic_gateway_proto protoreflect.FileDescriptor
var file_app_gateway_v1_dynamic_gateway_proto_rawDesc = []byte{
0x0a, 0x24, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31,
0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65,
0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
0x79, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x72,
0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x61, 0x70, 0x70, 0x5f, 0x67,
0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f,
0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x32, 0x92, 0x14, 0x0a, 0x0e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x47, 0x61, 0x74, 0x65,
0x77, 0x61, 0x79, 0x12, 0x67, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x79, 0x6e,
0x61, 0x6d, 0x69, 0x63, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77,
0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x79, 0x6e, 0x61,
0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74,
0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1d, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d,
0x69, 0x63, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0d,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x20, 0x2e,
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a,
0x15, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31,
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12,
0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x75, 0x70, 0x64, 0x61,
0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44,
0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74,
0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67,
0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e,
0x61, 0x6d, 0x69, 0x63, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x68,
0x0a, 0x0b, 0x4c, 0x69, 0x6b, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x1e, 0x2e,
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
0x69, 0x6b, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e,
0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x73, 0x70, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x76,
0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x6c, 0x69, 0x6b, 0x65, 0x2f, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x74, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x63,
0x65, 0x6c, 0x4c, 0x69, 0x6b, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x24, 0x2e,
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x69, 0x6b, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63,
0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2e, 0x76, 0x31,
0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x1c, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f,
0x6c, 0x69, 0x6b, 0x65, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x70,
0x0a, 0x0b, 0x4c, 0x69, 0x6b, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x2e,
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
0x69, 0x6b, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e,
0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x73, 0x70, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f, 0x76,
0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
0x74, 0x2f, 0x6c, 0x69, 0x6b, 0x65, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a,
0x12, 0x7c, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x69, 0x6b, 0x65, 0x43, 0x6f,
0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65,
0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4c, 0x69, 0x6b,
0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
0x73, 0x70, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f,
0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2f,
0x6c, 0x69, 0x6b, 0x65, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x90,
0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63,
0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61,
0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44,
0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71,
0x1a, 0x28, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x43,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f,
0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01,
0x2a, 0x12, 0x7d, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d,
0x69, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x70, 0x5f,
0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52,
0x65, 0x71, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x63,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01, 0x2a,
0x12, 0x8c, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69,
0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67,
0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44,
0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71,
0x1a, 0x27, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76,
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x43, 0x6f,
0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02,
0x1e, 0x22, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x63,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x3a, 0x01, 0x2a, 0x12,
0x71, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69,
0x63, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69,
0x63, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x25, 0x82, 0xd3, 0xe4,
0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63,
0x2f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a,
0x01, 0x2a, 0x12, 0x7d, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6f, 0x6c, 0x6c,
0x65, 0x63, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x70,
0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63,
0x65, 0x6c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63,
0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2e, 0x76, 0x31,
0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f,
0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x3a, 0x01,
0x2a, 0x12, 0x8c, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
0x63, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x70, 0x5f,
0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65,
0x71, 0x1a, 0x27, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e,
0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x44,
0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x1e, 0x22, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f,
0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x3a, 0x01, 0x2a,
0x12, 0x80, 0x01, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x6b, 0x65, 0x44, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65,
0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x6b, 0x65,
0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x70,
0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72,
0x79, 0x4c, 0x69, 0x6b, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70,
0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x6c, 0x69, 0x6b, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79,
0x3a, 0x01, 0x2a, 0x12, 0x94, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x28, 0x2e,
0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51,
0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x44, 0x79, 0x6e,
0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61,
0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65,
0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65,
0x73, 0x70, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f,
0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
0x64, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x88, 0x01, 0x0a, 0x12, 0x51,
0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69,
0x63, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e,
0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67,
0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46,
0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70,
0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x2f, 0x71, 0x75, 0x65,
0x72, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x88, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e,
0x65, 0x61, 0x72, 0x62, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x25, 0x2e, 0x61,
0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x4e, 0x65, 0x61, 0x72, 0x62, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63,
0x52, 0x65, 0x71, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x61, 0x72, 0x62, 0x79,
0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x22, 0x23, 0x82, 0xd3, 0xe4,
0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63,
0x2f, 0x6e, 0x65, 0x61, 0x72, 0x62, 0x79, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x3a, 0x01, 0x2a,
0x12, 0x80, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69,
0x63, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61,
0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x20,
0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70,
0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x75, 0x73, 0x65, 0x72,
0x3a, 0x01, 0x2a, 0x12, 0x8c, 0x01, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65,
0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12,
0x2a, 0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31,
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74,
0x65, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x61, 0x70,
0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65,
0x72, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x22, 0x23, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d,
0x69, 0x63, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a,
0x01, 0x2a, 0x12, 0x90, 0x01, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x79, 0x6e, 0x61,
0x6d, 0x69, 0x63, 0x44, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x49, 0x64, 0x12, 0x2a,
0x2e, 0x61, 0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x44, 0x79, 0x44, 0x79,
0x6e, 0x61, 0x6d, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x70,
0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72,
0x79, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x22, 0x27, 0x82, 0xd3,
0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69,
0x63, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f,
0x69, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x2e, 0x67, 0x7a, 0x2e,
0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a, 0x75, 0x6d, 0x61, 0x69, 0x79, 0x78,
0x2e, 0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61,
0x70, 0x70, 0x5f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_app_gateway_v1_dynamic_gateway_proto_goTypes = []interface{}{
(*CreateDynamicReq)(nil), // 0: app_gateway.v1.CreateDynamicReq
(*UpdateDynamicReq)(nil), // 1: app_gateway.v1.UpdateDynamicReq
(*DeleteDynamicReq)(nil), // 2: app_gateway.v1.DeleteDynamicReq
(*LikeDynamicReq)(nil), // 3: app_gateway.v1.LikeDynamicReq
(*CancelLikeDynamicReq)(nil), // 4: app_gateway.v1.CancelLikeDynamicReq
(*LikeCommentReq)(nil), // 5: app_gateway.v1.LikeCommentReq
(*CancelLikeCommentReq)(nil), // 6: app_gateway.v1.CancelLikeCommentReq
(*CreateDynamicCommentReq)(nil), // 7: app_gateway.v1.CreateDynamicCommentReq
(*DeleteDynamicCommentReq)(nil), // 8: app_gateway.v1.DeleteDynamicCommentReq
(*QueryDynamicCommentReq)(nil), // 9: app_gateway.v1.QueryDynamicCommentReq
(*CollectDynamicReq)(nil), // 10: app_gateway.v1.CollectDynamicReq
(*CancelCollectDynamicReq)(nil), // 11: app_gateway.v1.CancelCollectDynamicReq
(*QueryCollectDynamicReq)(nil), // 12: app_gateway.v1.QueryCollectDynamicReq
(*QueryLikeDynamicReq)(nil), // 13: app_gateway.v1.QueryLikeDynamicReq
(*QueryRecommendDynamicReq)(nil), // 14: app_gateway.v1.QueryRecommendDynamicReq
(*QueryFollowDynamicReq)(nil), // 15: app_gateway.v1.QueryFollowDynamicReq
(*QueryNearbyDynamicReq)(nil), // 16: app_gateway.v1.QueryNearbyDynamicReq
(*QueryDynamicByUserReq)(nil), // 17: app_gateway.v1.QueryDynamicByUserReq
(*QueryUserPrivateDynamicReq)(nil), // 18: app_gateway.v1.QueryUserPrivateDynamicReq
(*QueryDynamicDyDynamicIdReq)(nil), // 19: app_gateway.v1.QueryDynamicDyDynamicIdReq
(*Empty)(nil), // 20: app_gateway.v1.Empty
(*v1.CountResp)(nil), // 21: dynamic.v1.CountResp
(*CreateDynamicCommentResp)(nil), // 22: app_gateway.v1.CreateDynamicCommentResp
(*QueryDynamicCommentResp)(nil), // 23: app_gateway.v1.QueryDynamicCommentResp
(*QueryCollectDynamicResp)(nil), // 24: app_gateway.v1.QueryCollectDynamicResp
(*QueryLikeDynamicResp)(nil), // 25: app_gateway.v1.QueryLikeDynamicResp
(*QueryRecommendDynamicResp)(nil), // 26: app_gateway.v1.QueryRecommendDynamicResp
(*QueryFollowDynamicResp)(nil), // 27: app_gateway.v1.QueryFollowDynamicResp
(*QueryNearbyDynamicResp)(nil), // 28: app_gateway.v1.QueryNearbyDynamicResp
(*QueryDynamicResp)(nil), // 29: app_gateway.v1.QueryDynamicResp
}
var file_app_gateway_v1_dynamic_gateway_proto_depIdxs = []int32{
0, // 0: app_gateway.v1.DynamicGateway.CreateDynamic:input_type -> app_gateway.v1.CreateDynamicReq
1, // 1: app_gateway.v1.DynamicGateway.UpdateDynamic:input_type -> app_gateway.v1.UpdateDynamicReq
2, // 2: app_gateway.v1.DynamicGateway.DeleteDynamic:input_type -> app_gateway.v1.DeleteDynamicReq
3, // 3: app_gateway.v1.DynamicGateway.LikeDynamic:input_type -> app_gateway.v1.LikeDynamicReq
4, // 4: app_gateway.v1.DynamicGateway.CancelLikeDynamic:input_type -> app_gateway.v1.CancelLikeDynamicReq
5, // 5: app_gateway.v1.DynamicGateway.LikeComment:input_type -> app_gateway.v1.LikeCommentReq
6, // 6: app_gateway.v1.DynamicGateway.CancelLikeComment:input_type -> app_gateway.v1.CancelLikeCommentReq
7, // 7: app_gateway.v1.DynamicGateway.CreateDynamicComment:input_type -> app_gateway.v1.CreateDynamicCommentReq
8, // 8: app_gateway.v1.DynamicGateway.DeleteDynamicComment:input_type -> app_gateway.v1.DeleteDynamicCommentReq
9, // 9: app_gateway.v1.DynamicGateway.QueryDynamicComment:input_type -> app_gateway.v1.QueryDynamicCommentReq
10, // 10: app_gateway.v1.DynamicGateway.CollectDynamic:input_type -> app_gateway.v1.CollectDynamicReq
11, // 11: app_gateway.v1.DynamicGateway.CancelCollectDynamic:input_type -> app_gateway.v1.CancelCollectDynamicReq
12, // 12: app_gateway.v1.DynamicGateway.QueryCollectDynamic:input_type -> app_gateway.v1.QueryCollectDynamicReq
13, // 13: app_gateway.v1.DynamicGateway.QueryLikeDynamic:input_type -> app_gateway.v1.QueryLikeDynamicReq
14, // 14: app_gateway.v1.DynamicGateway.QueryRecommendDynamic:input_type -> app_gateway.v1.QueryRecommendDynamicReq
15, // 15: app_gateway.v1.DynamicGateway.QueryFollowDynamic:input_type -> app_gateway.v1.QueryFollowDynamicReq
16, // 16: app_gateway.v1.DynamicGateway.QueryNearbyDynamic:input_type -> app_gateway.v1.QueryNearbyDynamicReq
17, // 17: app_gateway.v1.DynamicGateway.QueryDynamicByUser:input_type -> app_gateway.v1.QueryDynamicByUserReq
18, // 18: app_gateway.v1.DynamicGateway.QueryUserPrivateDynamic:input_type -> app_gateway.v1.QueryUserPrivateDynamicReq
19, // 19: app_gateway.v1.DynamicGateway.QueryDynamicDyDynamicId:input_type -> app_gateway.v1.QueryDynamicDyDynamicIdReq
20, // 20: app_gateway.v1.DynamicGateway.CreateDynamic:output_type -> app_gateway.v1.Empty
20, // 21: app_gateway.v1.DynamicGateway.UpdateDynamic:output_type -> app_gateway.v1.Empty
20, // 22: app_gateway.v1.DynamicGateway.DeleteDynamic:output_type -> app_gateway.v1.Empty
21, // 23: app_gateway.v1.DynamicGateway.LikeDynamic:output_type -> dynamic.v1.CountResp
21, // 24: app_gateway.v1.DynamicGateway.CancelLikeDynamic:output_type -> dynamic.v1.CountResp
21, // 25: app_gateway.v1.DynamicGateway.LikeComment:output_type -> dynamic.v1.CountResp
21, // 26: app_gateway.v1.DynamicGateway.CancelLikeComment:output_type -> dynamic.v1.CountResp
22, // 27: app_gateway.v1.DynamicGateway.CreateDynamicComment:output_type -> app_gateway.v1.CreateDynamicCommentResp
20, // 28: app_gateway.v1.DynamicGateway.DeleteDynamicComment:output_type -> app_gateway.v1.Empty
23, // 29: app_gateway.v1.DynamicGateway.QueryDynamicComment:output_type -> app_gateway.v1.QueryDynamicCommentResp
21, // 30: app_gateway.v1.DynamicGateway.CollectDynamic:output_type -> dynamic.v1.CountResp
21, // 31: app_gateway.v1.DynamicGateway.CancelCollectDynamic:output_type -> dynamic.v1.CountResp
24, // 32: app_gateway.v1.DynamicGateway.QueryCollectDynamic:output_type -> app_gateway.v1.QueryCollectDynamicResp
25, // 33: app_gateway.v1.DynamicGateway.QueryLikeDynamic:output_type -> app_gateway.v1.QueryLikeDynamicResp
26, // 34: app_gateway.v1.DynamicGateway.QueryRecommendDynamic:output_type -> app_gateway.v1.QueryRecommendDynamicResp
27, // 35: app_gateway.v1.DynamicGateway.QueryFollowDynamic:output_type -> app_gateway.v1.QueryFollowDynamicResp
28, // 36: app_gateway.v1.DynamicGateway.QueryNearbyDynamic:output_type -> app_gateway.v1.QueryNearbyDynamicResp
29, // 37: app_gateway.v1.DynamicGateway.QueryDynamicByUser:output_type -> app_gateway.v1.QueryDynamicResp
29, // 38: app_gateway.v1.DynamicGateway.QueryUserPrivateDynamic:output_type -> app_gateway.v1.QueryDynamicResp
29, // 39: app_gateway.v1.DynamicGateway.QueryDynamicDyDynamicId:output_type -> app_gateway.v1.QueryDynamicResp
20, // [20:40] is the sub-list for method output_type
0, // [0:20] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_app_gateway_v1_dynamic_gateway_proto_init() }
func file_app_gateway_v1_dynamic_gateway_proto_init() {
if File_app_gateway_v1_dynamic_gateway_proto != nil {
return
}
file_app_gateway_v1_dynamic_params_proto_init()
file_app_gateway_v1_common_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_app_gateway_v1_dynamic_gateway_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_app_gateway_v1_dynamic_gateway_proto_goTypes,
DependencyIndexes: file_app_gateway_v1_dynamic_gateway_proto_depIdxs,
}.Build()
File_app_gateway_v1_dynamic_gateway_proto = out.File
file_app_gateway_v1_dynamic_gateway_proto_rawDesc = nil
file_app_gateway_v1_dynamic_gateway_proto_goTypes = nil
file_app_gateway_v1_dynamic_gateway_proto_depIdxs = nil
}

150
app_gateway/v1/dynamic_gateway.proto

@ -0,0 +1,150 @@
syntax = "proto3";
package app_gateway.v1;
option go_package = "git.gz.internal.jumaiyx.cn/jm/jmproto/app_gateway/v1;v1";
import "google/api/annotations.proto";
import "app_gateway/v1/dynamic_params.proto";
import "app_gateway/v1/common.proto";
import "dynamic/v1/dynamic.proto";
service DynamicGateway {
//
rpc CreateDynamic (CreateDynamicReq) returns (Empty) {
option (google.api.http) = {
post: "/v1/dynamic/create"
body: "*"
};
}
//
rpc UpdateDynamic (UpdateDynamicReq) returns (Empty) {
option (google.api.http) = {
post: "/v1/dynamic/update"
body: "*"
};
}
//
rpc DeleteDynamic (DeleteDynamicReq) returns (Empty) {
option (google.api.http) = {
post: "/v1/dynamic/delete"
body: "*"
};
}
//
rpc LikeDynamic (LikeDynamicReq) returns (dynamic.v1.CountResp) {
option (google.api.http) = {
post: "/v1/dynamic/like/create"
body: "*"
};
}
//
rpc CancelLikeDynamic (CancelLikeDynamicReq) returns (dynamic.v1.CountResp){
option (google.api.http) = {
post: "/v1/dynamic/like/delete"
body: "*"
};
}
//
rpc LikeComment (LikeCommentReq) returns (dynamic.v1.CountResp){
option (google.api.http) = {
post: "/v1/dynamic/comment/like/create"
body: "*"
};
}
//
rpc CancelLikeComment (CancelLikeCommentReq) returns (dynamic.v1.CountResp){
option (google.api.http) = {
post: "/v1/dynamic/comment/like/delete"
body: "*"
};
}
//
rpc CreateDynamicComment (CreateDynamicCommentReq) returns (CreateDynamicCommentResp){
option (google.api.http) = {
post: "/v1/dynamic/comment/create"
body: "*"
};
}
//
rpc DeleteDynamicComment (DeleteDynamicCommentReq) returns (Empty){
option (google.api.http) = {
post: "/v1/dynamic/comment/delete"
body: "*"
};
}
//
rpc QueryDynamicComment (QueryDynamicCommentReq) returns (QueryDynamicCommentResp){
option (google.api.http) = {
post: "/v1/dynamic/comment/query"
body: "*"
};
}
//
rpc CollectDynamic (CollectDynamicReq) returns (dynamic.v1.CountResp){
option (google.api.http) = {
post: "/v1/dynamic/collect/create"
body: "*"
};
}
//
rpc CancelCollectDynamic (CancelCollectDynamicReq) returns (dynamic.v1.CountResp){
option (google.api.http) = {
post: "/v1/dynamic/collect/delete"
body: "*"
};
}
//
rpc QueryCollectDynamic (QueryCollectDynamicReq) returns (QueryCollectDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/collect/query"
body: "*"
};
}
//
rpc QueryLikeDynamic (QueryLikeDynamicReq) returns (QueryLikeDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/like/query"
body: "*"
};
}
//
rpc QueryRecommendDynamic (QueryRecommendDynamicReq) returns (QueryRecommendDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/recommend/query"
body: "*"
};
}
//
rpc QueryFollowDynamic (QueryFollowDynamicReq) returns (QueryFollowDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/follow/query"
body: "*"
};
}
//
rpc QueryNearbyDynamic (QueryNearbyDynamicReq) returns (QueryNearbyDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/nearby/query"
body: "*"
};
}
//
rpc QueryDynamicByUser (QueryDynamicByUserReq) returns (QueryDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/query/user"
body: "*"
};
}
//
rpc QueryUserPrivateDynamic (QueryUserPrivateDynamicReq) returns (QueryDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/user/private"
body: "*"
};
}
// id
rpc QueryDynamicDyDynamicId (QueryDynamicDyDynamicIdReq) returns (QueryDynamicResp){
option (google.api.http) = {
post: "/v1/dynamic/query/dynamic_id"
body: "*"
};
}
}

1650
app_gateway/v1/dynamic_gateway.swagger.json

File diff suppressed because it is too large Load Diff

1134
app_gateway/v1/dynamic_gateway.swagger.yaml

File diff suppressed because it is too large Load Diff

830
app_gateway/v1/dynamic_gateway_grpc.pb.go

@ -0,0 +1,830 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.19.5
// source: app_gateway/v1/dynamic_gateway.proto
package v1
import (
context "context"
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/dynamic/v1"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// DynamicGatewayClient is the client API for DynamicGateway service.
//
// 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.
type DynamicGatewayClient interface {
// 创建动态
CreateDynamic(ctx context.Context, in *CreateDynamicReq, opts ...grpc.CallOption) (*Empty, error)
// 更新动态
UpdateDynamic(ctx context.Context, in *UpdateDynamicReq, opts ...grpc.CallOption) (*Empty, error)
// 删除动态
DeleteDynamic(ctx context.Context, in *DeleteDynamicReq, opts ...grpc.CallOption) (*Empty, error)
// 点赞动态
LikeDynamic(ctx context.Context, in *LikeDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error)
// 取消点赞动态
CancelLikeDynamic(ctx context.Context, in *CancelLikeDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error)
// 点赞评论
LikeComment(ctx context.Context, in *LikeCommentReq, opts ...grpc.CallOption) (*v1.CountResp, error)
// 取消点赞评论
CancelLikeComment(ctx context.Context, in *CancelLikeCommentReq, opts ...grpc.CallOption) (*v1.CountResp, error)
// 新增动态评论
CreateDynamicComment(ctx context.Context, in *CreateDynamicCommentReq, opts ...grpc.CallOption) (*CreateDynamicCommentResp, error)
// 删除动态评论
DeleteDynamicComment(ctx context.Context, in *DeleteDynamicCommentReq, opts ...grpc.CallOption) (*Empty, error)
// 查询动态评论
QueryDynamicComment(ctx context.Context, in *QueryDynamicCommentReq, opts ...grpc.CallOption) (*QueryDynamicCommentResp, error)
// 收藏动态
CollectDynamic(ctx context.Context, in *CollectDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error)
// 取消收藏
CancelCollectDynamic(ctx context.Context, in *CancelCollectDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error)
// 获取收藏动态列表
QueryCollectDynamic(ctx context.Context, in *QueryCollectDynamicReq, opts ...grpc.CallOption) (*QueryCollectDynamicResp, error)
// 获取点赞动态列表
QueryLikeDynamic(ctx context.Context, in *QueryLikeDynamicReq, opts ...grpc.CallOption) (*QueryLikeDynamicResp, error)
// 推荐页面的数据
QueryRecommendDynamic(ctx context.Context, in *QueryRecommendDynamicReq, opts ...grpc.CallOption) (*QueryRecommendDynamicResp, error)
// 关注用户的动态数据
QueryFollowDynamic(ctx context.Context, in *QueryFollowDynamicReq, opts ...grpc.CallOption) (*QueryFollowDynamicResp, error)
// 同城页面的动态数据
QueryNearbyDynamic(ctx context.Context, in *QueryNearbyDynamicReq, opts ...grpc.CallOption) (*QueryNearbyDynamicResp, error)
// 获取用户动态
QueryDynamicByUser(ctx context.Context, in *QueryDynamicByUserReq, opts ...grpc.CallOption) (*QueryDynamicResp, error)
// 获取自己的私密动态
QueryUserPrivateDynamic(ctx context.Context, in *QueryUserPrivateDynamicReq, opts ...grpc.CallOption) (*QueryDynamicResp, error)
// 获取动态根据动态id
QueryDynamicDyDynamicId(ctx context.Context, in *QueryDynamicDyDynamicIdReq, opts ...grpc.CallOption) (*QueryDynamicResp, error)
}
type dynamicGatewayClient struct {
cc grpc.ClientConnInterface
}
func NewDynamicGatewayClient(cc grpc.ClientConnInterface) DynamicGatewayClient {
return &dynamicGatewayClient{cc}
}
func (c *dynamicGatewayClient) CreateDynamic(ctx context.Context, in *CreateDynamicReq, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/CreateDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) UpdateDynamic(ctx context.Context, in *UpdateDynamicReq, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/UpdateDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) DeleteDynamic(ctx context.Context, in *DeleteDynamicReq, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/DeleteDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) LikeDynamic(ctx context.Context, in *LikeDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error) {
out := new(v1.CountResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/LikeDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) CancelLikeDynamic(ctx context.Context, in *CancelLikeDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error) {
out := new(v1.CountResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/CancelLikeDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) LikeComment(ctx context.Context, in *LikeCommentReq, opts ...grpc.CallOption) (*v1.CountResp, error) {
out := new(v1.CountResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/LikeComment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) CancelLikeComment(ctx context.Context, in *CancelLikeCommentReq, opts ...grpc.CallOption) (*v1.CountResp, error) {
out := new(v1.CountResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/CancelLikeComment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) CreateDynamicComment(ctx context.Context, in *CreateDynamicCommentReq, opts ...grpc.CallOption) (*CreateDynamicCommentResp, error) {
out := new(CreateDynamicCommentResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/CreateDynamicComment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) DeleteDynamicComment(ctx context.Context, in *DeleteDynamicCommentReq, opts ...grpc.CallOption) (*Empty, error) {
out := new(Empty)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/DeleteDynamicComment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryDynamicComment(ctx context.Context, in *QueryDynamicCommentReq, opts ...grpc.CallOption) (*QueryDynamicCommentResp, error) {
out := new(QueryDynamicCommentResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryDynamicComment", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) CollectDynamic(ctx context.Context, in *CollectDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error) {
out := new(v1.CountResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/CollectDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) CancelCollectDynamic(ctx context.Context, in *CancelCollectDynamicReq, opts ...grpc.CallOption) (*v1.CountResp, error) {
out := new(v1.CountResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/CancelCollectDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryCollectDynamic(ctx context.Context, in *QueryCollectDynamicReq, opts ...grpc.CallOption) (*QueryCollectDynamicResp, error) {
out := new(QueryCollectDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryCollectDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryLikeDynamic(ctx context.Context, in *QueryLikeDynamicReq, opts ...grpc.CallOption) (*QueryLikeDynamicResp, error) {
out := new(QueryLikeDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryLikeDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryRecommendDynamic(ctx context.Context, in *QueryRecommendDynamicReq, opts ...grpc.CallOption) (*QueryRecommendDynamicResp, error) {
out := new(QueryRecommendDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryRecommendDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryFollowDynamic(ctx context.Context, in *QueryFollowDynamicReq, opts ...grpc.CallOption) (*QueryFollowDynamicResp, error) {
out := new(QueryFollowDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryFollowDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryNearbyDynamic(ctx context.Context, in *QueryNearbyDynamicReq, opts ...grpc.CallOption) (*QueryNearbyDynamicResp, error) {
out := new(QueryNearbyDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryNearbyDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryDynamicByUser(ctx context.Context, in *QueryDynamicByUserReq, opts ...grpc.CallOption) (*QueryDynamicResp, error) {
out := new(QueryDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryDynamicByUser", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryUserPrivateDynamic(ctx context.Context, in *QueryUserPrivateDynamicReq, opts ...grpc.CallOption) (*QueryDynamicResp, error) {
out := new(QueryDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryUserPrivateDynamic", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *dynamicGatewayClient) QueryDynamicDyDynamicId(ctx context.Context, in *QueryDynamicDyDynamicIdReq, opts ...grpc.CallOption) (*QueryDynamicResp, error) {
out := new(QueryDynamicResp)
err := c.cc.Invoke(ctx, "/app_gateway.v1.DynamicGateway/QueryDynamicDyDynamicId", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DynamicGatewayServer is the server API for DynamicGateway service.
// All implementations must embed UnimplementedDynamicGatewayServer
// for forward compatibility
type DynamicGatewayServer interface {
// 创建动态
CreateDynamic(context.Context, *CreateDynamicReq) (*Empty, error)
// 更新动态
UpdateDynamic(context.Context, *UpdateDynamicReq) (*Empty, error)
// 删除动态
DeleteDynamic(context.Context, *DeleteDynamicReq) (*Empty, error)
// 点赞动态
LikeDynamic(context.Context, *LikeDynamicReq) (*v1.CountResp, error)
// 取消点赞动态
CancelLikeDynamic(context.Context, *CancelLikeDynamicReq) (*v1.CountResp, error)
// 点赞评论
LikeComment(context.Context, *LikeCommentReq) (*v1.CountResp, error)
// 取消点赞评论
CancelLikeComment(context.Context, *CancelLikeCommentReq) (*v1.CountResp, error)
// 新增动态评论
CreateDynamicComment(context.Context, *CreateDynamicCommentReq) (*CreateDynamicCommentResp, error)
// 删除动态评论
DeleteDynamicComment(context.Context, *DeleteDynamicCommentReq) (*Empty, error)
// 查询动态评论
QueryDynamicComment(context.Context, *QueryDynamicCommentReq) (*QueryDynamicCommentResp, error)
// 收藏动态
CollectDynamic(context.Context, *CollectDynamicReq) (*v1.CountResp, error)
// 取消收藏
CancelCollectDynamic(context.Context, *CancelCollectDynamicReq) (*v1.CountResp, error)
// 获取收藏动态列表
QueryCollectDynamic(context.Context, *QueryCollectDynamicReq) (*QueryCollectDynamicResp, error)
// 获取点赞动态列表
QueryLikeDynamic(context.Context, *QueryLikeDynamicReq) (*QueryLikeDynamicResp, error)
// 推荐页面的数据
QueryRecommendDynamic(context.Context, *QueryRecommendDynamicReq) (*QueryRecommendDynamicResp, error)
// 关注用户的动态数据
QueryFollowDynamic(context.Context, *QueryFollowDynamicReq) (*QueryFollowDynamicResp, error)
// 同城页面的动态数据
QueryNearbyDynamic(context.Context, *QueryNearbyDynamicReq) (*QueryNearbyDynamicResp, error)
// 获取用户动态
QueryDynamicByUser(context.Context, *QueryDynamicByUserReq) (*QueryDynamicResp, error)
// 获取自己的私密动态
QueryUserPrivateDynamic(context.Context, *QueryUserPrivateDynamicReq) (*QueryDynamicResp, error)
// 获取动态根据动态id
QueryDynamicDyDynamicId(context.Context, *QueryDynamicDyDynamicIdReq) (*QueryDynamicResp, error)
mustEmbedUnimplementedDynamicGatewayServer()
}
// UnimplementedDynamicGatewayServer must be embedded to have forward compatible implementations.
type UnimplementedDynamicGatewayServer struct {
}
func (UnimplementedDynamicGatewayServer) CreateDynamic(context.Context, *CreateDynamicReq) (*Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) UpdateDynamic(context.Context, *UpdateDynamicReq) (*Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) DeleteDynamic(context.Context, *DeleteDynamicReq) (*Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) LikeDynamic(context.Context, *LikeDynamicReq) (*v1.CountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method LikeDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) CancelLikeDynamic(context.Context, *CancelLikeDynamicReq) (*v1.CountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelLikeDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) LikeComment(context.Context, *LikeCommentReq) (*v1.CountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method LikeComment not implemented")
}
func (UnimplementedDynamicGatewayServer) CancelLikeComment(context.Context, *CancelLikeCommentReq) (*v1.CountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelLikeComment not implemented")
}
func (UnimplementedDynamicGatewayServer) CreateDynamicComment(context.Context, *CreateDynamicCommentReq) (*CreateDynamicCommentResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateDynamicComment not implemented")
}
func (UnimplementedDynamicGatewayServer) DeleteDynamicComment(context.Context, *DeleteDynamicCommentReq) (*Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteDynamicComment not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryDynamicComment(context.Context, *QueryDynamicCommentReq) (*QueryDynamicCommentResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryDynamicComment not implemented")
}
func (UnimplementedDynamicGatewayServer) CollectDynamic(context.Context, *CollectDynamicReq) (*v1.CountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CollectDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) CancelCollectDynamic(context.Context, *CancelCollectDynamicReq) (*v1.CountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelCollectDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryCollectDynamic(context.Context, *QueryCollectDynamicReq) (*QueryCollectDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryCollectDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryLikeDynamic(context.Context, *QueryLikeDynamicReq) (*QueryLikeDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryLikeDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryRecommendDynamic(context.Context, *QueryRecommendDynamicReq) (*QueryRecommendDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryRecommendDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryFollowDynamic(context.Context, *QueryFollowDynamicReq) (*QueryFollowDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryFollowDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryNearbyDynamic(context.Context, *QueryNearbyDynamicReq) (*QueryNearbyDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryNearbyDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryDynamicByUser(context.Context, *QueryDynamicByUserReq) (*QueryDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryDynamicByUser not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryUserPrivateDynamic(context.Context, *QueryUserPrivateDynamicReq) (*QueryDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryUserPrivateDynamic not implemented")
}
func (UnimplementedDynamicGatewayServer) QueryDynamicDyDynamicId(context.Context, *QueryDynamicDyDynamicIdReq) (*QueryDynamicResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryDynamicDyDynamicId not implemented")
}
func (UnimplementedDynamicGatewayServer) mustEmbedUnimplementedDynamicGatewayServer() {}
// UnsafeDynamicGatewayServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to DynamicGatewayServer will
// result in compilation errors.
type UnsafeDynamicGatewayServer interface {
mustEmbedUnimplementedDynamicGatewayServer()
}
func RegisterDynamicGatewayServer(s grpc.ServiceRegistrar, srv DynamicGatewayServer) {
s.RegisterService(&DynamicGateway_ServiceDesc, srv)
}
func _DynamicGateway_CreateDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).CreateDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/CreateDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).CreateDynamic(ctx, req.(*CreateDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_UpdateDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).UpdateDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/UpdateDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).UpdateDynamic(ctx, req.(*UpdateDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_DeleteDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).DeleteDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/DeleteDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).DeleteDynamic(ctx, req.(*DeleteDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_LikeDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LikeDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).LikeDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/LikeDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).LikeDynamic(ctx, req.(*LikeDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_CancelLikeDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelLikeDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).CancelLikeDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/CancelLikeDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).CancelLikeDynamic(ctx, req.(*CancelLikeDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_LikeComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LikeCommentReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).LikeComment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/LikeComment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).LikeComment(ctx, req.(*LikeCommentReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_CancelLikeComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelLikeCommentReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).CancelLikeComment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/CancelLikeComment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).CancelLikeComment(ctx, req.(*CancelLikeCommentReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_CreateDynamicComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateDynamicCommentReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).CreateDynamicComment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/CreateDynamicComment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).CreateDynamicComment(ctx, req.(*CreateDynamicCommentReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_DeleteDynamicComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteDynamicCommentReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).DeleteDynamicComment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/DeleteDynamicComment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).DeleteDynamicComment(ctx, req.(*DeleteDynamicCommentReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryDynamicComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryDynamicCommentReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryDynamicComment(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryDynamicComment",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryDynamicComment(ctx, req.(*QueryDynamicCommentReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_CollectDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CollectDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).CollectDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/CollectDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).CollectDynamic(ctx, req.(*CollectDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_CancelCollectDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelCollectDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).CancelCollectDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/CancelCollectDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).CancelCollectDynamic(ctx, req.(*CancelCollectDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryCollectDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryCollectDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryCollectDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryCollectDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryCollectDynamic(ctx, req.(*QueryCollectDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryLikeDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryLikeDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryLikeDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryLikeDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryLikeDynamic(ctx, req.(*QueryLikeDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryRecommendDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryRecommendDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryRecommendDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryRecommendDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryRecommendDynamic(ctx, req.(*QueryRecommendDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryFollowDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryFollowDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryFollowDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryFollowDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryFollowDynamic(ctx, req.(*QueryFollowDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryNearbyDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryNearbyDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryNearbyDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryNearbyDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryNearbyDynamic(ctx, req.(*QueryNearbyDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryDynamicByUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryDynamicByUserReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryDynamicByUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryDynamicByUser",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryDynamicByUser(ctx, req.(*QueryDynamicByUserReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryUserPrivateDynamic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryUserPrivateDynamicReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryUserPrivateDynamic(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryUserPrivateDynamic",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryUserPrivateDynamic(ctx, req.(*QueryUserPrivateDynamicReq))
}
return interceptor(ctx, in, info, handler)
}
func _DynamicGateway_QueryDynamicDyDynamicId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryDynamicDyDynamicIdReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DynamicGatewayServer).QueryDynamicDyDynamicId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/app_gateway.v1.DynamicGateway/QueryDynamicDyDynamicId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DynamicGatewayServer).QueryDynamicDyDynamicId(ctx, req.(*QueryDynamicDyDynamicIdReq))
}
return interceptor(ctx, in, info, handler)
}
// DynamicGateway_ServiceDesc is the grpc.ServiceDesc for DynamicGateway service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var DynamicGateway_ServiceDesc = grpc.ServiceDesc{
ServiceName: "app_gateway.v1.DynamicGateway",
HandlerType: (*DynamicGatewayServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateDynamic",
Handler: _DynamicGateway_CreateDynamic_Handler,
},
{
MethodName: "UpdateDynamic",
Handler: _DynamicGateway_UpdateDynamic_Handler,
},
{
MethodName: "DeleteDynamic",
Handler: _DynamicGateway_DeleteDynamic_Handler,
},
{
MethodName: "LikeDynamic",
Handler: _DynamicGateway_LikeDynamic_Handler,
},
{
MethodName: "CancelLikeDynamic",
Handler: _DynamicGateway_CancelLikeDynamic_Handler,
},
{
MethodName: "LikeComment",
Handler: _DynamicGateway_LikeComment_Handler,
},
{
MethodName: "CancelLikeComment",
Handler: _DynamicGateway_CancelLikeComment_Handler,
},
{
MethodName: "CreateDynamicComment",
Handler: _DynamicGateway_CreateDynamicComment_Handler,
},
{
MethodName: "DeleteDynamicComment",
Handler: _DynamicGateway_DeleteDynamicComment_Handler,
},
{
MethodName: "QueryDynamicComment",
Handler: _DynamicGateway_QueryDynamicComment_Handler,
},
{
MethodName: "CollectDynamic",
Handler: _DynamicGateway_CollectDynamic_Handler,
},
{
MethodName: "CancelCollectDynamic",
Handler: _DynamicGateway_CancelCollectDynamic_Handler,
},
{
MethodName: "QueryCollectDynamic",
Handler: _DynamicGateway_QueryCollectDynamic_Handler,
},
{
MethodName: "QueryLikeDynamic",
Handler: _DynamicGateway_QueryLikeDynamic_Handler,
},
{
MethodName: "QueryRecommendDynamic",
Handler: _DynamicGateway_QueryRecommendDynamic_Handler,
},
{
MethodName: "QueryFollowDynamic",
Handler: _DynamicGateway_QueryFollowDynamic_Handler,
},
{
MethodName: "QueryNearbyDynamic",
Handler: _DynamicGateway_QueryNearbyDynamic_Handler,
},
{
MethodName: "QueryDynamicByUser",
Handler: _DynamicGateway_QueryDynamicByUser_Handler,
},
{
MethodName: "QueryUserPrivateDynamic",
Handler: _DynamicGateway_QueryUserPrivateDynamic_Handler,
},
{
MethodName: "QueryDynamicDyDynamicId",
Handler: _DynamicGateway_QueryDynamicDyDynamicId_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "app_gateway/v1/dynamic_gateway.proto",
}

760
app_gateway/v1/dynamic_gateway_http.pb.go

@ -0,0 +1,760 @@
// Code generated by protoc-gen-go-http. DO NOT EDIT.
// versions:
// - protoc-gen-go-http v2.5.1
// - protoc v3.19.5
// source: app_gateway/v1/dynamic_gateway.proto
package v1
import (
context "context"
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/dynamic/v1"
http "github.com/go-kratos/kratos/v2/transport/http"
binding "github.com/go-kratos/kratos/v2/transport/http/binding"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the kratos package it is being compiled against.
var _ = new(context.Context)
var _ = binding.EncodeURL
const _ = http.SupportPackageIsVersion1
const OperationDynamicGatewayCancelCollectDynamic = "/app_gateway.v1.DynamicGateway/CancelCollectDynamic"
const OperationDynamicGatewayCancelLikeComment = "/app_gateway.v1.DynamicGateway/CancelLikeComment"
const OperationDynamicGatewayCancelLikeDynamic = "/app_gateway.v1.DynamicGateway/CancelLikeDynamic"
const OperationDynamicGatewayCollectDynamic = "/app_gateway.v1.DynamicGateway/CollectDynamic"
const OperationDynamicGatewayCreateDynamic = "/app_gateway.v1.DynamicGateway/CreateDynamic"
const OperationDynamicGatewayCreateDynamicComment = "/app_gateway.v1.DynamicGateway/CreateDynamicComment"
const OperationDynamicGatewayDeleteDynamic = "/app_gateway.v1.DynamicGateway/DeleteDynamic"
const OperationDynamicGatewayDeleteDynamicComment = "/app_gateway.v1.DynamicGateway/DeleteDynamicComment"
const OperationDynamicGatewayLikeComment = "/app_gateway.v1.DynamicGateway/LikeComment"
const OperationDynamicGatewayLikeDynamic = "/app_gateway.v1.DynamicGateway/LikeDynamic"
const OperationDynamicGatewayQueryCollectDynamic = "/app_gateway.v1.DynamicGateway/QueryCollectDynamic"
const OperationDynamicGatewayQueryDynamicByUser = "/app_gateway.v1.DynamicGateway/QueryDynamicByUser"
const OperationDynamicGatewayQueryDynamicComment = "/app_gateway.v1.DynamicGateway/QueryDynamicComment"
const OperationDynamicGatewayQueryDynamicDyDynamicId = "/app_gateway.v1.DynamicGateway/QueryDynamicDyDynamicId"
const OperationDynamicGatewayQueryFollowDynamic = "/app_gateway.v1.DynamicGateway/QueryFollowDynamic"
const OperationDynamicGatewayQueryLikeDynamic = "/app_gateway.v1.DynamicGateway/QueryLikeDynamic"
const OperationDynamicGatewayQueryNearbyDynamic = "/app_gateway.v1.DynamicGateway/QueryNearbyDynamic"
const OperationDynamicGatewayQueryRecommendDynamic = "/app_gateway.v1.DynamicGateway/QueryRecommendDynamic"
const OperationDynamicGatewayQueryUserPrivateDynamic = "/app_gateway.v1.DynamicGateway/QueryUserPrivateDynamic"
const OperationDynamicGatewayUpdateDynamic = "/app_gateway.v1.DynamicGateway/UpdateDynamic"
type DynamicGatewayHTTPServer interface {
CancelCollectDynamic(context.Context, *CancelCollectDynamicReq) (*v1.CountResp, error)
CancelLikeComment(context.Context, *CancelLikeCommentReq) (*v1.CountResp, error)
CancelLikeDynamic(context.Context, *CancelLikeDynamicReq) (*v1.CountResp, error)
CollectDynamic(context.Context, *CollectDynamicReq) (*v1.CountResp, error)
CreateDynamic(context.Context, *CreateDynamicReq) (*Empty, error)
CreateDynamicComment(context.Context, *CreateDynamicCommentReq) (*CreateDynamicCommentResp, error)
DeleteDynamic(context.Context, *DeleteDynamicReq) (*Empty, error)
DeleteDynamicComment(context.Context, *DeleteDynamicCommentReq) (*Empty, error)
LikeComment(context.Context, *LikeCommentReq) (*v1.CountResp, error)
LikeDynamic(context.Context, *LikeDynamicReq) (*v1.CountResp, error)
QueryCollectDynamic(context.Context, *QueryCollectDynamicReq) (*QueryCollectDynamicResp, error)
QueryDynamicByUser(context.Context, *QueryDynamicByUserReq) (*QueryDynamicResp, error)
QueryDynamicComment(context.Context, *QueryDynamicCommentReq) (*QueryDynamicCommentResp, error)
QueryDynamicDyDynamicId(context.Context, *QueryDynamicDyDynamicIdReq) (*QueryDynamicResp, error)
QueryFollowDynamic(context.Context, *QueryFollowDynamicReq) (*QueryFollowDynamicResp, error)
QueryLikeDynamic(context.Context, *QueryLikeDynamicReq) (*QueryLikeDynamicResp, error)
QueryNearbyDynamic(context.Context, *QueryNearbyDynamicReq) (*QueryNearbyDynamicResp, error)
QueryRecommendDynamic(context.Context, *QueryRecommendDynamicReq) (*QueryRecommendDynamicResp, error)
QueryUserPrivateDynamic(context.Context, *QueryUserPrivateDynamicReq) (*QueryDynamicResp, error)
UpdateDynamic(context.Context, *UpdateDynamicReq) (*Empty, error)
}
func RegisterDynamicGatewayHTTPServer(s *http.Server, srv DynamicGatewayHTTPServer) {
r := s.Route("/")
r.POST("/v1/dynamic/create", _DynamicGateway_CreateDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/update", _DynamicGateway_UpdateDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/delete", _DynamicGateway_DeleteDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/like/create", _DynamicGateway_LikeDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/like/delete", _DynamicGateway_CancelLikeDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/comment/like/create", _DynamicGateway_LikeComment0_HTTP_Handler(srv))
r.POST("/v1/dynamic/comment/like/delete", _DynamicGateway_CancelLikeComment0_HTTP_Handler(srv))
r.POST("/v1/dynamic/comment/create", _DynamicGateway_CreateDynamicComment0_HTTP_Handler(srv))
r.POST("/v1/dynamic/comment/delete", _DynamicGateway_DeleteDynamicComment0_HTTP_Handler(srv))
r.POST("/v1/dynamic/comment/query", _DynamicGateway_QueryDynamicComment0_HTTP_Handler(srv))
r.POST("/v1/dynamic/collect/create", _DynamicGateway_CollectDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/collect/delete", _DynamicGateway_CancelCollectDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/collect/query", _DynamicGateway_QueryCollectDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/like/query", _DynamicGateway_QueryLikeDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/recommend/query", _DynamicGateway_QueryRecommendDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/follow/query", _DynamicGateway_QueryFollowDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/nearby/query", _DynamicGateway_QueryNearbyDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/query/user", _DynamicGateway_QueryDynamicByUser0_HTTP_Handler(srv))
r.POST("/v1/dynamic/user/private", _DynamicGateway_QueryUserPrivateDynamic0_HTTP_Handler(srv))
r.POST("/v1/dynamic/query/dynamic_id", _DynamicGateway_QueryDynamicDyDynamicId0_HTTP_Handler(srv))
}
func _DynamicGateway_CreateDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in CreateDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayCreateDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.CreateDynamic(ctx, req.(*CreateDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*Empty)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_UpdateDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in UpdateDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayUpdateDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.UpdateDynamic(ctx, req.(*UpdateDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*Empty)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_DeleteDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in DeleteDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayDeleteDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.DeleteDynamic(ctx, req.(*DeleteDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*Empty)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_LikeDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in LikeDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayLikeDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.LikeDynamic(ctx, req.(*LikeDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*v1.CountResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_CancelLikeDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in CancelLikeDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayCancelLikeDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.CancelLikeDynamic(ctx, req.(*CancelLikeDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*v1.CountResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_LikeComment0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in LikeCommentReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayLikeComment)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.LikeComment(ctx, req.(*LikeCommentReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*v1.CountResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_CancelLikeComment0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in CancelLikeCommentReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayCancelLikeComment)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.CancelLikeComment(ctx, req.(*CancelLikeCommentReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*v1.CountResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_CreateDynamicComment0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in CreateDynamicCommentReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayCreateDynamicComment)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.CreateDynamicComment(ctx, req.(*CreateDynamicCommentReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*CreateDynamicCommentResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_DeleteDynamicComment0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in DeleteDynamicCommentReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayDeleteDynamicComment)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.DeleteDynamicComment(ctx, req.(*DeleteDynamicCommentReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*Empty)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryDynamicComment0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryDynamicCommentReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryDynamicComment)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryDynamicComment(ctx, req.(*QueryDynamicCommentReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryDynamicCommentResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_CollectDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in CollectDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayCollectDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.CollectDynamic(ctx, req.(*CollectDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*v1.CountResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_CancelCollectDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in CancelCollectDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayCancelCollectDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.CancelCollectDynamic(ctx, req.(*CancelCollectDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*v1.CountResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryCollectDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryCollectDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryCollectDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryCollectDynamic(ctx, req.(*QueryCollectDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryCollectDynamicResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryLikeDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryLikeDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryLikeDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryLikeDynamic(ctx, req.(*QueryLikeDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryLikeDynamicResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryRecommendDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryRecommendDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryRecommendDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryRecommendDynamic(ctx, req.(*QueryRecommendDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryRecommendDynamicResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryFollowDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryFollowDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryFollowDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryFollowDynamic(ctx, req.(*QueryFollowDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryFollowDynamicResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryNearbyDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryNearbyDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryNearbyDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryNearbyDynamic(ctx, req.(*QueryNearbyDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryNearbyDynamicResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryDynamicByUser0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryDynamicByUserReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryDynamicByUser)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryDynamicByUser(ctx, req.(*QueryDynamicByUserReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryDynamicResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryUserPrivateDynamic0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryUserPrivateDynamicReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryUserPrivateDynamic)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryUserPrivateDynamic(ctx, req.(*QueryUserPrivateDynamicReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryDynamicResp)
return ctx.Result(200, reply)
}
}
func _DynamicGateway_QueryDynamicDyDynamicId0_HTTP_Handler(srv DynamicGatewayHTTPServer) func(ctx http.Context) error {
return func(ctx http.Context) error {
var in QueryDynamicDyDynamicIdReq
if err := ctx.Bind(&in); err != nil {
return err
}
http.SetOperation(ctx, OperationDynamicGatewayQueryDynamicDyDynamicId)
h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.QueryDynamicDyDynamicId(ctx, req.(*QueryDynamicDyDynamicIdReq))
})
out, err := h(ctx, &in)
if err != nil {
return err
}
reply := out.(*QueryDynamicResp)
return ctx.Result(200, reply)
}
}
type DynamicGatewayHTTPClient interface {
CancelCollectDynamic(ctx context.Context, req *CancelCollectDynamicReq, opts ...http.CallOption) (rsp *v1.CountResp, err error)
CancelLikeComment(ctx context.Context, req *CancelLikeCommentReq, opts ...http.CallOption) (rsp *v1.CountResp, err error)
CancelLikeDynamic(ctx context.Context, req *CancelLikeDynamicReq, opts ...http.CallOption) (rsp *v1.CountResp, err error)
CollectDynamic(ctx context.Context, req *CollectDynamicReq, opts ...http.CallOption) (rsp *v1.CountResp, err error)
CreateDynamic(ctx context.Context, req *CreateDynamicReq, opts ...http.CallOption) (rsp *Empty, err error)
CreateDynamicComment(ctx context.Context, req *CreateDynamicCommentReq, opts ...http.CallOption) (rsp *CreateDynamicCommentResp, err error)
DeleteDynamic(ctx context.Context, req *DeleteDynamicReq, opts ...http.CallOption) (rsp *Empty, err error)
DeleteDynamicComment(ctx context.Context, req *DeleteDynamicCommentReq, opts ...http.CallOption) (rsp *Empty, err error)
LikeComment(ctx context.Context, req *LikeCommentReq, opts ...http.CallOption) (rsp *v1.CountResp, err error)
LikeDynamic(ctx context.Context, req *LikeDynamicReq, opts ...http.CallOption) (rsp *v1.CountResp, err error)
QueryCollectDynamic(ctx context.Context, req *QueryCollectDynamicReq, opts ...http.CallOption) (rsp *QueryCollectDynamicResp, err error)
QueryDynamicByUser(ctx context.Context, req *QueryDynamicByUserReq, opts ...http.CallOption) (rsp *QueryDynamicResp, err error)
QueryDynamicComment(ctx context.Context, req *QueryDynamicCommentReq, opts ...http.CallOption) (rsp *QueryDynamicCommentResp, err error)
QueryDynamicDyDynamicId(ctx context.Context, req *QueryDynamicDyDynamicIdReq, opts ...http.CallOption) (rsp *QueryDynamicResp, err error)
QueryFollowDynamic(ctx context.Context, req *QueryFollowDynamicReq, opts ...http.CallOption) (rsp *QueryFollowDynamicResp, err error)
QueryLikeDynamic(ctx context.Context, req *QueryLikeDynamicReq, opts ...http.CallOption) (rsp *QueryLikeDynamicResp, err error)
QueryNearbyDynamic(ctx context.Context, req *QueryNearbyDynamicReq, opts ...http.CallOption) (rsp *QueryNearbyDynamicResp, err error)
QueryRecommendDynamic(ctx context.Context, req *QueryRecommendDynamicReq, opts ...http.CallOption) (rsp *QueryRecommendDynamicResp, err error)
QueryUserPrivateDynamic(ctx context.Context, req *QueryUserPrivateDynamicReq, opts ...http.CallOption) (rsp *QueryDynamicResp, err error)
UpdateDynamic(ctx context.Context, req *UpdateDynamicReq, opts ...http.CallOption) (rsp *Empty, err error)
}
type DynamicGatewayHTTPClientImpl struct {
cc *http.Client
}
func NewDynamicGatewayHTTPClient(client *http.Client) DynamicGatewayHTTPClient {
return &DynamicGatewayHTTPClientImpl{client}
}
func (c *DynamicGatewayHTTPClientImpl) CancelCollectDynamic(ctx context.Context, in *CancelCollectDynamicReq, opts ...http.CallOption) (*v1.CountResp, error) {
var out v1.CountResp
pattern := "/v1/dynamic/collect/delete"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayCancelCollectDynamic))
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 *DynamicGatewayHTTPClientImpl) CancelLikeComment(ctx context.Context, in *CancelLikeCommentReq, opts ...http.CallOption) (*v1.CountResp, error) {
var out v1.CountResp
pattern := "/v1/dynamic/comment/like/delete"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayCancelLikeComment))
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 *DynamicGatewayHTTPClientImpl) CancelLikeDynamic(ctx context.Context, in *CancelLikeDynamicReq, opts ...http.CallOption) (*v1.CountResp, error) {
var out v1.CountResp
pattern := "/v1/dynamic/like/delete"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayCancelLikeDynamic))
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 *DynamicGatewayHTTPClientImpl) CollectDynamic(ctx context.Context, in *CollectDynamicReq, opts ...http.CallOption) (*v1.CountResp, error) {
var out v1.CountResp
pattern := "/v1/dynamic/collect/create"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayCollectDynamic))
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 *DynamicGatewayHTTPClientImpl) CreateDynamic(ctx context.Context, in *CreateDynamicReq, opts ...http.CallOption) (*Empty, error) {
var out Empty
pattern := "/v1/dynamic/create"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayCreateDynamic))
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 *DynamicGatewayHTTPClientImpl) CreateDynamicComment(ctx context.Context, in *CreateDynamicCommentReq, opts ...http.CallOption) (*CreateDynamicCommentResp, error) {
var out CreateDynamicCommentResp
pattern := "/v1/dynamic/comment/create"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayCreateDynamicComment))
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 *DynamicGatewayHTTPClientImpl) DeleteDynamic(ctx context.Context, in *DeleteDynamicReq, opts ...http.CallOption) (*Empty, error) {
var out Empty
pattern := "/v1/dynamic/delete"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayDeleteDynamic))
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 *DynamicGatewayHTTPClientImpl) DeleteDynamicComment(ctx context.Context, in *DeleteDynamicCommentReq, opts ...http.CallOption) (*Empty, error) {
var out Empty
pattern := "/v1/dynamic/comment/delete"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayDeleteDynamicComment))
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 *DynamicGatewayHTTPClientImpl) LikeComment(ctx context.Context, in *LikeCommentReq, opts ...http.CallOption) (*v1.CountResp, error) {
var out v1.CountResp
pattern := "/v1/dynamic/comment/like/create"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayLikeComment))
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 *DynamicGatewayHTTPClientImpl) LikeDynamic(ctx context.Context, in *LikeDynamicReq, opts ...http.CallOption) (*v1.CountResp, error) {
var out v1.CountResp
pattern := "/v1/dynamic/like/create"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayLikeDynamic))
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 *DynamicGatewayHTTPClientImpl) QueryCollectDynamic(ctx context.Context, in *QueryCollectDynamicReq, opts ...http.CallOption) (*QueryCollectDynamicResp, error) {
var out QueryCollectDynamicResp
pattern := "/v1/dynamic/collect/query"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryCollectDynamic))
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 *DynamicGatewayHTTPClientImpl) QueryDynamicByUser(ctx context.Context, in *QueryDynamicByUserReq, opts ...http.CallOption) (*QueryDynamicResp, error) {
var out QueryDynamicResp
pattern := "/v1/dynamic/query/user"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryDynamicByUser))
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 *DynamicGatewayHTTPClientImpl) QueryDynamicComment(ctx context.Context, in *QueryDynamicCommentReq, opts ...http.CallOption) (*QueryDynamicCommentResp, error) {
var out QueryDynamicCommentResp
pattern := "/v1/dynamic/comment/query"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryDynamicComment))
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 *DynamicGatewayHTTPClientImpl) QueryDynamicDyDynamicId(ctx context.Context, in *QueryDynamicDyDynamicIdReq, opts ...http.CallOption) (*QueryDynamicResp, error) {
var out QueryDynamicResp
pattern := "/v1/dynamic/query/dynamic_id"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryDynamicDyDynamicId))
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 *DynamicGatewayHTTPClientImpl) QueryFollowDynamic(ctx context.Context, in *QueryFollowDynamicReq, opts ...http.CallOption) (*QueryFollowDynamicResp, error) {
var out QueryFollowDynamicResp
pattern := "/v1/dynamic/follow/query"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryFollowDynamic))
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 *DynamicGatewayHTTPClientImpl) QueryLikeDynamic(ctx context.Context, in *QueryLikeDynamicReq, opts ...http.CallOption) (*QueryLikeDynamicResp, error) {
var out QueryLikeDynamicResp
pattern := "/v1/dynamic/like/query"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryLikeDynamic))
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 *DynamicGatewayHTTPClientImpl) QueryNearbyDynamic(ctx context.Context, in *QueryNearbyDynamicReq, opts ...http.CallOption) (*QueryNearbyDynamicResp, error) {
var out QueryNearbyDynamicResp
pattern := "/v1/dynamic/nearby/query"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryNearbyDynamic))
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 *DynamicGatewayHTTPClientImpl) QueryRecommendDynamic(ctx context.Context, in *QueryRecommendDynamicReq, opts ...http.CallOption) (*QueryRecommendDynamicResp, error) {
var out QueryRecommendDynamicResp
pattern := "/v1/dynamic/recommend/query"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryRecommendDynamic))
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 *DynamicGatewayHTTPClientImpl) QueryUserPrivateDynamic(ctx context.Context, in *QueryUserPrivateDynamicReq, opts ...http.CallOption) (*QueryDynamicResp, error) {
var out QueryDynamicResp
pattern := "/v1/dynamic/user/private"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayQueryUserPrivateDynamic))
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 *DynamicGatewayHTTPClientImpl) UpdateDynamic(ctx context.Context, in *UpdateDynamicReq, opts ...http.CallOption) (*Empty, error) {
var out Empty
pattern := "/v1/dynamic/update"
path := binding.EncodeURL(pattern, in, false)
opts = append(opts, http.Operation(OperationDynamicGatewayUpdateDynamic))
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
}

4025
app_gateway/v1/dynamic_params.pb.go

File diff suppressed because it is too large Load Diff

400
app_gateway/v1/dynamic_params.proto

@ -0,0 +1,400 @@
syntax = "proto3";
package app_gateway.v1;
option go_package = "git.gz.internal.jumaiyx.cn/jm/jmproto/app_gateway/v1;v1";
import "dynamic/v1/dynamic.proto";
message DynamicMediaItem {
//
string url = 1;
// 0 1
int32 type = 2;
//
string cover = 3;
//
int32 width = 4 ;
//
int32 height = 5;
//
string extra = 6;
}
message DynamicMedia {
repeated DynamicMediaItem media_items = 1;
}
//
message DynamicItem {
//
string text = 1;
//
DynamicMedia dynamic_media = 2;
// id
int64 dynamic_id = 3;
//
int64 release_at = 4;
string author_id = 5;
//
string lon = 6;
//
string lat = 7;
//
string location_name = 8;
// 0稿1
int32 release_status = 9;
// 0123
int32 auth = 10;
//
int64 created_at = 11;
int64 role_id = 12;
}
message DynamicCount {
int32 gift_count = 1;
int32 comment_count = 2;
int32 like_count = 3;
int32 collect_count = 4;
}
message DynamicMore {
//
bool is_follow = 1;
//
bool is_like = 2;
//
bool is_collect = 3;
}
message CreateDynamicReq {
//
string text = 1;
// 0稿12
int32 release_status = 2;
// 0123
int32 auth = 3;
// id列表id组成
repeated int64 media_id_list = 4;
//
optional string lon = 5;
//
optional string lat = 6;
//
optional string location_name = 7;
//
repeated int64 topic_id_list = 8;
}
message UpdateDynamicReq {
// id
int64 id = 1;
// id列表id组成
repeated int64 media_id_list = 2;
//
optional string text = 3;
// 0稿1
optional int32 release_status = 4;
// 0123
optional int32 auth = 5;
//
optional string lon = 6;
//
optional string lat = 7;
//
optional string location_name = 8;
//
repeated int64 topic_id_list = 9;
}
message DeleteDynamicReq {
// id
int64 id = 1;
}
message LikeDynamicReq {
// id
int64 dynamic_id = 1;
}
message CancelLikeDynamicReq {
// id
int64 dynamic_id = 1;
}
message LikeCommentReq {
// id
int64 comment_id = 1;
}
message CancelLikeCommentReq {
// id
int64 comment_id = 1;
}
message CreateDynamicCommentReq {
// id
int64 dynamic_id = 1;
//
string text = 2;
}
message CreateDynamicCommentResp {
// id
int64 comment_id = 1;
// id
int64 dynamic_id = 2;
//
string text = 3;
//
int32 like_count = 4;
// id
string uid = 5;
//
int64 dynamic_comment_count = 6;
}
message DeleteDynamicCommentReq {
int64 dynamic_id = 1;
int64 comment_id = 2;
}
message QueryDynamicCommentReq {
// id
optional int64 dynamic_id = 1;
// id列表id
repeated int64 comment_id_list = 2;
//
optional int64 offset = 3;
//
optional int64 limit = 4;
// , 12
optional int32 created_at_order_by = 5;
// , 12
optional int32 updated_at_order_by = 6;
// , 12
optional int32 like_count_order_by = 7;
//
optional int64 reply_comment_count = 8;
}
message DynamicComment {
// id
int64 comment_id = 1;
// id
int64 dynamic_id = 2;
//
string text = 3;
//
int32 like_count = 4;
// id
string uid = 5;
}
message QueryDynamicCommentRespItem {
//
DynamicComment comment = 1;
bool is_like = 2;
int64 created_at = 3;
//
int32 reply_comment_total = 5;
}
message QueryDynamicCommentResp {
repeated QueryDynamicCommentRespItem items = 1;
}
message CollectDynamicReq {
int64 dynamic_id = 1 ;
}
message CancelCollectDynamicReq {
int64 dynamic_id = 1 ;
}
message QueryCollectDynamicReq {
//
optional int64 offset = 1;
//
optional int64 limit = 2;
// , 12
optional int32 created_at_order_by = 3;
}
message QueryCollectDynamicRespItem {
//
DynamicItem dynamic = 1;
//
DynamicCount count = 2;
//
DynamicMore more = 3;
//
int64 created_at = 4;
//
repeated dynamic.v1.TopicItem topic_list = 5;
}
message QueryCollectDynamicResp {
//
repeated QueryCollectDynamicRespItem items = 1;
}
message QueryLikeDynamicReq {
//
optional int64 offset = 1;
//
optional int64 limit = 2;
// , 12
optional int32 created_at_order_by = 3;
}
message QueryLikeDynamicRespItem {
//
DynamicItem dynamic = 1;
//
DynamicCount count = 2;
//
DynamicMore more = 3;
int64 create_at = 4;
//
repeated dynamic.v1.TopicItem topic_list = 5;
}
message QueryLikeDynamicResp {
repeated QueryLikeDynamicRespItem items = 1;
}
message QueryRecommendDynamicReq {
//
optional int64 offset = 1;
//
optional int64 limit = 2;
// , 12
optional int32 created_at_order_by = 3;
// , 12
optional int32 updated_at_order_by = 4;
}
message QueryRecommendDynamicRespItem {
//
DynamicItem dynamic = 1;
//
DynamicCount count = 2;
//
DynamicMore more = 3;
int64 create_at = 4;
//
repeated dynamic.v1.TopicItem topic_list = 5;
}
message QueryRecommendDynamicResp {
//
repeated QueryRecommendDynamicRespItem items = 1;
}
message QueryFollowDynamicReq {
//
optional int64 offset = 1;
//
optional int64 limit = 2;
// , 12
optional int32 created_at_order_by = 3;
// , 12
optional int32 updated_at_order_by = 4;
}
message QueryFollowDynamicRespItem {
//
DynamicItem dynamic = 1;
//
DynamicCount count = 2;
//
DynamicMore more = 3;
string author_uid = 4;
//
repeated dynamic.v1.TopicItem topic_list = 5;
}
message QueryFollowDynamicResp {
//
repeated QueryFollowDynamicRespItem items = 1;
}
message QueryNearbyDynamicReq {
//
optional int64 offset = 1;
//
optional int64 limit = 2;
// , 12
optional int32 created_at_order_by = 3;
// , 12
optional int32 updated_at_order_by = 4;
}
message QueryNearbyDynamicRespItem {
//
DynamicItem dynamic = 1;
//
DynamicCount count = 2;
//
DynamicMore more = 3;
int64 create_at = 4;
//
repeated dynamic.v1.TopicItem topic_list = 5;
}
message QueryNearbyDynamicResp {
//
repeated QueryNearbyDynamicRespItem items = 1;
}
message QueryDynamicByUserReq {
optional string uid = 1;
//
optional int64 offset = 2;
//
optional int64 limit = 3;
// , 12
optional int32 created_at_order_by = 4;
// , 12
optional int32 updated_at_order_by = 5;
}
message QueryUserPrivateDynamicReq {
//
optional int64 offset = 1;
//
optional int64 limit = 2;
// , 12
optional int32 created_at_order_by = 3;
// , 12
optional int32 updated_at_order_by = 4;
}
message QueryDynamicDyDynamicIdReq {
repeated int64 dynamic_id_list = 1;
//
optional int64 offset = 2;
//
optional int64 limit = 3;
// , 12
optional int32 created_at_order_by = 4;
// , 12
optional int32 updated_at_order_by = 5;
}
message QueryDynamicRespItem {
//
DynamicItem dynamic = 1;
//
DynamicCount count = 2;
//
DynamicMore more = 3;
int64 create_at = 4;
//
repeated dynamic.v1.TopicItem topic_list = 5;
}
message QueryDynamicResp {
//
repeated QueryDynamicRespItem items = 1;
int64 total = 2;
}
Loading…
Cancel
Save