company_service.pb.go 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: company_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/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("company_service.proto", fileDescriptor_cfe012e92534f5dd)
  26. }
  27. var fileDescriptor_cfe012e92534f5dd = []byte{
  28. // 180 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0xce, 0xcf, 0x2d,
  30. 0x48, 0xcc, 0xab, 0x8c, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f,
  31. 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x09, 0x94, 0x19, 0xea, 0x43, 0x55, 0x41,
  32. 0x64, 0x8d, 0x2e, 0x31, 0x72, 0xb1, 0x3b, 0x43, 0x44, 0x84, 0x12, 0xb9, 0x44, 0xa1, 0x4c, 0xf7,
  33. 0xc4, 0xa2, 0x94, 0xd4, 0x3c, 0x97, 0xd4, 0xe4, 0xa2, 0xd4, 0xc4, 0xe2, 0x54, 0x21, 0x65, 0xbd,
  34. 0x82, 0xa4, 0xf8, 0x32, 0x43, 0x3d, 0xac, 0xb2, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x52,
  35. 0x8a, 0xf8, 0x15, 0x15, 0xe4, 0x54, 0x2a, 0x31, 0x08, 0xa5, 0x70, 0x89, 0x41, 0xe5, 0xfd, 0x93,
  36. 0xb2, 0x82, 0x4b, 0x12, 0x4b, 0x32, 0x8b, 0x4b, 0x32, 0x93, 0x83, 0x53, 0x4b, 0x84, 0x54, 0x50,
  37. 0xb5, 0xa3, 0x49, 0xc3, 0x2c, 0x51, 0x22, 0xa0, 0x0a, 0x6c, 0x8b, 0x93, 0x48, 0x94, 0x50, 0x41,
  38. 0x51, 0x7e, 0x41, 0x6a, 0x51, 0x49, 0xa5, 0x6e, 0x71, 0x65, 0x71, 0x49, 0x6a, 0xae, 0x7e, 0x41,
  39. 0x52, 0x12, 0x1b, 0xd8, 0xc7, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x1c, 0x0f, 0x5d,
  40. 0x28, 0x01, 0x00, 0x00,
  41. }
  42. // Reference imports to suppress errors if they are not otherwise used.
  43. var _ context.Context
  44. var _ grpc.ClientConnInterface
  45. // This is a compile-time assertion to ensure that this generated file
  46. // is compatible with the grpc package it is being compiled against.
  47. const _ = grpc.SupportPackageIsVersion6
  48. // CompanyClient is the client API for Company service.
  49. //
  50. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  51. type CompanyClient interface {
  52. // 小区审批未通过时数量减1
  53. CompanyGardenDecrease(ctx context.Context, in *v1.CompanyGardenDecreaseRequest, opts ...grpc.CallOption) (*v1.CompanyGardenDecreaseReply, error)
  54. CompanyObjStatisticSet(ctx context.Context, in *v1.CompanyObjStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyObjStatisticSetReply, error)
  55. }
  56. type companyClient struct {
  57. cc grpc.ClientConnInterface
  58. }
  59. func NewCompanyClient(cc grpc.ClientConnInterface) CompanyClient {
  60. return &companyClient{cc}
  61. }
  62. func (c *companyClient) CompanyGardenDecrease(ctx context.Context, in *v1.CompanyGardenDecreaseRequest, opts ...grpc.CallOption) (*v1.CompanyGardenDecreaseReply, error) {
  63. out := new(v1.CompanyGardenDecreaseReply)
  64. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyGardenDecrease", in, out, opts...)
  65. if err != nil {
  66. return nil, err
  67. }
  68. return out, nil
  69. }
  70. func (c *companyClient) CompanyObjStatisticSet(ctx context.Context, in *v1.CompanyObjStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyObjStatisticSetReply, error) {
  71. out := new(v1.CompanyObjStatisticSetReply)
  72. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyObjStatisticSet", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. // CompanyServer is the server API for Company service.
  79. type CompanyServer interface {
  80. // 小区审批未通过时数量减1
  81. CompanyGardenDecrease(context.Context, *v1.CompanyGardenDecreaseRequest) (*v1.CompanyGardenDecreaseReply, error)
  82. CompanyObjStatisticSet(context.Context, *v1.CompanyObjStatisticSetRequest) (*v1.CompanyObjStatisticSetReply, error)
  83. }
  84. // UnimplementedCompanyServer can be embedded to have forward compatible implementations.
  85. type UnimplementedCompanyServer struct {
  86. }
  87. func (*UnimplementedCompanyServer) CompanyGardenDecrease(ctx context.Context, req *v1.CompanyGardenDecreaseRequest) (*v1.CompanyGardenDecreaseReply, error) {
  88. return nil, status.Errorf(codes.Unimplemented, "method CompanyGardenDecrease not implemented")
  89. }
  90. func (*UnimplementedCompanyServer) CompanyObjStatisticSet(ctx context.Context, req *v1.CompanyObjStatisticSetRequest) (*v1.CompanyObjStatisticSetReply, error) {
  91. return nil, status.Errorf(codes.Unimplemented, "method CompanyObjStatisticSet not implemented")
  92. }
  93. func RegisterCompanyServer(s *grpc.Server, srv CompanyServer) {
  94. s.RegisterService(&_Company_serviceDesc, srv)
  95. }
  96. func _Company_CompanyGardenDecrease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  97. in := new(v1.CompanyGardenDecreaseRequest)
  98. if err := dec(in); err != nil {
  99. return nil, err
  100. }
  101. if interceptor == nil {
  102. return srv.(CompanyServer).CompanyGardenDecrease(ctx, in)
  103. }
  104. info := &grpc.UnaryServerInfo{
  105. Server: srv,
  106. FullMethod: "/pb.service.Company/CompanyGardenDecrease",
  107. }
  108. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  109. return srv.(CompanyServer).CompanyGardenDecrease(ctx, req.(*v1.CompanyGardenDecreaseRequest))
  110. }
  111. return interceptor(ctx, in, info, handler)
  112. }
  113. func _Company_CompanyObjStatisticSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  114. in := new(v1.CompanyObjStatisticSetRequest)
  115. if err := dec(in); err != nil {
  116. return nil, err
  117. }
  118. if interceptor == nil {
  119. return srv.(CompanyServer).CompanyObjStatisticSet(ctx, in)
  120. }
  121. info := &grpc.UnaryServerInfo{
  122. Server: srv,
  123. FullMethod: "/pb.service.Company/CompanyObjStatisticSet",
  124. }
  125. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  126. return srv.(CompanyServer).CompanyObjStatisticSet(ctx, req.(*v1.CompanyObjStatisticSetRequest))
  127. }
  128. return interceptor(ctx, in, info, handler)
  129. }
  130. var _Company_serviceDesc = grpc.ServiceDesc{
  131. ServiceName: "pb.service.Company",
  132. HandlerType: (*CompanyServer)(nil),
  133. Methods: []grpc.MethodDesc{
  134. {
  135. MethodName: "CompanyGardenDecrease",
  136. Handler: _Company_CompanyGardenDecrease_Handler,
  137. },
  138. {
  139. MethodName: "CompanyObjStatisticSet",
  140. Handler: _Company_CompanyObjStatisticSet_Handler,
  141. },
  142. },
  143. Streams: []grpc.StreamDesc{},
  144. Metadata: "company_service.proto",
  145. }