123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485 |
- // 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-common/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{
- // 737 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x96, 0xdb, 0x6f, 0xd3, 0x30,
- 0x14, 0xc6, 0x79, 0x40, 0x93, 0x30, 0x97, 0x0d, 0xd3, 0x2d, 0x6d, 0x7a, 0x19, 0x2b, 0xb7, 0x27,
- 0x3a, 0x0d, 0x9e, 0x91, 0x28, 0xed, 0x90, 0x26, 0x6d, 0x6b, 0xb5, 0xb2, 0x17, 0x90, 0x36, 0x25,
- 0x8d, 0x99, 0x32, 0xd2, 0x26, 0x24, 0xa6, 0xa2, 0x7f, 0x2b, 0xff, 0x0c, 0x72, 0x8e, 0x9d, 0xf8,
- 0xda, 0x3e, 0xe6, 0xfc, 0x3e, 0x7f, 0xbe, 0x9c, 0xcf, 0x56, 0x50, 0x63, 0x9e, 0x2e, 0x16, 0xe9,
- 0xf2, 0xb6, 0x20, 0xf9, 0x2a, 0x9e, 0x93, 0x41, 0x96, 0xa7, 0x34, 0xc5, 0x28, 0x0b, 0x07, 0xbc,
- 0xe2, 0xef, 0xae, 0x4e, 0x8e, 0x41, 0x04, 0xf0, 0xc3, 0x3f, 0x0f, 0xed, 0x8c, 0xca, 0x02, 0xbe,
- 0x41, 0x8d, 0xd9, 0xba, 0xa0, 0x64, 0x31, 0x25, 0xf9, 0x22, 0x2e, 0x8a, 0x38, 0x5d, 0x9e, 0xc7,
- 0x05, 0xc5, 0xfd, 0x41, 0x16, 0xde, 0xae, 0x4e, 0x06, 0x36, 0x78, 0x45, 0x7e, 0xff, 0x21, 0x05,
- 0xf5, 0x5f, 0x6e, 0xd4, 0x64, 0xc9, 0xba, 0xff, 0x00, 0xdf, 0xa3, 0xa6, 0x8e, 0x8b, 0xcb, 0x94,
- 0x7e, 0xcb, 0x09, 0xc1, 0x6f, 0x1d, 0xe3, 0x85, 0x40, 0xcc, 0xf3, 0x7a, 0xab, 0x0e, 0xe6, 0xfa,
- 0x81, 0x5e, 0xe8, 0x92, 0x61, 0x14, 0xe1, 0x23, 0xc7, 0xf0, 0x61, 0x14, 0x89, 0x19, 0x0e, 0x37,
- 0x49, 0xc0, 0x3c, 0x42, 0x07, 0x3a, 0xbd, 0xce, 0xa2, 0x80, 0x12, 0xec, 0x5a, 0x1e, 0x60, 0x31,
- 0x45, 0x7f, 0x8b, 0xca, 0xb9, 0x85, 0x31, 0x49, 0x9c, 0x5b, 0x18, 0x93, 0x64, 0xdb, 0x16, 0x4a,
- 0x89, 0x73, 0x0b, 0xa7, 0xcb, 0x20, 0x4c, 0xdc, 0x5b, 0x00, 0xbc, 0x6d, 0x0b, 0x42, 0x05, 0xb3,
- 0x5c, 0xa1, 0xbd, 0x69, 0x9e, 0xae, 0xe2, 0xe5, 0x9c, 0x8c, 0x62, 0xba, 0x1e, 0xe6, 0x24, 0xc0,
- 0x3d, 0x3e, 0x52, 0x07, 0xc2, 0xb9, 0xe3, 0xe4, 0xe0, 0x39, 0x41, 0xbb, 0x33, 0x9a, 0x13, 0x42,
- 0x59, 0x6a, 0x63, 0x4a, 0x09, 0xc1, 0x5d, 0xb1, 0x18, 0xb5, 0x2e, 0x1c, 0xdb, 0x2e, 0x0c, 0x86,
- 0x03, 0xf4, 0x90, 0xcd, 0x81, 0x31, 0x97, 0xb1, 0x0f, 0x31, 0x74, 0x4f, 0xa9, 0x81, 0xfe, 0x1a,
- 0x3d, 0x9f, 0x14, 0xc5, 0x24, 0xbc, 0x1f, 0x93, 0xe4, 0x32, 0xa5, 0xa7, 0x7f, 0xd9, 0x1d, 0x11,
- 0x47, 0x6e, 0x10, 0xe1, 0xd4, 0x75, 0x0b, 0xc0, 0xf6, 0x13, 0x7a, 0x04, 0x8c, 0xe5, 0xd4, 0x53,
- 0xd4, 0x52, 0x3a, 0xf7, 0x4d, 0x00, 0xc3, 0xcf, 0xd1, 0xb3, 0x61, 0x96, 0x25, 0xf1, 0x3c, 0xa0,
- 0x3c, 0xeb, 0xe2, 0x20, 0xd5, 0xb2, 0x30, 0xf2, 0x1d, 0xd4, 0xe6, 0xc6, 0x62, 0x67, 0x71, 0x93,
- 0x12, 0xe7, 0x3b, 0x68, 0x75, 0x62, 0x12, 0xe0, 0x57, 0xe5, 0xd0, 0x1c, 0xa2, 0xde, 0x92, 0xae,
- 0x5b, 0x50, 0x25, 0x41, 0x62, 0xe5, 0x53, 0x65, 0x19, 0x23, 0xbf, 0x52, 0x6d, 0x17, 0x06, 0xc3,
- 0x1b, 0xd4, 0x90, 0x08, 0x44, 0x79, 0x46, 0xea, 0x07, 0xd0, 0x06, 0xf5, 0x07, 0xd0, 0xae, 0x01,
- 0xff, 0x05, 0x6a, 0x49, 0x58, 0x7a, 0xbc, 0xd8, 0x24, 0xef, 0x4c, 0x03, 0x55, 0x21, 0x66, 0x7a,
- 0xb3, 0x5d, 0x58, 0xdd, 0x71, 0xbb, 0xa6, 0xba, 0xe3, 0x76, 0xac, 0xdf, 0x71, 0x97, 0xca, 0xd6,
- 0x85, 0xb3, 0xe5, 0xcf, 0xd4, 0xd6, 0x05, 0x56, 0xdf, 0xd0, 0x05, 0xc0, 0x60, 0xf8, 0x19, 0xa1,
- 0x69, 0x30, 0xff, 0x15, 0xdc, 0x11, 0x96, 0xe2, 0xa6, 0x78, 0x0e, 0xaa, 0x92, 0xb0, 0x39, 0xb0,
- 0x10, 0xdd, 0x81, 0x25, 0x57, 0x73, 0x90, 0x52, 0x7b, 0x60, 0x21, 0xe0, 0x70, 0x86, 0x9e, 0xf2,
- 0x22, 0x4f, 0x6b, 0x5b, 0x95, 0xaa, 0x49, 0x6d, 0xd9, 0x21, 0x58, 0x8d, 0xd0, 0x63, 0x5e, 0x2f,
- 0x13, 0xaa, 0x69, 0xe5, 0x74, 0x7a, 0x36, 0x54, 0x3f, 0xa4, 0x50, 0xad, 0x53, 0xd9, 0x53, 0xe5,
- 0x46, 0x22, 0x3b, 0x4e, 0x0e, 0x9e, 0x01, 0xda, 0x17, 0x47, 0x57, 0x37, 0x82, 0x19, 0xbf, 0xd2,
- 0x0e, 0x56, 0xa1, 0xc2, 0xfd, 0x68, 0xb3, 0x48, 0xdf, 0x7b, 0x99, 0x0b, 0x6d, 0xef, 0x72, 0x26,
- 0x3c, 0x1b, 0xaa, 0x7a, 0x71, 0x51, 0xdc, 0x49, 0x91, 0x10, 0xbd, 0x50, 0xaa, 0x7a, 0x2f, 0x34,
- 0x68, 0xb1, 0x62, 0xd9, 0x30, 0xad, 0xa4, 0x78, 0xb4, 0xec, 0xb0, 0xea, 0x48, 0x5d, 0xe7, 0x21,
- 0xe9, 0x19, 0x03, 0xd4, 0x9c, 0x74, 0x9c, 0xbc, 0x7a, 0x75, 0x6b, 0x54, 0xa6, 0xc5, 0x1c, 0x21,
- 0x07, 0xc6, 0x77, 0x50, 0x8b, 0x5b, 0x79, 0xfe, 0xa6, 0x9b, 0xdc, 0x02, 0xdf, 0x41, 0xc1, 0xed,
- 0x2b, 0x7a, 0x72, 0x11, 0x50, 0x92, 0xc7, 0x41, 0x52, 0xae, 0xac, 0x52, 0x4b, 0x45, 0xe1, 0xd4,
- 0xb4, 0xb2, 0x2a, 0x12, 0xa2, 0xcc, 0x7a, 0xd9, 0xd2, 0xa4, 0x52, 0x27, 0x3d, 0x1b, 0xaa, 0xb7,
- 0xc6, 0xab, 0xfc, 0xe8, 0x3b, 0x9a, 0x58, 0x3d, 0x78, 0xdf, 0x41, 0x8d, 0x25, 0xb1, 0x4c, 0xe8,
- 0x4b, 0x92, 0x12, 0xe1, 0xd9, 0x90, 0xb1, 0x24, 0xfe, 0x23, 0xa5, 0x2f, 0x49, 0xfd, 0x81, 0xf2,
- 0x1d, 0xd4, 0x38, 0xed, 0xb2, 0x73, 0xba, 0x5a, 0xee, 0x5b, 0xd3, 0xca, 0x4a, 0x9f, 0x2f, 0x8d,
- 0xef, 0x38, 0xcb, 0xd3, 0x8c, 0xe4, 0x74, 0xfd, 0x1e, 0x7e, 0xfb, 0x8f, 0xb3, 0x30, 0xdc, 0x29,
- 0x7f, 0xfd, 0x3f, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x25, 0x57, 0x63, 0x2f, 0x0c, 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)
- // 发布或下架
- SystemPermissionEnable(ctx context.Context, in *v1.SystemPermissionEnableRequest, opts ...grpc.CallOption) (*v1.SystemPermissionEnableReply, 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)
- City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, 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)
- // 应用
- ApplicationAdd(ctx context.Context, in *v1.ApplicationAddRequest, opts ...grpc.CallOption) (*v1.ApplicationAddReply, error)
- ApplicationDel(ctx context.Context, in *v1.ApplicationDelRequest, opts ...grpc.CallOption) (*v1.ApplicationDelReply, error)
- ApplicationUpdate(ctx context.Context, in *v1.ApplicationUpdateRequest, opts ...grpc.CallOption) (*v1.ApplicationUpdateReply, error)
- ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error)
- ApplicationEnableSet(ctx context.Context, in *v1.ApplicationEnableSetRequest, opts ...grpc.CallOption) (*v1.ApplicationEnableSetReply, error)
- ApplicationPermissionsSet(ctx context.Context, in *v1.ApplicationPermissionsSetRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsSetReply, 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)
- // 套餐
- PackageAdd(ctx context.Context, in *v1.PackageAddRequest, opts ...grpc.CallOption) (*v1.PackageAddReply, error)
- PackageDel(ctx context.Context, in *v1.PackageDelRequest, opts ...grpc.CallOption) (*v1.PackageDelReply, error)
- PackageUpdate(ctx context.Context, in *v1.PackageUpdateRequest, opts ...grpc.CallOption) (*v1.PackageUpdateReply, error)
- PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error)
- PackageEnableSet(ctx context.Context, in *v1.PackageEnableSetRequest, opts ...grpc.CallOption) (*v1.PackageEnableSetReply, error)
- PackageApplicationSet(ctx context.Context, in *v1.PackageApplicationSetRequest, opts ...grpc.CallOption) (*v1.PackageApplicationSetReply, error)
- PackageInfo(ctx context.Context, in *v1.PackageInfoRequest, opts ...grpc.CallOption) (*v1.PackageInfoReply, error)
- // 短信套餐
- MsgPackageAdd(ctx context.Context, in *v1.MsgPackageAddRequest, opts ...grpc.CallOption) (*v1.MsgPackageAddReply, error)
- MsgPackageDel(ctx context.Context, in *v1.MsgPackageDelRequest, opts ...grpc.CallOption) (*v1.MsgPackageDelReply, error)
- MsgPackageUpdate(ctx context.Context, in *v1.MsgPackageUpdateRequest, opts ...grpc.CallOption) (*v1.MsgPackageUpdateReply, error)
- MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error)
- MsgPackageInfo(ctx context.Context, in *v1.MsgPackageInfoRequest, opts ...grpc.CallOption) (*v1.MsgPackageInfoReply, error)
- // 素材管理
- MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error)
- MaterialAdd(ctx context.Context, in *v1.MaterialAddRequest, opts ...grpc.CallOption) (*v1.MaterialAddReply, error)
- MaterialUpdate(ctx context.Context, in *v1.MaterialUpdateRequest, opts ...grpc.CallOption) (*v1.MaterialUpdateReply, error)
- MaterialDel(ctx context.Context, in *v1.MaterialDelRequest, opts ...grpc.CallOption) (*v1.MaterialDelReply, error)
- MaterialEnable(ctx context.Context, in *v1.MaterialEnableRequest, opts ...grpc.CallOption) (*v1.MaterialEnableReply, error)
- MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, 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) SystemPermissionEnable(ctx context.Context, in *v1.SystemPermissionEnableRequest, opts ...grpc.CallOption) (*v1.SystemPermissionEnableReply, error) {
- out := new(v1.SystemPermissionEnableReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionEnable", 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) City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, error) {
- out := new(v1.CityReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/City", 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) ApplicationAdd(ctx context.Context, in *v1.ApplicationAddRequest, opts ...grpc.CallOption) (*v1.ApplicationAddReply, error) {
- out := new(v1.ApplicationAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) ApplicationDel(ctx context.Context, in *v1.ApplicationDelRequest, opts ...grpc.CallOption) (*v1.ApplicationDelReply, error) {
- out := new(v1.ApplicationDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) ApplicationUpdate(ctx context.Context, in *v1.ApplicationUpdateRequest, opts ...grpc.CallOption) (*v1.ApplicationUpdateReply, error) {
- out := new(v1.ApplicationUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationUpdate", 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) ApplicationEnableSet(ctx context.Context, in *v1.ApplicationEnableSetRequest, opts ...grpc.CallOption) (*v1.ApplicationEnableSetReply, error) {
- out := new(v1.ApplicationEnableSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationEnableSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) ApplicationPermissionsSet(ctx context.Context, in *v1.ApplicationPermissionsSetRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsSetReply, error) {
- out := new(v1.ApplicationPermissionsSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationPermissionsSet", 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) PackageAdd(ctx context.Context, in *v1.PackageAddRequest, opts ...grpc.CallOption) (*v1.PackageAddReply, error) {
- out := new(v1.PackageAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/PackageAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) PackageDel(ctx context.Context, in *v1.PackageDelRequest, opts ...grpc.CallOption) (*v1.PackageDelReply, error) {
- out := new(v1.PackageDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/PackageDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) PackageUpdate(ctx context.Context, in *v1.PackageUpdateRequest, opts ...grpc.CallOption) (*v1.PackageUpdateReply, error) {
- out := new(v1.PackageUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/PackageUpdate", 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) PackageEnableSet(ctx context.Context, in *v1.PackageEnableSetRequest, opts ...grpc.CallOption) (*v1.PackageEnableSetReply, error) {
- out := new(v1.PackageEnableSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/PackageEnableSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) PackageApplicationSet(ctx context.Context, in *v1.PackageApplicationSetRequest, opts ...grpc.CallOption) (*v1.PackageApplicationSetReply, error) {
- out := new(v1.PackageApplicationSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/PackageApplicationSet", 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) MsgPackageAdd(ctx context.Context, in *v1.MsgPackageAddRequest, opts ...grpc.CallOption) (*v1.MsgPackageAddReply, error) {
- out := new(v1.MsgPackageAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MsgPackageDel(ctx context.Context, in *v1.MsgPackageDelRequest, opts ...grpc.CallOption) (*v1.MsgPackageDelReply, error) {
- out := new(v1.MsgPackageDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MsgPackageUpdate(ctx context.Context, in *v1.MsgPackageUpdateRequest, opts ...grpc.CallOption) (*v1.MsgPackageUpdateReply, error) {
- out := new(v1.MsgPackageUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error) {
- out := new(v1.MsgPackageListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageList", 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
- }
- func (c *commonClient) MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error) {
- out := new(v1.MaterialListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MaterialAdd(ctx context.Context, in *v1.MaterialAddRequest, opts ...grpc.CallOption) (*v1.MaterialAddReply, error) {
- out := new(v1.MaterialAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MaterialUpdate(ctx context.Context, in *v1.MaterialUpdateRequest, opts ...grpc.CallOption) (*v1.MaterialUpdateReply, error) {
- out := new(v1.MaterialUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MaterialDel(ctx context.Context, in *v1.MaterialDelRequest, opts ...grpc.CallOption) (*v1.MaterialDelReply, error) {
- out := new(v1.MaterialDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MaterialEnable(ctx context.Context, in *v1.MaterialEnableRequest, opts ...grpc.CallOption) (*v1.MaterialEnableReply, error) {
- out := new(v1.MaterialEnableReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialEnable", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error) {
- out := new(v1.MaterialInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialInfo", 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)
- // 发布或下架
- SystemPermissionEnable(context.Context, *v1.SystemPermissionEnableRequest) (*v1.SystemPermissionEnableReply, error)
- // 省市区
- ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error)
- // 街道社区
- StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error)
- City(context.Context, *v1.CityRequest) (*v1.CityReply, error)
- // 对象存储删除无用的数据
- OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error)
- // 对象存储添加到公共区
- OssObjAdd(context.Context, *v1.OssObjAddRequest) (*v1.OssObjAddReply, error)
- // 应用
- ApplicationAdd(context.Context, *v1.ApplicationAddRequest) (*v1.ApplicationAddReply, error)
- ApplicationDel(context.Context, *v1.ApplicationDelRequest) (*v1.ApplicationDelReply, error)
- ApplicationUpdate(context.Context, *v1.ApplicationUpdateRequest) (*v1.ApplicationUpdateReply, error)
- ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error)
- ApplicationEnableSet(context.Context, *v1.ApplicationEnableSetRequest) (*v1.ApplicationEnableSetReply, error)
- ApplicationPermissionsSet(context.Context, *v1.ApplicationPermissionsSetRequest) (*v1.ApplicationPermissionsSetReply, error)
- ApplicationPermissions(context.Context, *v1.ApplicationPermissionsRequest) (*v1.ApplicationPermissionsReply, error)
- ApplicationInfo(context.Context, *v1.ApplicationInfoRequest) (*v1.ApplicationInfoReply, error)
- // 套餐
- PackageAdd(context.Context, *v1.PackageAddRequest) (*v1.PackageAddReply, error)
- PackageDel(context.Context, *v1.PackageDelRequest) (*v1.PackageDelReply, error)
- PackageUpdate(context.Context, *v1.PackageUpdateRequest) (*v1.PackageUpdateReply, error)
- PackageList(context.Context, *v1.PackageListRequest) (*v1.PackageListReply, error)
- PackageEnableSet(context.Context, *v1.PackageEnableSetRequest) (*v1.PackageEnableSetReply, error)
- PackageApplicationSet(context.Context, *v1.PackageApplicationSetRequest) (*v1.PackageApplicationSetReply, error)
- PackageInfo(context.Context, *v1.PackageInfoRequest) (*v1.PackageInfoReply, error)
- // 短信套餐
- MsgPackageAdd(context.Context, *v1.MsgPackageAddRequest) (*v1.MsgPackageAddReply, error)
- MsgPackageDel(context.Context, *v1.MsgPackageDelRequest) (*v1.MsgPackageDelReply, error)
- MsgPackageUpdate(context.Context, *v1.MsgPackageUpdateRequest) (*v1.MsgPackageUpdateReply, error)
- MsgPackageList(context.Context, *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error)
- MsgPackageInfo(context.Context, *v1.MsgPackageInfoRequest) (*v1.MsgPackageInfoReply, error)
- // 素材管理
- MaterialList(context.Context, *v1.MaterialListRequest) (*v1.MaterialListReply, error)
- MaterialAdd(context.Context, *v1.MaterialAddRequest) (*v1.MaterialAddReply, error)
- MaterialUpdate(context.Context, *v1.MaterialUpdateRequest) (*v1.MaterialUpdateReply, error)
- MaterialDel(context.Context, *v1.MaterialDelRequest) (*v1.MaterialDelReply, error)
- MaterialEnable(context.Context, *v1.MaterialEnableRequest) (*v1.MaterialEnableReply, error)
- MaterialInfo(context.Context, *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, 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) SystemPermissionEnable(ctx context.Context, req *v1.SystemPermissionEnableRequest) (*v1.SystemPermissionEnableReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionEnable 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) City(ctx context.Context, req *v1.CityRequest) (*v1.CityReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method City 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) ApplicationAdd(ctx context.Context, req *v1.ApplicationAddRequest) (*v1.ApplicationAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationAdd not implemented")
- }
- func (*UnimplementedCommonServer) ApplicationDel(ctx context.Context, req *v1.ApplicationDelRequest) (*v1.ApplicationDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationDel not implemented")
- }
- func (*UnimplementedCommonServer) ApplicationUpdate(ctx context.Context, req *v1.ApplicationUpdateRequest) (*v1.ApplicationUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationUpdate 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) ApplicationEnableSet(ctx context.Context, req *v1.ApplicationEnableSetRequest) (*v1.ApplicationEnableSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationEnableSet not implemented")
- }
- func (*UnimplementedCommonServer) ApplicationPermissionsSet(ctx context.Context, req *v1.ApplicationPermissionsSetRequest) (*v1.ApplicationPermissionsSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ApplicationPermissionsSet 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) PackageAdd(ctx context.Context, req *v1.PackageAddRequest) (*v1.PackageAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PackageAdd not implemented")
- }
- func (*UnimplementedCommonServer) PackageDel(ctx context.Context, req *v1.PackageDelRequest) (*v1.PackageDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PackageDel not implemented")
- }
- func (*UnimplementedCommonServer) PackageUpdate(ctx context.Context, req *v1.PackageUpdateRequest) (*v1.PackageUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PackageUpdate 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) PackageEnableSet(ctx context.Context, req *v1.PackageEnableSetRequest) (*v1.PackageEnableSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PackageEnableSet not implemented")
- }
- func (*UnimplementedCommonServer) PackageApplicationSet(ctx context.Context, req *v1.PackageApplicationSetRequest) (*v1.PackageApplicationSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PackageApplicationSet 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) MsgPackageAdd(ctx context.Context, req *v1.MsgPackageAddRequest) (*v1.MsgPackageAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MsgPackageAdd not implemented")
- }
- func (*UnimplementedCommonServer) MsgPackageDel(ctx context.Context, req *v1.MsgPackageDelRequest) (*v1.MsgPackageDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MsgPackageDel not implemented")
- }
- func (*UnimplementedCommonServer) MsgPackageUpdate(ctx context.Context, req *v1.MsgPackageUpdateRequest) (*v1.MsgPackageUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MsgPackageUpdate not implemented")
- }
- func (*UnimplementedCommonServer) MsgPackageList(ctx context.Context, req *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MsgPackageList 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 (*UnimplementedCommonServer) MaterialList(ctx context.Context, req *v1.MaterialListRequest) (*v1.MaterialListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaterialList not implemented")
- }
- func (*UnimplementedCommonServer) MaterialAdd(ctx context.Context, req *v1.MaterialAddRequest) (*v1.MaterialAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaterialAdd not implemented")
- }
- func (*UnimplementedCommonServer) MaterialUpdate(ctx context.Context, req *v1.MaterialUpdateRequest) (*v1.MaterialUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaterialUpdate not implemented")
- }
- func (*UnimplementedCommonServer) MaterialDel(ctx context.Context, req *v1.MaterialDelRequest) (*v1.MaterialDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaterialDel not implemented")
- }
- func (*UnimplementedCommonServer) MaterialEnable(ctx context.Context, req *v1.MaterialEnableRequest) (*v1.MaterialEnableReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaterialEnable not implemented")
- }
- func (*UnimplementedCommonServer) MaterialInfo(ctx context.Context, req *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MaterialInfo 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_SystemPermissionEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemPermissionEnableRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).SystemPermissionEnable(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/SystemPermissionEnable",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).SystemPermissionEnable(ctx, req.(*v1.SystemPermissionEnableRequest))
- }
- 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_City_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CityRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).City(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/City",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).City(ctx, req.(*v1.CityRequest))
- }
- 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_ApplicationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationAdd(ctx, req.(*v1.ApplicationAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_ApplicationDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationDel(ctx, req.(*v1.ApplicationDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_ApplicationUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationUpdate(ctx, req.(*v1.ApplicationUpdateRequest))
- }
- 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_ApplicationEnableSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationEnableSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationEnableSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationEnableSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationEnableSet(ctx, req.(*v1.ApplicationEnableSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_ApplicationPermissionsSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ApplicationPermissionsSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).ApplicationPermissionsSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/ApplicationPermissionsSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).ApplicationPermissionsSet(ctx, req.(*v1.ApplicationPermissionsSetRequest))
- }
- 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_PackageAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PackageAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).PackageAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/PackageAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).PackageAdd(ctx, req.(*v1.PackageAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_PackageDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PackageDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).PackageDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/PackageDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).PackageDel(ctx, req.(*v1.PackageDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_PackageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PackageUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).PackageUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/PackageUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).PackageUpdate(ctx, req.(*v1.PackageUpdateRequest))
- }
- 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_PackageEnableSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PackageEnableSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).PackageEnableSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/PackageEnableSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).PackageEnableSet(ctx, req.(*v1.PackageEnableSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_PackageApplicationSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PackageApplicationSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).PackageApplicationSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/PackageApplicationSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).PackageApplicationSet(ctx, req.(*v1.PackageApplicationSetRequest))
- }
- 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_MsgPackageAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MsgPackageAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MsgPackageAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MsgPackageAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MsgPackageAdd(ctx, req.(*v1.MsgPackageAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MsgPackageDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MsgPackageDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MsgPackageDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MsgPackageDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MsgPackageDel(ctx, req.(*v1.MsgPackageDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MsgPackageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MsgPackageUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MsgPackageUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MsgPackageUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MsgPackageUpdate(ctx, req.(*v1.MsgPackageUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MsgPackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MsgPackageListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MsgPackageList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MsgPackageList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MsgPackageList(ctx, req.(*v1.MsgPackageListRequest))
- }
- 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)
- }
- func _Common_MaterialList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaterialListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MaterialList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MaterialList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MaterialList(ctx, req.(*v1.MaterialListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MaterialAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaterialAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MaterialAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MaterialAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MaterialAdd(ctx, req.(*v1.MaterialAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MaterialUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaterialUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MaterialUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MaterialUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MaterialUpdate(ctx, req.(*v1.MaterialUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MaterialDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaterialDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MaterialDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MaterialDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MaterialDel(ctx, req.(*v1.MaterialDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MaterialEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaterialEnableRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MaterialEnable(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MaterialEnable",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MaterialEnable(ctx, req.(*v1.MaterialEnableRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_MaterialInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MaterialInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).MaterialInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/MaterialInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).MaterialInfo(ctx, req.(*v1.MaterialInfoRequest))
- }
- 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: "SystemPermissionEnable",
- Handler: _Common_SystemPermissionEnable_Handler,
- },
- {
- MethodName: "ProvinceCityArea",
- Handler: _Common_ProvinceCityArea_Handler,
- },
- {
- MethodName: "StreetCommittee",
- Handler: _Common_StreetCommittee_Handler,
- },
- {
- MethodName: "City",
- Handler: _Common_City_Handler,
- },
- {
- MethodName: "OssObjDelNotExist",
- Handler: _Common_OssObjDelNotExist_Handler,
- },
- {
- MethodName: "OssObjAdd",
- Handler: _Common_OssObjAdd_Handler,
- },
- {
- MethodName: "ApplicationAdd",
- Handler: _Common_ApplicationAdd_Handler,
- },
- {
- MethodName: "ApplicationDel",
- Handler: _Common_ApplicationDel_Handler,
- },
- {
- MethodName: "ApplicationUpdate",
- Handler: _Common_ApplicationUpdate_Handler,
- },
- {
- MethodName: "ApplicationList",
- Handler: _Common_ApplicationList_Handler,
- },
- {
- MethodName: "ApplicationEnableSet",
- Handler: _Common_ApplicationEnableSet_Handler,
- },
- {
- MethodName: "ApplicationPermissionsSet",
- Handler: _Common_ApplicationPermissionsSet_Handler,
- },
- {
- MethodName: "ApplicationPermissions",
- Handler: _Common_ApplicationPermissions_Handler,
- },
- {
- MethodName: "ApplicationInfo",
- Handler: _Common_ApplicationInfo_Handler,
- },
- {
- MethodName: "PackageAdd",
- Handler: _Common_PackageAdd_Handler,
- },
- {
- MethodName: "PackageDel",
- Handler: _Common_PackageDel_Handler,
- },
- {
- MethodName: "PackageUpdate",
- Handler: _Common_PackageUpdate_Handler,
- },
- {
- MethodName: "PackageList",
- Handler: _Common_PackageList_Handler,
- },
- {
- MethodName: "PackageEnableSet",
- Handler: _Common_PackageEnableSet_Handler,
- },
- {
- MethodName: "PackageApplicationSet",
- Handler: _Common_PackageApplicationSet_Handler,
- },
- {
- MethodName: "PackageInfo",
- Handler: _Common_PackageInfo_Handler,
- },
- {
- MethodName: "MsgPackageAdd",
- Handler: _Common_MsgPackageAdd_Handler,
- },
- {
- MethodName: "MsgPackageDel",
- Handler: _Common_MsgPackageDel_Handler,
- },
- {
- MethodName: "MsgPackageUpdate",
- Handler: _Common_MsgPackageUpdate_Handler,
- },
- {
- MethodName: "MsgPackageList",
- Handler: _Common_MsgPackageList_Handler,
- },
- {
- MethodName: "MsgPackageInfo",
- Handler: _Common_MsgPackageInfo_Handler,
- },
- {
- MethodName: "MaterialList",
- Handler: _Common_MaterialList_Handler,
- },
- {
- MethodName: "MaterialAdd",
- Handler: _Common_MaterialAdd_Handler,
- },
- {
- MethodName: "MaterialUpdate",
- Handler: _Common_MaterialUpdate_Handler,
- },
- {
- MethodName: "MaterialDel",
- Handler: _Common_MaterialDel_Handler,
- },
- {
- MethodName: "MaterialEnable",
- Handler: _Common_MaterialEnable_Handler,
- },
- {
- MethodName: "MaterialInfo",
- Handler: _Common_MaterialInfo_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "common_service.proto",
- }
|