property_log_service.pb.go 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: property_log_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("property_log_service.proto", fileDescriptor_125fb2f2843ba13c)
  26. }
  27. var fileDescriptor_125fb2f2843ba13c = []byte{
  28. // 204 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x28, 0xca, 0x2f,
  30. 0x48, 0x2d, 0x2a, 0xa9, 0x8c, 0xcf, 0xc9, 0x4f, 0x8f, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e,
  31. 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x89, 0x96,
  32. 0x19, 0xea, 0x23, 0x2b, 0x85, 0x28, 0x31, 0x5a, 0xc8, 0xc4, 0xc5, 0x1d, 0x00, 0x15, 0xf6, 0xc9,
  33. 0x4f, 0x17, 0xf2, 0xe4, 0xe2, 0x75, 0xce, 0xcf, 0x2d, 0x48, 0xcc, 0x03, 0xf1, 0x1c, 0x53, 0x52,
  34. 0x84, 0xa4, 0xf5, 0x0a, 0x92, 0xe2, 0xcb, 0x0c, 0xf5, 0x50, 0x44, 0x83, 0x52, 0x0b, 0x4b, 0x53,
  35. 0x8b, 0x4b, 0xa4, 0x24, 0xb1, 0x4b, 0x16, 0xe4, 0x54, 0x2a, 0x31, 0x08, 0x39, 0x70, 0x71, 0x21,
  36. 0xc4, 0x85, 0x24, 0x30, 0x94, 0xc2, 0x0c, 0x11, 0xc3, 0x22, 0x03, 0x31, 0xc1, 0x8d, 0x8b, 0x27,
  37. 0xb8, 0xb2, 0xb8, 0x24, 0x35, 0x17, 0xea, 0x16, 0x29, 0xa8, 0x4a, 0x64, 0x41, 0x98, 0x29, 0x12,
  38. 0x58, 0xe5, 0x20, 0xe6, 0xd8, 0x72, 0x71, 0xc2, 0x85, 0x85, 0xc4, 0xd1, 0x15, 0xc2, 0x4c, 0x10,
  39. 0xc5, 0x94, 0x00, 0x6b, 0x77, 0x92, 0x89, 0x82, 0x07, 0xb2, 0x6e, 0x31, 0x58, 0x52, 0x37, 0x3d,
  40. 0xb1, 0x24, 0xb5, 0x3c, 0xb1, 0x52, 0xbf, 0x20, 0x29, 0x89, 0x0d, 0x1c, 0x90, 0xc6, 0x80, 0x00,
  41. 0x00, 0x00, 0xff, 0xff, 0x29, 0x43, 0x18, 0x82, 0x89, 0x01, 0x00, 0x00,
  42. }
  43. // Reference imports to suppress errors if they are not otherwise used.
  44. var _ context.Context
  45. var _ grpc.ClientConnInterface
  46. // This is a compile-time assertion to ensure that this generated file
  47. // is compatible with the grpc package it is being compiled against.
  48. const _ = grpc.SupportPackageIsVersion6
  49. // PropertyLogClient is the client API for PropertyLog service.
  50. //
  51. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  52. type PropertyLogClient interface {
  53. // 物业公司操作日志
  54. CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error)
  55. CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error)
  56. // 物业操作日志
  57. SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error)
  58. SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error)
  59. }
  60. type propertyLogClient struct {
  61. cc grpc.ClientConnInterface
  62. }
  63. func NewPropertyLogClient(cc grpc.ClientConnInterface) PropertyLogClient {
  64. return &propertyLogClient{cc}
  65. }
  66. func (c *propertyLogClient) CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error) {
  67. out := new(v1.CompanyLogAddReply)
  68. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLogAdd", in, out, opts...)
  69. if err != nil {
  70. return nil, err
  71. }
  72. return out, nil
  73. }
  74. func (c *propertyLogClient) CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error) {
  75. out := new(v1.CompanyLogReply)
  76. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLog", in, out, opts...)
  77. if err != nil {
  78. return nil, err
  79. }
  80. return out, nil
  81. }
  82. func (c *propertyLogClient) SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) {
  83. out := new(v1.SystemLogAddReply)
  84. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLogAdd", in, out, opts...)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return out, nil
  89. }
  90. func (c *propertyLogClient) SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error) {
  91. out := new(v1.SystemLogReply)
  92. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLog", in, out, opts...)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return out, nil
  97. }
  98. // PropertyLogServer is the server API for PropertyLog service.
  99. type PropertyLogServer interface {
  100. // 物业公司操作日志
  101. CompanyLogAdd(context.Context, *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error)
  102. CompanyLog(context.Context, *v1.CompanyLogRequest) (*v1.CompanyLogReply, error)
  103. // 物业操作日志
  104. SystemLogAdd(context.Context, *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error)
  105. SystemLog(context.Context, *v1.SystemLogRequest) (*v1.SystemLogReply, error)
  106. }
  107. // UnimplementedPropertyLogServer can be embedded to have forward compatible implementations.
  108. type UnimplementedPropertyLogServer struct {
  109. }
  110. func (*UnimplementedPropertyLogServer) CompanyLogAdd(ctx context.Context, req *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error) {
  111. return nil, status.Errorf(codes.Unimplemented, "method CompanyLogAdd not implemented")
  112. }
  113. func (*UnimplementedPropertyLogServer) CompanyLog(ctx context.Context, req *v1.CompanyLogRequest) (*v1.CompanyLogReply, error) {
  114. return nil, status.Errorf(codes.Unimplemented, "method CompanyLog not implemented")
  115. }
  116. func (*UnimplementedPropertyLogServer) SystemLogAdd(ctx context.Context, req *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) {
  117. return nil, status.Errorf(codes.Unimplemented, "method SystemLogAdd not implemented")
  118. }
  119. func (*UnimplementedPropertyLogServer) SystemLog(ctx context.Context, req *v1.SystemLogRequest) (*v1.SystemLogReply, error) {
  120. return nil, status.Errorf(codes.Unimplemented, "method SystemLog not implemented")
  121. }
  122. func RegisterPropertyLogServer(s *grpc.Server, srv PropertyLogServer) {
  123. s.RegisterService(&_PropertyLog_serviceDesc, srv)
  124. }
  125. func _PropertyLog_CompanyLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  126. in := new(v1.CompanyLogAddRequest)
  127. if err := dec(in); err != nil {
  128. return nil, err
  129. }
  130. if interceptor == nil {
  131. return srv.(PropertyLogServer).CompanyLogAdd(ctx, in)
  132. }
  133. info := &grpc.UnaryServerInfo{
  134. Server: srv,
  135. FullMethod: "/pb.service.PropertyLog/CompanyLogAdd",
  136. }
  137. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  138. return srv.(PropertyLogServer).CompanyLogAdd(ctx, req.(*v1.CompanyLogAddRequest))
  139. }
  140. return interceptor(ctx, in, info, handler)
  141. }
  142. func _PropertyLog_CompanyLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  143. in := new(v1.CompanyLogRequest)
  144. if err := dec(in); err != nil {
  145. return nil, err
  146. }
  147. if interceptor == nil {
  148. return srv.(PropertyLogServer).CompanyLog(ctx, in)
  149. }
  150. info := &grpc.UnaryServerInfo{
  151. Server: srv,
  152. FullMethod: "/pb.service.PropertyLog/CompanyLog",
  153. }
  154. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  155. return srv.(PropertyLogServer).CompanyLog(ctx, req.(*v1.CompanyLogRequest))
  156. }
  157. return interceptor(ctx, in, info, handler)
  158. }
  159. func _PropertyLog_SystemLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  160. in := new(v1.SystemLogAddRequest)
  161. if err := dec(in); err != nil {
  162. return nil, err
  163. }
  164. if interceptor == nil {
  165. return srv.(PropertyLogServer).SystemLogAdd(ctx, in)
  166. }
  167. info := &grpc.UnaryServerInfo{
  168. Server: srv,
  169. FullMethod: "/pb.service.PropertyLog/SystemLogAdd",
  170. }
  171. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  172. return srv.(PropertyLogServer).SystemLogAdd(ctx, req.(*v1.SystemLogAddRequest))
  173. }
  174. return interceptor(ctx, in, info, handler)
  175. }
  176. func _PropertyLog_SystemLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  177. in := new(v1.SystemLogRequest)
  178. if err := dec(in); err != nil {
  179. return nil, err
  180. }
  181. if interceptor == nil {
  182. return srv.(PropertyLogServer).SystemLog(ctx, in)
  183. }
  184. info := &grpc.UnaryServerInfo{
  185. Server: srv,
  186. FullMethod: "/pb.service.PropertyLog/SystemLog",
  187. }
  188. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  189. return srv.(PropertyLogServer).SystemLog(ctx, req.(*v1.SystemLogRequest))
  190. }
  191. return interceptor(ctx, in, info, handler)
  192. }
  193. var _PropertyLog_serviceDesc = grpc.ServiceDesc{
  194. ServiceName: "pb.service.PropertyLog",
  195. HandlerType: (*PropertyLogServer)(nil),
  196. Methods: []grpc.MethodDesc{
  197. {
  198. MethodName: "CompanyLogAdd",
  199. Handler: _PropertyLog_CompanyLogAdd_Handler,
  200. },
  201. {
  202. MethodName: "CompanyLog",
  203. Handler: _PropertyLog_CompanyLog_Handler,
  204. },
  205. {
  206. MethodName: "SystemLogAdd",
  207. Handler: _PropertyLog_SystemLogAdd_Handler,
  208. },
  209. {
  210. MethodName: "SystemLog",
  211. Handler: _PropertyLog_SystemLog_Handler,
  212. },
  213. },
  214. Streams: []grpc.StreamDesc{},
  215. Metadata: "property_log_service.proto",
  216. }