123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669 |
- // 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-system/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{
- // 430 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x5f, 0x6f, 0xda, 0x30,
- 0x14, 0xc5, 0xf7, 0x84, 0x34, 0x4f, 0x1a, 0x9b, 0xc7, 0xc6, 0xc6, 0xc6, 0xfe, 0xa0, 0xa9, 0x6f,
- 0x0d, 0xa2, 0x7d, 0xee, 0x43, 0x0a, 0x7d, 0xa8, 0x44, 0x01, 0x41, 0x79, 0x69, 0xa5, 0xa2, 0xfc,
- 0xb9, 0x45, 0xa6, 0x49, 0xec, 0xda, 0x6e, 0xd4, 0x7c, 0x8a, 0x7e, 0xe5, 0x2a, 0x31, 0xa6, 0xc1,
- 0xc4, 0xf0, 0x7a, 0x7f, 0xc7, 0xe7, 0x9e, 0x8b, 0x4e, 0x40, 0x8d, 0x80, 0xc6, 0x31, 0x4d, 0x16,
- 0x02, 0x78, 0x4a, 0x02, 0x70, 0x18, 0xa7, 0x92, 0x62, 0xc4, 0x7c, 0x67, 0x3d, 0x69, 0xd5, 0xd3,
- 0x5e, 0x57, 0x89, 0x14, 0x3c, 0x79, 0x41, 0xa8, 0xd6, 0x2f, 0x06, 0xf8, 0x0e, 0x35, 0x66, 0x99,
- 0x90, 0x10, 0x4f, 0x80, 0xc7, 0x44, 0x08, 0x42, 0x93, 0x21, 0x11, 0x12, 0x77, 0x1c, 0xe6, 0x2f,
- 0xd2, 0x9e, 0x53, 0x05, 0xa7, 0xf0, 0xf8, 0x04, 0x42, 0xb6, 0xfe, 0xee, 0xd5, 0xb0, 0x28, 0xeb,
- 0xbc, 0xc3, 0x2b, 0xf4, 0xdd, 0xc4, 0x62, 0x44, 0xe5, 0x35, 0x07, 0xc0, 0x47, 0x96, 0xf7, 0x5a,
- 0xa0, 0xf7, 0xfc, 0x3f, 0xa8, 0x53, 0xbb, 0x6e, 0xd1, 0x17, 0x53, 0xe2, 0x86, 0x21, 0xfe, 0x67,
- 0x79, 0xee, 0x86, 0xa1, 0xde, 0xf0, 0x67, 0x9f, 0x44, 0x99, 0x87, 0xe8, 0x9b, 0x49, 0xe7, 0x2c,
- 0xf4, 0x24, 0x60, 0x5b, 0x3c, 0x85, 0xf5, 0x8a, 0xce, 0x01, 0x95, 0xf5, 0x84, 0x01, 0x44, 0xd6,
- 0x13, 0x06, 0x10, 0x1d, 0x3a, 0xa1, 0x90, 0x28, 0xf3, 0x29, 0xfa, 0x34, 0xe1, 0x34, 0x25, 0x49,
- 0x00, 0x7d, 0x22, 0x33, 0x97, 0x83, 0x87, 0x7f, 0xaf, 0x9f, 0x99, 0x40, 0xdb, 0xfe, 0xb2, 0x72,
- 0xe5, 0x39, 0x46, 0xf5, 0x99, 0xe4, 0x00, 0x32, 0xef, 0x13, 0x91, 0x12, 0x00, 0xb7, 0x75, 0x92,
- 0xed, 0xb9, 0x76, 0xfc, 0x69, 0xc3, 0xca, 0x70, 0x8e, 0x3e, 0x8f, 0x85, 0x18, 0xfb, 0xab, 0x01,
- 0x44, 0x23, 0x2a, 0x2f, 0x9e, 0xf3, 0x36, 0xea, 0xe3, 0x76, 0x88, 0x36, 0x6d, 0xdb, 0x05, 0xca,
- 0xf6, 0x0c, 0xbd, 0x57, 0x2c, 0x6f, 0x44, 0x73, 0x4b, 0x5d, 0xea, 0xc1, 0xd7, 0x5d, 0xb0, 0x39,
- 0xd3, 0x65, 0x2c, 0x22, 0x81, 0x27, 0xf5, 0x17, 0xa2, 0x57, 0x1a, 0x73, 0xf3, 0xcc, 0x1d, 0xbc,
- 0xa9, 0x53, 0x89, 0x94, 0x3a, 0xbd, 0xa9, 0x53, 0x35, 0x36, 0xeb, 0x64, 0x53, 0x55, 0xc5, 0xbe,
- 0x4c, 0xee, 0x69, 0x55, 0xec, 0x7c, 0xbe, 0x27, 0xb6, 0xc2, 0xca, 0xb0, 0x8f, 0x3e, 0x4c, 0xbc,
- 0xe0, 0xc1, 0x5b, 0x42, 0xf1, 0x1b, 0xfc, 0xd0, 0xed, 0x78, 0x9b, 0x69, 0xa3, 0x66, 0x15, 0x32,
- 0x4d, 0x8a, 0x44, 0x86, 0x49, 0x39, 0x4d, 0xb3, 0x0a, 0x29, 0x93, 0x21, 0xfa, 0x78, 0x25, 0x96,
- 0x65, 0x1f, 0x5d, 0xd5, 0xed, 0xb1, 0xb6, 0x6a, 0x59, 0x68, 0xe1, 0x76, 0xde, 0xb8, 0xc1, 0x8c,
- 0x53, 0x06, 0x5c, 0x66, 0xc7, 0xa2, 0xf8, 0x82, 0xba, 0xcc, 0xf7, 0x6b, 0xc5, 0xdf, 0xe5, 0xe9,
- 0x6b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x69, 0xb1, 0x7f, 0x40, 0x63, 0x05, 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)
- SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, 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)
- // 对象存储删除无用的数据
- OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error)
- // 对象存储添加到公共区
- OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error)
- // 应用
- ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error)
- ApplicationPermissions(ctx context.Context, in *v1.ApplicationPermissionsRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsReply, error)
- ApplicationInfo(ctx context.Context, in *v1.ApplicationInfoRequest, opts ...grpc.CallOption) (*v1.ApplicationInfoReply, error)
- // 套餐
- PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error)
- PackageInfo(ctx context.Context, in *v1.PackageInfoRequest, opts ...grpc.CallOption) (*v1.PackageInfoReply, error)
- // 短信套餐
- MsgPackageInfo(ctx context.Context, in *v1.MsgPackageInfoRequest, opts ...grpc.CallOption) (*v1.MsgPackageInfoReply, 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) SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error) {
- out := new(v1.SystemPermissionsNotTreeReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionsNotTree", 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) OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) {
- out := new(v1.OssObjDelNotExistReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjDelNotExist", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error) {
- out := new(v1.OssObjAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjAdd", 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) ApplicationPermissions(ctx context.Context, in *v1.ApplicationPermissionsRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsReply, error) {
- out := new(v1.ApplicationPermissionsReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationPermissions", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) ApplicationInfo(ctx context.Context, in *v1.ApplicationInfoRequest, opts ...grpc.CallOption) (*v1.ApplicationInfoReply, error) {
- out := new(v1.ApplicationInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationInfo", 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
- }
- func (c *commonClient) PackageInfo(ctx context.Context, in *v1.PackageInfoRequest, opts ...grpc.CallOption) (*v1.PackageInfoReply, error) {
- out := new(v1.PackageInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/PackageInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MsgPackageInfo(ctx context.Context, in *v1.MsgPackageInfoRequest, opts ...grpc.CallOption) (*v1.MsgPackageInfoReply, error) {
- out := new(v1.MsgPackageInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageInfo", 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)
- SystemPermissionsNotTree(context.Context, *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, 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)
- // 对象存储删除无用的数据
- OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error)
- // 对象存储添加到公共区
- OssObjAdd(context.Context, *v1.OssObjAddRequest) (*v1.OssObjAddReply, error)
- // 应用
- ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error)
- ApplicationPermissions(context.Context, *v1.ApplicationPermissionsRequest) (*v1.ApplicationPermissionsReply, error)
- ApplicationInfo(context.Context, *v1.ApplicationInfoRequest) (*v1.ApplicationInfoReply, error)
- // 套餐
- PackageList(context.Context, *v1.PackageListRequest) (*v1.PackageListReply, error)
- PackageInfo(context.Context, *v1.PackageInfoRequest) (*v1.PackageInfoReply, error)
- // 短信套餐
- MsgPackageInfo(context.Context, *v1.MsgPackageInfoRequest) (*v1.MsgPackageInfoReply, 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) SystemPermissionsNotTree(ctx context.Context, req *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionsNotTree 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) OssObjDelNotExist(ctx context.Context, req *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method OssObjDelNotExist not implemented")
- }
- func (*UnimplementedCommonServer) OssObjAdd(ctx context.Context, req *v1.OssObjAddRequest) (*v1.OssObjAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method OssObjAdd 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) ApplicationPermissions(ctx context.Context, req *v1.ApplicationPermissionsRequest) (*v1.ApplicationPermissionsReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationPermissions not implemented")
- }
- func (*UnimplementedCommonServer) ApplicationInfo(ctx context.Context, req *v1.ApplicationInfoRequest) (*v1.ApplicationInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationInfo 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 (*UnimplementedCommonServer) PackageInfo(ctx context.Context, req *v1.PackageInfoRequest) (*v1.PackageInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PackageInfo not implemented")
- }
- func (*UnimplementedCommonServer) MsgPackageInfo(ctx context.Context, req *v1.MsgPackageInfoRequest) (*v1.MsgPackageInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MsgPackageInfo 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_SystemPermissionsNotTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemPermissionsNotTreeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).SystemPermissionsNotTree(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/SystemPermissionsNotTree",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).SystemPermissionsNotTree(ctx, req.(*v1.SystemPermissionsNotTreeRequest))
- }
- 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_OssObjDelNotExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.OssObjDelNotExistRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).OssObjDelNotExist(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/OssObjDelNotExist",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).OssObjDelNotExist(ctx, req.(*v1.OssObjDelNotExistRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_OssObjAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.OssObjAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).OssObjAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/OssObjAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).OssObjAdd(ctx, req.(*v1.OssObjAddRequest))
- }
- 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_ApplicationPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationPermissionsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationPermissions(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationPermissions",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationPermissions(ctx, req.(*v1.ApplicationPermissionsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_ApplicationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationInfo(ctx, req.(*v1.ApplicationInfoRequest))
- }
- 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)
- }
- func _Common_PackageInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PackageInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).PackageInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/PackageInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).PackageInfo(ctx, req.(*v1.PackageInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MsgPackageInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MsgPackageInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MsgPackageInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MsgPackageInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MsgPackageInfo(ctx, req.(*v1.MsgPackageInfoRequest))
- }
- 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: "SystemPermissionsNotTree",
- Handler: _Common_SystemPermissionsNotTree_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: "OssObjDelNotExist",
- Handler: _Common_OssObjDelNotExist_Handler,
- },
- {
- MethodName: "OssObjAdd",
- Handler: _Common_OssObjAdd_Handler,
- },
- {
- MethodName: "ApplicationList",
- Handler: _Common_ApplicationList_Handler,
- },
- {
- MethodName: "ApplicationPermissions",
- Handler: _Common_ApplicationPermissions_Handler,
- },
- {
- MethodName: "ApplicationInfo",
- Handler: _Common_ApplicationInfo_Handler,
- },
- {
- MethodName: "PackageList",
- Handler: _Common_PackageList_Handler,
- },
- {
- MethodName: "PackageInfo",
- Handler: _Common_PackageInfo_Handler,
- },
- {
- MethodName: "MsgPackageInfo",
- Handler: _Common_MsgPackageInfo_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "common_service.proto",
- }
|