thirdparty_service.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: thirdparty_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "property-system-gateway/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("thirdparty_service.proto", fileDescriptor_22d5d2ee5c1185d0)
  26. }
  27. var fileDescriptor_22d5d2ee5c1185d0 = []byte{
  28. // 249 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4b, 0x03, 0x31,
  30. 0x10, 0x46, 0xc5, 0x83, 0xc8, 0x08, 0x82, 0xa3, 0xd4, 0xba, 0x54, 0x04, 0xef, 0xdd, 0x52, 0xbd,
  31. 0x79, 0x12, 0x0b, 0x4a, 0x41, 0x50, 0xb4, 0xf5, 0xe0, 0xa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7e, 0xdb, 0x79, 0x27, 0x34, 0x6f, 0xbf,
  43. 0x17, 0x42, 0xdf, 0x85, 0xef, 0xb0, 0x52, 0x3b, 0x8b, 0x3f, 0xba, 0xfc, 0x0d, 0x00, 0x00, 0xff,
  44. 0xff, 0xd2, 0x0a, 0x6e, 0xf3, 0xe0, 0x01, 0x00, 0x00,
  45. }
  46. // Reference imports to suppress errors if they are not otherwise used.
  47. var _ context.Context
  48. var _ grpc.ClientConnInterface
  49. // This is a compile-time assertion to ensure that this generated file
  50. // is compatible with the grpc package it is being compiled against.
  51. const _ = grpc.SupportPackageIsVersion6
  52. // PropertyThirdpartyClient is the client API for PropertyThirdparty service.
  53. //
  54. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  55. type PropertyThirdpartyClient interface {
  56. // 获取短信验证码
  57. GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error)
  58. // 校验短信验证码
  59. CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error)
  60. OpenImToken(ctx context.Context, in *v1.OpenImTokenRequest, opts ...grpc.CallOption) (*v1.OpenImTokenReply, error)
  61. OpenImUserInfo(ctx context.Context, in *v1.OpenImUserInfoRequest, opts ...grpc.CallOption) (*v1.OpenImUserInfoReply, error)
  62. OpenImUserSetFace(ctx context.Context, in *v1.OpenImUserSetFaceRequest, opts ...grpc.CallOption) (*v1.OpenImUserSetFaceReply, error)
  63. }
  64. type propertyThirdpartyClient struct {
  65. cc grpc.ClientConnInterface
  66. }
  67. func NewPropertyThirdpartyClient(cc grpc.ClientConnInterface) PropertyThirdpartyClient {
  68. return &propertyThirdpartyClient{cc}
  69. }
  70. func (c *propertyThirdpartyClient) GetVcode(ctx context.Context, in *v1.GetVcodeRequest, opts ...grpc.CallOption) (*v1.GetVcodeReply, error) {
  71. out := new(v1.GetVcodeReply)
  72. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/GetVcode", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *propertyThirdpartyClient) CheckVcode(ctx context.Context, in *v1.CheckVcodeRequest, opts ...grpc.CallOption) (*v1.CheckVcodeReply, error) {
  79. out := new(v1.CheckVcodeReply)
  80. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/CheckVcode", in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *propertyThirdpartyClient) OpenImToken(ctx context.Context, in *v1.OpenImTokenRequest, opts ...grpc.CallOption) (*v1.OpenImTokenReply, error) {
  87. out := new(v1.OpenImTokenReply)
  88. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImToken", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *propertyThirdpartyClient) OpenImUserInfo(ctx context.Context, in *v1.OpenImUserInfoRequest, opts ...grpc.CallOption) (*v1.OpenImUserInfoReply, error) {
  95. out := new(v1.OpenImUserInfoReply)
  96. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImUserInfo", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *propertyThirdpartyClient) OpenImUserSetFace(ctx context.Context, in *v1.OpenImUserSetFaceRequest, opts ...grpc.CallOption) (*v1.OpenImUserSetFaceReply, error) {
  103. out := new(v1.OpenImUserSetFaceReply)
  104. err := c.cc.Invoke(ctx, "/pb.service.PropertyThirdparty/OpenImUserSetFace", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. // PropertyThirdpartyServer is the server API for PropertyThirdparty service.
  111. type PropertyThirdpartyServer interface {
  112. // 获取短信验证码
  113. GetVcode(context.Context, *v1.GetVcodeRequest) (*v1.GetVcodeReply, error)
  114. // 校验短信验证码
  115. CheckVcode(context.Context, *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error)
  116. OpenImToken(context.Context, *v1.OpenImTokenRequest) (*v1.OpenImTokenReply, error)
  117. OpenImUserInfo(context.Context, *v1.OpenImUserInfoRequest) (*v1.OpenImUserInfoReply, error)
  118. OpenImUserSetFace(context.Context, *v1.OpenImUserSetFaceRequest) (*v1.OpenImUserSetFaceReply, error)
  119. }
  120. // UnimplementedPropertyThirdpartyServer can be embedded to have forward compatible implementations.
  121. type UnimplementedPropertyThirdpartyServer struct {
  122. }
  123. func (*UnimplementedPropertyThirdpartyServer) GetVcode(ctx context.Context, req *v1.GetVcodeRequest) (*v1.GetVcodeReply, error) {
  124. return nil, status.Errorf(codes.Unimplemented, "method GetVcode not implemented")
  125. }
  126. func (*UnimplementedPropertyThirdpartyServer) CheckVcode(ctx context.Context, req *v1.CheckVcodeRequest) (*v1.CheckVcodeReply, error) {
  127. return nil, status.Errorf(codes.Unimplemented, "method CheckVcode not implemented")
  128. }
  129. func (*UnimplementedPropertyThirdpartyServer) OpenImToken(ctx context.Context, req *v1.OpenImTokenRequest) (*v1.OpenImTokenReply, error) {
  130. return nil, status.Errorf(codes.Unimplemented, "method OpenImToken not implemented")
  131. }
  132. func (*UnimplementedPropertyThirdpartyServer) OpenImUserInfo(ctx context.Context, req *v1.OpenImUserInfoRequest) (*v1.OpenImUserInfoReply, error) {
  133. return nil, status.Errorf(codes.Unimplemented, "method OpenImUserInfo not implemented")
  134. }
  135. func (*UnimplementedPropertyThirdpartyServer) OpenImUserSetFace(ctx context.Context, req *v1.OpenImUserSetFaceRequest) (*v1.OpenImUserSetFaceReply, error) {
  136. return nil, status.Errorf(codes.Unimplemented, "method OpenImUserSetFace not implemented")
  137. }
  138. func RegisterPropertyThirdpartyServer(s *grpc.Server, srv PropertyThirdpartyServer) {
  139. s.RegisterService(&_PropertyThirdparty_serviceDesc, srv)
  140. }
  141. func _PropertyThirdparty_GetVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  142. in := new(v1.GetVcodeRequest)
  143. if err := dec(in); err != nil {
  144. return nil, err
  145. }
  146. if interceptor == nil {
  147. return srv.(PropertyThirdpartyServer).GetVcode(ctx, in)
  148. }
  149. info := &grpc.UnaryServerInfo{
  150. Server: srv,
  151. FullMethod: "/pb.service.PropertyThirdparty/GetVcode",
  152. }
  153. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  154. return srv.(PropertyThirdpartyServer).GetVcode(ctx, req.(*v1.GetVcodeRequest))
  155. }
  156. return interceptor(ctx, in, info, handler)
  157. }
  158. func _PropertyThirdparty_CheckVcode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  159. in := new(v1.CheckVcodeRequest)
  160. if err := dec(in); err != nil {
  161. return nil, err
  162. }
  163. if interceptor == nil {
  164. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, in)
  165. }
  166. info := &grpc.UnaryServerInfo{
  167. Server: srv,
  168. FullMethod: "/pb.service.PropertyThirdparty/CheckVcode",
  169. }
  170. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  171. return srv.(PropertyThirdpartyServer).CheckVcode(ctx, req.(*v1.CheckVcodeRequest))
  172. }
  173. return interceptor(ctx, in, info, handler)
  174. }
  175. func _PropertyThirdparty_OpenImToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  176. in := new(v1.OpenImTokenRequest)
  177. if err := dec(in); err != nil {
  178. return nil, err
  179. }
  180. if interceptor == nil {
  181. return srv.(PropertyThirdpartyServer).OpenImToken(ctx, in)
  182. }
  183. info := &grpc.UnaryServerInfo{
  184. Server: srv,
  185. FullMethod: "/pb.service.PropertyThirdparty/OpenImToken",
  186. }
  187. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  188. return srv.(PropertyThirdpartyServer).OpenImToken(ctx, req.(*v1.OpenImTokenRequest))
  189. }
  190. return interceptor(ctx, in, info, handler)
  191. }
  192. func _PropertyThirdparty_OpenImUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  193. in := new(v1.OpenImUserInfoRequest)
  194. if err := dec(in); err != nil {
  195. return nil, err
  196. }
  197. if interceptor == nil {
  198. return srv.(PropertyThirdpartyServer).OpenImUserInfo(ctx, in)
  199. }
  200. info := &grpc.UnaryServerInfo{
  201. Server: srv,
  202. FullMethod: "/pb.service.PropertyThirdparty/OpenImUserInfo",
  203. }
  204. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  205. return srv.(PropertyThirdpartyServer).OpenImUserInfo(ctx, req.(*v1.OpenImUserInfoRequest))
  206. }
  207. return interceptor(ctx, in, info, handler)
  208. }
  209. func _PropertyThirdparty_OpenImUserSetFace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  210. in := new(v1.OpenImUserSetFaceRequest)
  211. if err := dec(in); err != nil {
  212. return nil, err
  213. }
  214. if interceptor == nil {
  215. return srv.(PropertyThirdpartyServer).OpenImUserSetFace(ctx, in)
  216. }
  217. info := &grpc.UnaryServerInfo{
  218. Server: srv,
  219. FullMethod: "/pb.service.PropertyThirdparty/OpenImUserSetFace",
  220. }
  221. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  222. return srv.(PropertyThirdpartyServer).OpenImUserSetFace(ctx, req.(*v1.OpenImUserSetFaceRequest))
  223. }
  224. return interceptor(ctx, in, info, handler)
  225. }
  226. var _PropertyThirdparty_serviceDesc = grpc.ServiceDesc{
  227. ServiceName: "pb.service.PropertyThirdparty",
  228. HandlerType: (*PropertyThirdpartyServer)(nil),
  229. Methods: []grpc.MethodDesc{
  230. {
  231. MethodName: "GetVcode",
  232. Handler: _PropertyThirdparty_GetVcode_Handler,
  233. },
  234. {
  235. MethodName: "CheckVcode",
  236. Handler: _PropertyThirdparty_CheckVcode_Handler,
  237. },
  238. {
  239. MethodName: "OpenImToken",
  240. Handler: _PropertyThirdparty_OpenImToken_Handler,
  241. },
  242. {
  243. MethodName: "OpenImUserInfo",
  244. Handler: _PropertyThirdparty_OpenImUserInfo_Handler,
  245. },
  246. {
  247. MethodName: "OpenImUserSetFace",
  248. Handler: _PropertyThirdparty_OpenImUserSetFace_Handler,
  249. },
  250. },
  251. Streams: []grpc.StreamDesc{},
  252. Metadata: "thirdparty_service.proto",
  253. }