property_log_service.pb.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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-applete-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. // 209 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, 0x8d, 0x92, 0x86, 0x85, 0x9c, 0x6e, 0x62, 0x41, 0x41, 0x4e,
  40. 0x6a, 0x49, 0xaa, 0x6e, 0x7a, 0x62, 0x49, 0x6a, 0x79, 0x62, 0xa5, 0x7e, 0x41, 0x52, 0x12, 0x1b,
  41. 0x38, 0x24, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xbb, 0x66, 0x9c, 0x8a, 0x01, 0x00,
  42. 0x00,
  43. }
  44. // Reference imports to suppress errors if they are not otherwise used.
  45. var _ context.Context
  46. var _ grpc.ClientConnInterface
  47. // This is a compile-time assertion to ensure that this generated file
  48. // is compatible with the grpc package it is being compiled against.
  49. const _ = grpc.SupportPackageIsVersion6
  50. // PropertyLogClient is the client API for PropertyLog service.
  51. //
  52. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  53. type PropertyLogClient interface {
  54. // 物业公司操作日志
  55. CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error)
  56. CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error)
  57. // 物业操作日志
  58. SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error)
  59. SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error)
  60. }
  61. type propertyLogClient struct {
  62. cc grpc.ClientConnInterface
  63. }
  64. func NewPropertyLogClient(cc grpc.ClientConnInterface) PropertyLogClient {
  65. return &propertyLogClient{cc}
  66. }
  67. func (c *propertyLogClient) CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error) {
  68. out := new(v1.CompanyLogAddReply)
  69. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLogAdd", in, out, opts...)
  70. if err != nil {
  71. return nil, err
  72. }
  73. return out, nil
  74. }
  75. func (c *propertyLogClient) CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error) {
  76. out := new(v1.CompanyLogReply)
  77. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLog", in, out, opts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *propertyLogClient) SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) {
  84. out := new(v1.SystemLogAddReply)
  85. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLogAdd", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *propertyLogClient) SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error) {
  92. out := new(v1.SystemLogReply)
  93. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLog", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. // PropertyLogServer is the server API for PropertyLog service.
  100. type PropertyLogServer interface {
  101. // 物业公司操作日志
  102. CompanyLogAdd(context.Context, *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error)
  103. CompanyLog(context.Context, *v1.CompanyLogRequest) (*v1.CompanyLogReply, error)
  104. // 物业操作日志
  105. SystemLogAdd(context.Context, *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error)
  106. SystemLog(context.Context, *v1.SystemLogRequest) (*v1.SystemLogReply, error)
  107. }
  108. // UnimplementedPropertyLogServer can be embedded to have forward compatible implementations.
  109. type UnimplementedPropertyLogServer struct {
  110. }
  111. func (*UnimplementedPropertyLogServer) CompanyLogAdd(ctx context.Context, req *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error) {
  112. return nil, status.Errorf(codes.Unimplemented, "method CompanyLogAdd not implemented")
  113. }
  114. func (*UnimplementedPropertyLogServer) CompanyLog(ctx context.Context, req *v1.CompanyLogRequest) (*v1.CompanyLogReply, error) {
  115. return nil, status.Errorf(codes.Unimplemented, "method CompanyLog not implemented")
  116. }
  117. func (*UnimplementedPropertyLogServer) SystemLogAdd(ctx context.Context, req *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) {
  118. return nil, status.Errorf(codes.Unimplemented, "method SystemLogAdd not implemented")
  119. }
  120. func (*UnimplementedPropertyLogServer) SystemLog(ctx context.Context, req *v1.SystemLogRequest) (*v1.SystemLogReply, error) {
  121. return nil, status.Errorf(codes.Unimplemented, "method SystemLog not implemented")
  122. }
  123. func RegisterPropertyLogServer(s *grpc.Server, srv PropertyLogServer) {
  124. s.RegisterService(&_PropertyLog_serviceDesc, srv)
  125. }
  126. func _PropertyLog_CompanyLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  127. in := new(v1.CompanyLogAddRequest)
  128. if err := dec(in); err != nil {
  129. return nil, err
  130. }
  131. if interceptor == nil {
  132. return srv.(PropertyLogServer).CompanyLogAdd(ctx, in)
  133. }
  134. info := &grpc.UnaryServerInfo{
  135. Server: srv,
  136. FullMethod: "/pb.service.PropertyLog/CompanyLogAdd",
  137. }
  138. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  139. return srv.(PropertyLogServer).CompanyLogAdd(ctx, req.(*v1.CompanyLogAddRequest))
  140. }
  141. return interceptor(ctx, in, info, handler)
  142. }
  143. func _PropertyLog_CompanyLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  144. in := new(v1.CompanyLogRequest)
  145. if err := dec(in); err != nil {
  146. return nil, err
  147. }
  148. if interceptor == nil {
  149. return srv.(PropertyLogServer).CompanyLog(ctx, in)
  150. }
  151. info := &grpc.UnaryServerInfo{
  152. Server: srv,
  153. FullMethod: "/pb.service.PropertyLog/CompanyLog",
  154. }
  155. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  156. return srv.(PropertyLogServer).CompanyLog(ctx, req.(*v1.CompanyLogRequest))
  157. }
  158. return interceptor(ctx, in, info, handler)
  159. }
  160. func _PropertyLog_SystemLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  161. in := new(v1.SystemLogAddRequest)
  162. if err := dec(in); err != nil {
  163. return nil, err
  164. }
  165. if interceptor == nil {
  166. return srv.(PropertyLogServer).SystemLogAdd(ctx, in)
  167. }
  168. info := &grpc.UnaryServerInfo{
  169. Server: srv,
  170. FullMethod: "/pb.service.PropertyLog/SystemLogAdd",
  171. }
  172. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  173. return srv.(PropertyLogServer).SystemLogAdd(ctx, req.(*v1.SystemLogAddRequest))
  174. }
  175. return interceptor(ctx, in, info, handler)
  176. }
  177. func _PropertyLog_SystemLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  178. in := new(v1.SystemLogRequest)
  179. if err := dec(in); err != nil {
  180. return nil, err
  181. }
  182. if interceptor == nil {
  183. return srv.(PropertyLogServer).SystemLog(ctx, in)
  184. }
  185. info := &grpc.UnaryServerInfo{
  186. Server: srv,
  187. FullMethod: "/pb.service.PropertyLog/SystemLog",
  188. }
  189. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  190. return srv.(PropertyLogServer).SystemLog(ctx, req.(*v1.SystemLogRequest))
  191. }
  192. return interceptor(ctx, in, info, handler)
  193. }
  194. var _PropertyLog_serviceDesc = grpc.ServiceDesc{
  195. ServiceName: "pb.service.PropertyLog",
  196. HandlerType: (*PropertyLogServer)(nil),
  197. Methods: []grpc.MethodDesc{
  198. {
  199. MethodName: "CompanyLogAdd",
  200. Handler: _PropertyLog_CompanyLogAdd_Handler,
  201. },
  202. {
  203. MethodName: "CompanyLog",
  204. Handler: _PropertyLog_CompanyLog_Handler,
  205. },
  206. {
  207. MethodName: "SystemLogAdd",
  208. Handler: _PropertyLog_SystemLogAdd_Handler,
  209. },
  210. {
  211. MethodName: "SystemLog",
  212. Handler: _PropertyLog_SystemLog_Handler,
  213. },
  214. },
  215. Streams: []grpc.StreamDesc{},
  216. Metadata: "property_log_service.proto",
  217. }