123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: company_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- v1 "property-management/pb/v1"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() {
- proto.RegisterFile("company_service.proto", fileDescriptor_cfe012e92534f5dd)
- }
- var fileDescriptor_cfe012e92534f5dd = []byte{
- // 139 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0xce, 0xcf, 0x2d,
- 0x48, 0xcc, 0xab, 0x8c, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f,
- 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x09, 0x94, 0x19, 0xea, 0x43, 0x55, 0x41,
- 0x64, 0x8d, 0x9c, 0xb8, 0xd8, 0x9d, 0x21, 0x02, 0x42, 0xe6, 0x5c, 0xec, 0x8e, 0x05, 0x05, 0x45,
- 0xf9, 0x65, 0xa9, 0x42, 0xa2, 0x7a, 0x05, 0x49, 0xf1, 0x65, 0x86, 0x7a, 0x50, 0x7e, 0x50, 0x6a,
- 0x61, 0x69, 0x6a, 0x71, 0x89, 0x94, 0x30, 0xba, 0x70, 0x41, 0x4e, 0xa5, 0x12, 0x83, 0x93, 0x44,
- 0x94, 0x58, 0x41, 0x51, 0x7e, 0x41, 0x6a, 0x51, 0x49, 0xa5, 0x6e, 0x6e, 0x62, 0x5e, 0x62, 0x7a,
- 0x6a, 0x6e, 0x6a, 0x5e, 0x89, 0x7e, 0x41, 0x52, 0x12, 0x1b, 0xd8, 0x12, 0x63, 0x40, 0x00, 0x00,
- 0x00, 0xff, 0xff, 0x12, 0xb8, 0x4e, 0xc6, 0x9b, 0x00, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // CompanyClient is the client API for Company service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type CompanyClient interface {
- // 创建系统用户
- Approve(ctx context.Context, in *v1.ApproveRequest, opts ...grpc.CallOption) (*v1.ApproveReply, error)
- }
- type companyClient struct {
- cc grpc.ClientConnInterface
- }
- func NewCompanyClient(cc grpc.ClientConnInterface) CompanyClient {
- return &companyClient{cc}
- }
- func (c *companyClient) Approve(ctx context.Context, in *v1.ApproveRequest, opts ...grpc.CallOption) (*v1.ApproveReply, error) {
- out := new(v1.ApproveReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/Approve", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // CompanyServer is the server API for Company service.
- type CompanyServer interface {
- // 创建系统用户
- Approve(context.Context, *v1.ApproveRequest) (*v1.ApproveReply, error)
- }
- // UnimplementedCompanyServer can be embedded to have forward compatible implementations.
- type UnimplementedCompanyServer struct {
- }
- func (*UnimplementedCompanyServer) Approve(ctx context.Context, req *v1.ApproveRequest) (*v1.ApproveReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Approve not implemented")
- }
- func RegisterCompanyServer(s *grpc.Server, srv CompanyServer) {
- s.RegisterService(&_Company_serviceDesc, srv)
- }
- func _Company_Approve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApproveRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).Approve(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/Approve",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).Approve(ctx, req.(*v1.ApproveRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Company_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Company",
- HandlerType: (*CompanyServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Approve",
- Handler: _Company_Approve_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "company_service.proto",
- }
|