property_log_service.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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-log/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. // 240 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, 0x3a, 0xc0, 0xcc, 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, 0x80, 0x68, 0x0f, 0xe2, 0x12, 0xf0, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0xcd, 0x4d, 0xcd,
  40. 0x2b, 0x81, 0x3a, 0x45, 0x0e, 0xaa, 0x18, 0x5d, 0x02, 0x66, 0x98, 0x0c, 0x4e, 0x79, 0x88, 0x99,
  41. 0x9e, 0x5c, 0xbc, 0x28, 0x52, 0xf0, 0x70, 0x46, 0x11, 0x45, 0x0f, 0x67, 0x34, 0x49, 0xb0, 0x51,
  42. 0x4e, 0x82, 0x51, 0xfc, 0xb0, 0x88, 0xd5, 0xcd, 0xc9, 0x4f, 0xd7, 0x2f, 0x48, 0x4a, 0x62, 0x03,
  43. 0x47, 0xae, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x3d, 0xbb, 0x07, 0x1c, 0x1d, 0x02, 0x00, 0x00,
  44. }
  45. // Reference imports to suppress errors if they are not otherwise used.
  46. var _ context.Context
  47. var _ grpc.ClientConnInterface
  48. // This is a compile-time assertion to ensure that this generated file
  49. // is compatible with the grpc package it is being compiled against.
  50. const _ = grpc.SupportPackageIsVersion6
  51. // PropertyLogClient is the client API for PropertyLog service.
  52. //
  53. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  54. type PropertyLogClient interface {
  55. // 物业公司操作日志
  56. CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error)
  57. CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error)
  58. // 物业操作日志
  59. SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error)
  60. SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error)
  61. // 运营后台操作日志
  62. ManagementLogAdd(ctx context.Context, in *v1.ManagementLogAddRequest, opts ...grpc.CallOption) (*v1.ManagementLogAddReply, error)
  63. ManagementLog(ctx context.Context, in *v1.ManagementLogRequest, opts ...grpc.CallOption) (*v1.ManagementLogReply, error)
  64. }
  65. type propertyLogClient struct {
  66. cc grpc.ClientConnInterface
  67. }
  68. func NewPropertyLogClient(cc grpc.ClientConnInterface) PropertyLogClient {
  69. return &propertyLogClient{cc}
  70. }
  71. func (c *propertyLogClient) CompanyLogAdd(ctx context.Context, in *v1.CompanyLogAddRequest, opts ...grpc.CallOption) (*v1.CompanyLogAddReply, error) {
  72. out := new(v1.CompanyLogAddReply)
  73. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLogAdd", in, out, opts...)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return out, nil
  78. }
  79. func (c *propertyLogClient) CompanyLog(ctx context.Context, in *v1.CompanyLogRequest, opts ...grpc.CallOption) (*v1.CompanyLogReply, error) {
  80. out := new(v1.CompanyLogReply)
  81. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/CompanyLog", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *propertyLogClient) SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) {
  88. out := new(v1.SystemLogAddReply)
  89. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLogAdd", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *propertyLogClient) SystemLog(ctx context.Context, in *v1.SystemLogRequest, opts ...grpc.CallOption) (*v1.SystemLogReply, error) {
  96. out := new(v1.SystemLogReply)
  97. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/SystemLog", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *propertyLogClient) ManagementLogAdd(ctx context.Context, in *v1.ManagementLogAddRequest, opts ...grpc.CallOption) (*v1.ManagementLogAddReply, error) {
  104. out := new(v1.ManagementLogAddReply)
  105. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/ManagementLogAdd", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. func (c *propertyLogClient) ManagementLog(ctx context.Context, in *v1.ManagementLogRequest, opts ...grpc.CallOption) (*v1.ManagementLogReply, error) {
  112. out := new(v1.ManagementLogReply)
  113. err := c.cc.Invoke(ctx, "/pb.service.PropertyLog/ManagementLog", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. // PropertyLogServer is the server API for PropertyLog service.
  120. type PropertyLogServer interface {
  121. // 物业公司操作日志
  122. CompanyLogAdd(context.Context, *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error)
  123. CompanyLog(context.Context, *v1.CompanyLogRequest) (*v1.CompanyLogReply, error)
  124. // 物业操作日志
  125. SystemLogAdd(context.Context, *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error)
  126. SystemLog(context.Context, *v1.SystemLogRequest) (*v1.SystemLogReply, error)
  127. // 运营后台操作日志
  128. ManagementLogAdd(context.Context, *v1.ManagementLogAddRequest) (*v1.ManagementLogAddReply, error)
  129. ManagementLog(context.Context, *v1.ManagementLogRequest) (*v1.ManagementLogReply, error)
  130. }
  131. // UnimplementedPropertyLogServer can be embedded to have forward compatible implementations.
  132. type UnimplementedPropertyLogServer struct {
  133. }
  134. func (*UnimplementedPropertyLogServer) CompanyLogAdd(ctx context.Context, req *v1.CompanyLogAddRequest) (*v1.CompanyLogAddReply, error) {
  135. return nil, status.Errorf(codes.Unimplemented, "method CompanyLogAdd not implemented")
  136. }
  137. func (*UnimplementedPropertyLogServer) CompanyLog(ctx context.Context, req *v1.CompanyLogRequest) (*v1.CompanyLogReply, error) {
  138. return nil, status.Errorf(codes.Unimplemented, "method CompanyLog not implemented")
  139. }
  140. func (*UnimplementedPropertyLogServer) SystemLogAdd(ctx context.Context, req *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) {
  141. return nil, status.Errorf(codes.Unimplemented, "method SystemLogAdd not implemented")
  142. }
  143. func (*UnimplementedPropertyLogServer) SystemLog(ctx context.Context, req *v1.SystemLogRequest) (*v1.SystemLogReply, error) {
  144. return nil, status.Errorf(codes.Unimplemented, "method SystemLog not implemented")
  145. }
  146. func (*UnimplementedPropertyLogServer) ManagementLogAdd(ctx context.Context, req *v1.ManagementLogAddRequest) (*v1.ManagementLogAddReply, error) {
  147. return nil, status.Errorf(codes.Unimplemented, "method ManagementLogAdd not implemented")
  148. }
  149. func (*UnimplementedPropertyLogServer) ManagementLog(ctx context.Context, req *v1.ManagementLogRequest) (*v1.ManagementLogReply, error) {
  150. return nil, status.Errorf(codes.Unimplemented, "method ManagementLog not implemented")
  151. }
  152. func RegisterPropertyLogServer(s *grpc.Server, srv PropertyLogServer) {
  153. s.RegisterService(&_PropertyLog_serviceDesc, srv)
  154. }
  155. func _PropertyLog_CompanyLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  156. in := new(v1.CompanyLogAddRequest)
  157. if err := dec(in); err != nil {
  158. return nil, err
  159. }
  160. if interceptor == nil {
  161. return srv.(PropertyLogServer).CompanyLogAdd(ctx, in)
  162. }
  163. info := &grpc.UnaryServerInfo{
  164. Server: srv,
  165. FullMethod: "/pb.service.PropertyLog/CompanyLogAdd",
  166. }
  167. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  168. return srv.(PropertyLogServer).CompanyLogAdd(ctx, req.(*v1.CompanyLogAddRequest))
  169. }
  170. return interceptor(ctx, in, info, handler)
  171. }
  172. func _PropertyLog_CompanyLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  173. in := new(v1.CompanyLogRequest)
  174. if err := dec(in); err != nil {
  175. return nil, err
  176. }
  177. if interceptor == nil {
  178. return srv.(PropertyLogServer).CompanyLog(ctx, in)
  179. }
  180. info := &grpc.UnaryServerInfo{
  181. Server: srv,
  182. FullMethod: "/pb.service.PropertyLog/CompanyLog",
  183. }
  184. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  185. return srv.(PropertyLogServer).CompanyLog(ctx, req.(*v1.CompanyLogRequest))
  186. }
  187. return interceptor(ctx, in, info, handler)
  188. }
  189. func _PropertyLog_SystemLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  190. in := new(v1.SystemLogAddRequest)
  191. if err := dec(in); err != nil {
  192. return nil, err
  193. }
  194. if interceptor == nil {
  195. return srv.(PropertyLogServer).SystemLogAdd(ctx, in)
  196. }
  197. info := &grpc.UnaryServerInfo{
  198. Server: srv,
  199. FullMethod: "/pb.service.PropertyLog/SystemLogAdd",
  200. }
  201. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  202. return srv.(PropertyLogServer).SystemLogAdd(ctx, req.(*v1.SystemLogAddRequest))
  203. }
  204. return interceptor(ctx, in, info, handler)
  205. }
  206. func _PropertyLog_SystemLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  207. in := new(v1.SystemLogRequest)
  208. if err := dec(in); err != nil {
  209. return nil, err
  210. }
  211. if interceptor == nil {
  212. return srv.(PropertyLogServer).SystemLog(ctx, in)
  213. }
  214. info := &grpc.UnaryServerInfo{
  215. Server: srv,
  216. FullMethod: "/pb.service.PropertyLog/SystemLog",
  217. }
  218. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  219. return srv.(PropertyLogServer).SystemLog(ctx, req.(*v1.SystemLogRequest))
  220. }
  221. return interceptor(ctx, in, info, handler)
  222. }
  223. func _PropertyLog_ManagementLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  224. in := new(v1.ManagementLogAddRequest)
  225. if err := dec(in); err != nil {
  226. return nil, err
  227. }
  228. if interceptor == nil {
  229. return srv.(PropertyLogServer).ManagementLogAdd(ctx, in)
  230. }
  231. info := &grpc.UnaryServerInfo{
  232. Server: srv,
  233. FullMethod: "/pb.service.PropertyLog/ManagementLogAdd",
  234. }
  235. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  236. return srv.(PropertyLogServer).ManagementLogAdd(ctx, req.(*v1.ManagementLogAddRequest))
  237. }
  238. return interceptor(ctx, in, info, handler)
  239. }
  240. func _PropertyLog_ManagementLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  241. in := new(v1.ManagementLogRequest)
  242. if err := dec(in); err != nil {
  243. return nil, err
  244. }
  245. if interceptor == nil {
  246. return srv.(PropertyLogServer).ManagementLog(ctx, in)
  247. }
  248. info := &grpc.UnaryServerInfo{
  249. Server: srv,
  250. FullMethod: "/pb.service.PropertyLog/ManagementLog",
  251. }
  252. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  253. return srv.(PropertyLogServer).ManagementLog(ctx, req.(*v1.ManagementLogRequest))
  254. }
  255. return interceptor(ctx, in, info, handler)
  256. }
  257. var _PropertyLog_serviceDesc = grpc.ServiceDesc{
  258. ServiceName: "pb.service.PropertyLog",
  259. HandlerType: (*PropertyLogServer)(nil),
  260. Methods: []grpc.MethodDesc{
  261. {
  262. MethodName: "CompanyLogAdd",
  263. Handler: _PropertyLog_CompanyLogAdd_Handler,
  264. },
  265. {
  266. MethodName: "CompanyLog",
  267. Handler: _PropertyLog_CompanyLog_Handler,
  268. },
  269. {
  270. MethodName: "SystemLogAdd",
  271. Handler: _PropertyLog_SystemLogAdd_Handler,
  272. },
  273. {
  274. MethodName: "SystemLog",
  275. Handler: _PropertyLog_SystemLog_Handler,
  276. },
  277. {
  278. MethodName: "ManagementLogAdd",
  279. Handler: _PropertyLog_ManagementLogAdd_Handler,
  280. },
  281. {
  282. MethodName: "ManagementLog",
  283. Handler: _PropertyLog_ManagementLog_Handler,
  284. },
  285. },
  286. Streams: []grpc.StreamDesc{},
  287. Metadata: "property_log_service.proto",
  288. }