123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: common_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-company-gateway/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("common_service.proto", fileDescriptor_1c30f963b95fce05)
- }
- var fileDescriptor_1c30f963b95fce05 = []byte{
- // 309 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x4e, 0x02, 0x31,
- 0x10, 0xc6, 0xbd, 0xc8, 0xa1, 0x1e, 0x30, 0x95, 0x68, 0x04, 0xf1, 0x0f, 0xf1, 0xca, 0x12, 0xf4,
- 0x09, 0x56, 0x38, 0x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, 0x80, 0xdf, 0x6f, 0x2c, 0x11, 0x01, 0x68, 0x3f,
- 0xfc, 0xc9, 0xdf, 0x3c, 0x18, 0x7b, 0x31, 0xfc, 0x23, 0x4c, 0xb5, 0xce, 0x25, 0x67, 0x18, 0xee,
- 0x23, 0x08, 0x1b, 0x79, 0x53, 0xf8, 0x0f, 0x7b, 0xe1, 0x84, 0x1c, 0xcc, 0x18, 0x7f, 0x65, 0x2b,
- 0xa8, 0x65, 0xa7, 0x61, 0xa1, 0xdf, 0x2c, 0x88, 0x4e, 0x36, 0xa1, 0x5a, 0x72, 0xd7, 0x7f, 0xea,
- 0x69, 0xa3, 0x34, 0x18, 0x74, 0x43, 0xae, 0x0a, 0xcd, 0x4a, 0x37, 0x5c, 0x31, 0x84, 0x0f, 0xe6,
- 0x46, 0x3a, 0xcb, 0x5a, 0xf5, 0xad, 0xdf, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x6a, 0xb6, 0x78,
- 0x13, 0x20, 0x03, 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
- // CommonClient is the client API for Common service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type CommonClient interface {
- // 权限总列表
- SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error)
- // 添加权限节点
- SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error)
- // 更新权限节点
- SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error)
- // 删除权限节点
- SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error)
- // 省市区
- ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error)
- // 街道社区
- StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error)
- // 应用
- ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error)
- // 套餐
- PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error)
- }
- type commonClient struct {
- cc grpc.ClientConnInterface
- }
- func NewCommonClient(cc grpc.ClientConnInterface) CommonClient {
- return &commonClient{cc}
- }
- func (c *commonClient) SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) {
- out := new(v1.SystemPermissionListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) {
- out := new(v1.SystemPermissionAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) {
- out := new(v1.SystemPermissionUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) {
- out := new(v1.SystemPermissionDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) {
- out := new(v1.ProvinceCityAreaReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ProvinceCityArea", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) {
- out := new(v1.StreetCommitteeReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/StreetCommittee", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error) {
- out := new(v1.ApplicationListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error) {
- out := new(v1.PackageListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/PackageList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // CommonServer is the server API for Common service.
- type CommonServer interface {
- // 权限总列表
- SystemPermissionList(context.Context, *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error)
- // 添加权限节点
- SystemPermissionAdd(context.Context, *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error)
- // 更新权限节点
- SystemPermissionUpdate(context.Context, *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error)
- // 删除权限节点
- SystemPermissionDel(context.Context, *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error)
- // 省市区
- ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error)
- // 街道社区
- StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error)
- // 应用
- ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error)
- // 套餐
- PackageList(context.Context, *v1.PackageListRequest) (*v1.PackageListReply, error)
- }
- // UnimplementedCommonServer can be embedded to have forward compatible implementations.
- type UnimplementedCommonServer struct {
- }
- func (*UnimplementedCommonServer) SystemPermissionList(ctx context.Context, req *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionList not implemented")
- }
- func (*UnimplementedCommonServer) SystemPermissionAdd(ctx context.Context, req *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionAdd not implemented")
- }
- func (*UnimplementedCommonServer) SystemPermissionUpdate(ctx context.Context, req *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionUpdate not implemented")
- }
- func (*UnimplementedCommonServer) SystemPermissionDel(ctx context.Context, req *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionDel not implemented")
- }
- func (*UnimplementedCommonServer) ProvinceCityArea(ctx context.Context, req *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProvinceCityArea not implemented")
- }
- func (*UnimplementedCommonServer) StreetCommittee(ctx context.Context, req *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StreetCommittee not implemented")
- }
- func (*UnimplementedCommonServer) ApplicationList(ctx context.Context, req *v1.ApplicationListRequest) (*v1.ApplicationListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationList not implemented")
- }
- func (*UnimplementedCommonServer) PackageList(ctx context.Context, req *v1.PackageListRequest) (*v1.PackageListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PackageList not implemented")
- }
- func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
- s.RegisterService(&_Common_serviceDesc, srv)
- }
- func _Common_SystemPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemPermissionListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).SystemPermissionList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/SystemPermissionList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).SystemPermissionList(ctx, req.(*v1.SystemPermissionListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_SystemPermissionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemPermissionAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).SystemPermissionAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/SystemPermissionAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).SystemPermissionAdd(ctx, req.(*v1.SystemPermissionAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_SystemPermissionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemPermissionUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).SystemPermissionUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/SystemPermissionUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).SystemPermissionUpdate(ctx, req.(*v1.SystemPermissionUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_SystemPermissionDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemPermissionDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).SystemPermissionDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/SystemPermissionDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).SystemPermissionDel(ctx, req.(*v1.SystemPermissionDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_ProvinceCityArea_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProvinceCityAreaRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ProvinceCityArea(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ProvinceCityArea",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ProvinceCityArea(ctx, req.(*v1.ProvinceCityAreaRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_StreetCommittee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.StreetCommitteeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).StreetCommittee(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/StreetCommittee",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).StreetCommittee(ctx, req.(*v1.StreetCommitteeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_ApplicationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationList(ctx, req.(*v1.ApplicationListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_PackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PackageListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).PackageList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/PackageList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).PackageList(ctx, req.(*v1.PackageListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Common_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Common",
- HandlerType: (*CommonServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "SystemPermissionList",
- Handler: _Common_SystemPermissionList_Handler,
- },
- {
- MethodName: "SystemPermissionAdd",
- Handler: _Common_SystemPermissionAdd_Handler,
- },
- {
- MethodName: "SystemPermissionUpdate",
- Handler: _Common_SystemPermissionUpdate_Handler,
- },
- {
- MethodName: "SystemPermissionDel",
- Handler: _Common_SystemPermissionDel_Handler,
- },
- {
- MethodName: "ProvinceCityArea",
- Handler: _Common_ProvinceCityArea_Handler,
- },
- {
- MethodName: "StreetCommittee",
- Handler: _Common_StreetCommittee_Handler,
- },
- {
- MethodName: "ApplicationList",
- Handler: _Common_ApplicationList_Handler,
- },
- {
- MethodName: "PackageList",
- Handler: _Common_PackageList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "common_service.proto",
- }
|