common_service.pb.go 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: common_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "property-common/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("common_service.proto", fileDescriptor_1c30f963b95fce05)
  26. }
  27. var fileDescriptor_1c30f963b95fce05 = []byte{
  28. // 737 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x96, 0xdb, 0x6f, 0xd3, 0x30,
  30. 0x14, 0xc6, 0x79, 0x40, 0x93, 0x30, 0x97, 0x0d, 0xd3, 0x2d, 0x6d, 0x7a, 0x19, 0x2b, 0xb7, 0x27,
  31. 0x3a, 0x0d, 0x9e, 0x91, 0x28, 0xed, 0x90, 0x26, 0x6d, 0x6b, 0xb5, 0xb2, 0x17, 0x90, 0x36, 0x25,
  32. 0x8d, 0x99, 0x32, 0xd2, 0x26, 0x24, 0xa6, 0xa2, 0x7f, 0x2b, 0xff, 0x0c, 0x72, 0x8e, 0x9d, 0xf8,
  33. 0xda, 0x3e, 0xe6, 0xfc, 0x3e, 0x7f, 0xbe, 0x9c, 0xcf, 0x56, 0x50, 0x63, 0x9e, 0x2e, 0x16, 0xe9,
  34. 0xf2, 0xb6, 0x20, 0xf9, 0x2a, 0x9e, 0x93, 0x41, 0x96, 0xa7, 0x34, 0xc5, 0x28, 0x0b, 0x07, 0xbc,
  35. 0xe2, 0xef, 0xae, 0x4e, 0x8e, 0x41, 0x04, 0xf0, 0xc3, 0x3f, 0x0f, 0xed, 0x8c, 0xca, 0x02, 0xbe,
  36. 0x41, 0x8d, 0xd9, 0xba, 0xa0, 0x64, 0x31, 0x25, 0xf9, 0x22, 0x2e, 0x8a, 0x38, 0x5d, 0x9e, 0xc7,
  37. 0x05, 0xc5, 0xfd, 0x41, 0x16, 0xde, 0xae, 0x4e, 0x06, 0x36, 0x78, 0x45, 0x7e, 0xff, 0x21, 0x05,
  38. 0xf5, 0x5f, 0x6e, 0xd4, 0x64, 0xc9, 0xba, 0xff, 0x00, 0xdf, 0xa3, 0xa6, 0x8e, 0x8b, 0xcb, 0x94,
  39. 0x7e, 0xcb, 0x09, 0xc1, 0x6f, 0x1d, 0xe3, 0x85, 0x40, 0xcc, 0xf3, 0x7a, 0xab, 0x0e, 0xe6, 0xfa,
  40. 0x81, 0x5e, 0xe8, 0x92, 0x61, 0x14, 0xe1, 0x23, 0xc7, 0xf0, 0x61, 0x14, 0x89, 0x19, 0x0e, 0x37,
  41. 0x49, 0xc0, 0x3c, 0x42, 0x07, 0x3a, 0xbd, 0xce, 0xa2, 0x80, 0x12, 0xec, 0x5a, 0x1e, 0x60, 0x31,
  42. 0x45, 0x7f, 0x8b, 0xca, 0xb9, 0x85, 0x31, 0x49, 0x9c, 0x5b, 0x18, 0x93, 0x64, 0xdb, 0x16, 0x4a,
  43. 0x89, 0x73, 0x0b, 0xa7, 0xcb, 0x20, 0x4c, 0xdc, 0x5b, 0x00, 0xbc, 0x6d, 0x0b, 0x42, 0x05, 0xb3,
  44. 0x5c, 0xa1, 0xbd, 0x69, 0x9e, 0xae, 0xe2, 0xe5, 0x9c, 0x8c, 0x62, 0xba, 0x1e, 0xe6, 0x24, 0xc0,
  45. 0x3d, 0x3e, 0x52, 0x07, 0xc2, 0xb9, 0xe3, 0xe4, 0xe0, 0x39, 0x41, 0xbb, 0x33, 0x9a, 0x13, 0x42,
  46. 0x59, 0x6a, 0x63, 0x4a, 0x09, 0xc1, 0x5d, 0xb1, 0x18, 0xb5, 0x2e, 0x1c, 0xdb, 0x2e, 0x0c, 0x86,
  47. 0x03, 0xf4, 0x90, 0xcd, 0x81, 0x31, 0x97, 0xb1, 0x0f, 0x31, 0x74, 0x4f, 0xa9, 0x81, 0xfe, 0x1a,
  48. 0x3d, 0x9f, 0x14, 0xc5, 0x24, 0xbc, 0x1f, 0x93, 0xe4, 0x32, 0xa5, 0xa7, 0x7f, 0xd9, 0x1d, 0x11,
  49. 0x47, 0x6e, 0x10, 0xe1, 0xd4, 0x75, 0x0b, 0xc0, 0xf6, 0x13, 0x7a, 0x04, 0x8c, 0xe5, 0xd4, 0x53,
  50. 0xd4, 0x52, 0x3a, 0xf7, 0x4d, 0x00, 0xc3, 0xcf, 0xd1, 0xb3, 0x61, 0x96, 0x25, 0xf1, 0x3c, 0xa0,
  51. 0x3c, 0xeb, 0xe2, 0x20, 0xd5, 0xb2, 0x30, 0xf2, 0x1d, 0xd4, 0xe6, 0xc6, 0x62, 0x67, 0x71, 0x93,
  52. 0x12, 0xe7, 0x3b, 0x68, 0x75, 0x62, 0x12, 0xe0, 0x57, 0xe5, 0xd0, 0x1c, 0xa2, 0xde, 0x92, 0xae,
  53. 0x5b, 0x50, 0x25, 0x41, 0x62, 0xe5, 0x53, 0x65, 0x19, 0x23, 0xbf, 0x52, 0x6d, 0x17, 0x06, 0xc3,
  54. 0x1b, 0xd4, 0x90, 0x08, 0x44, 0x79, 0x46, 0xea, 0x07, 0xd0, 0x06, 0xf5, 0x07, 0xd0, 0xae, 0x01,
  55. 0xff, 0x05, 0x6a, 0x49, 0x58, 0x7a, 0xbc, 0xd8, 0x24, 0xef, 0x4c, 0x03, 0x55, 0x21, 0x66, 0x7a,
  56. 0xb3, 0x5d, 0x58, 0xdd, 0x71, 0xbb, 0xa6, 0xba, 0xe3, 0x76, 0xac, 0xdf, 0x71, 0x97, 0xca, 0xd6,
  57. 0x85, 0xb3, 0xe5, 0xcf, 0xd4, 0xd6, 0x05, 0x56, 0xdf, 0xd0, 0x05, 0xc0, 0x60, 0xf8, 0x19, 0xa1,
  58. 0x69, 0x30, 0xff, 0x15, 0xdc, 0x11, 0x96, 0xe2, 0xa6, 0x78, 0x0e, 0xaa, 0x92, 0xb0, 0x39, 0xb0,
  59. 0x10, 0xdd, 0x81, 0x25, 0x57, 0x73, 0x90, 0x52, 0x7b, 0x60, 0x21, 0xe0, 0x70, 0x86, 0x9e, 0xf2,
  60. 0x22, 0x4f, 0x6b, 0x5b, 0x95, 0xaa, 0x49, 0x6d, 0xd9, 0x21, 0x58, 0x8d, 0xd0, 0x63, 0x5e, 0x2f,
  61. 0x13, 0xaa, 0x69, 0xe5, 0x74, 0x7a, 0x36, 0x54, 0x3f, 0xa4, 0x50, 0xad, 0x53, 0xd9, 0x53, 0xe5,
  62. 0x46, 0x22, 0x3b, 0x4e, 0x0e, 0x9e, 0x01, 0xda, 0x17, 0x47, 0x57, 0x37, 0x82, 0x19, 0xbf, 0xd2,
  63. 0x0e, 0x56, 0xa1, 0xc2, 0xfd, 0x68, 0xb3, 0x48, 0xdf, 0x7b, 0x99, 0x0b, 0x6d, 0xef, 0x72, 0x26,
  64. 0x3c, 0x1b, 0xaa, 0x7a, 0x71, 0x51, 0xdc, 0x49, 0x91, 0x10, 0xbd, 0x50, 0xaa, 0x7a, 0x2f, 0x34,
  65. 0x68, 0xb1, 0x62, 0xd9, 0x30, 0xad, 0xa4, 0x78, 0xb4, 0xec, 0xb0, 0xea, 0x48, 0x5d, 0xe7, 0x21,
  66. 0xe9, 0x19, 0x03, 0xd4, 0x9c, 0x74, 0x9c, 0xbc, 0x7a, 0x75, 0x6b, 0x54, 0xa6, 0xc5, 0x1c, 0x21,
  67. 0x07, 0xc6, 0x77, 0x50, 0x8b, 0x5b, 0x79, 0xfe, 0xa6, 0x9b, 0xdc, 0x02, 0xdf, 0x41, 0xc1, 0xed,
  68. 0x2b, 0x7a, 0x72, 0x11, 0x50, 0x92, 0xc7, 0x41, 0x52, 0xae, 0xac, 0x52, 0x4b, 0x45, 0xe1, 0xd4,
  69. 0xb4, 0xb2, 0x2a, 0x12, 0xa2, 0xcc, 0x7a, 0xd9, 0xd2, 0xa4, 0x52, 0x27, 0x3d, 0x1b, 0xaa, 0xb7,
  70. 0xc6, 0xab, 0xfc, 0xe8, 0x3b, 0x9a, 0x58, 0x3d, 0x78, 0xdf, 0x41, 0x8d, 0x25, 0xb1, 0x4c, 0xe8,
  71. 0x4b, 0x92, 0x12, 0xe1, 0xd9, 0x90, 0xb1, 0x24, 0xfe, 0x23, 0xa5, 0x2f, 0x49, 0xfd, 0x81, 0xf2,
  72. 0x1d, 0xd4, 0x38, 0xed, 0xb2, 0x73, 0xba, 0x5a, 0xee, 0x5b, 0xd3, 0xca, 0x4a, 0x9f, 0x2f, 0x8d,
  73. 0xef, 0x38, 0xcb, 0xd3, 0x8c, 0xe4, 0x74, 0xfd, 0x1e, 0x7e, 0xfb, 0x8f, 0xb3, 0x30, 0xdc, 0x29,
  74. 0x7f, 0xfd, 0x3f, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x25, 0x57, 0x63, 0x2f, 0x0c, 0x00,
  75. 0x00,
  76. }
  77. // Reference imports to suppress errors if they are not otherwise used.
  78. var _ context.Context
  79. var _ grpc.ClientConnInterface
  80. // This is a compile-time assertion to ensure that this generated file
  81. // is compatible with the grpc package it is being compiled against.
  82. const _ = grpc.SupportPackageIsVersion6
  83. // CommonClient is the client API for Common service.
  84. //
  85. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  86. type CommonClient interface {
  87. // 权限总列表
  88. SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error)
  89. SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error)
  90. // 添加权限节点
  91. SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error)
  92. // 更新权限节点
  93. SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error)
  94. // 删除权限节点
  95. SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error)
  96. // 发布或下架
  97. SystemPermissionEnable(ctx context.Context, in *v1.SystemPermissionEnableRequest, opts ...grpc.CallOption) (*v1.SystemPermissionEnableReply, error)
  98. // 省市区
  99. ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error)
  100. // 街道社区
  101. StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error)
  102. City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, error)
  103. // 对象存储删除无用的数据
  104. OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error)
  105. // 对象存储添加到公共区
  106. OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error)
  107. // 应用
  108. ApplicationAdd(ctx context.Context, in *v1.ApplicationAddRequest, opts ...grpc.CallOption) (*v1.ApplicationAddReply, error)
  109. ApplicationDel(ctx context.Context, in *v1.ApplicationDelRequest, opts ...grpc.CallOption) (*v1.ApplicationDelReply, error)
  110. ApplicationUpdate(ctx context.Context, in *v1.ApplicationUpdateRequest, opts ...grpc.CallOption) (*v1.ApplicationUpdateReply, error)
  111. ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error)
  112. ApplicationEnableSet(ctx context.Context, in *v1.ApplicationEnableSetRequest, opts ...grpc.CallOption) (*v1.ApplicationEnableSetReply, error)
  113. ApplicationPermissionsSet(ctx context.Context, in *v1.ApplicationPermissionsSetRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsSetReply, error)
  114. ApplicationPermissions(ctx context.Context, in *v1.ApplicationPermissionsRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsReply, error)
  115. ApplicationInfo(ctx context.Context, in *v1.ApplicationInfoRequest, opts ...grpc.CallOption) (*v1.ApplicationInfoReply, error)
  116. // 套餐
  117. PackageAdd(ctx context.Context, in *v1.PackageAddRequest, opts ...grpc.CallOption) (*v1.PackageAddReply, error)
  118. PackageDel(ctx context.Context, in *v1.PackageDelRequest, opts ...grpc.CallOption) (*v1.PackageDelReply, error)
  119. PackageUpdate(ctx context.Context, in *v1.PackageUpdateRequest, opts ...grpc.CallOption) (*v1.PackageUpdateReply, error)
  120. PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error)
  121. PackageEnableSet(ctx context.Context, in *v1.PackageEnableSetRequest, opts ...grpc.CallOption) (*v1.PackageEnableSetReply, error)
  122. PackageApplicationSet(ctx context.Context, in *v1.PackageApplicationSetRequest, opts ...grpc.CallOption) (*v1.PackageApplicationSetReply, error)
  123. PackageInfo(ctx context.Context, in *v1.PackageInfoRequest, opts ...grpc.CallOption) (*v1.PackageInfoReply, error)
  124. // 短信套餐
  125. MsgPackageAdd(ctx context.Context, in *v1.MsgPackageAddRequest, opts ...grpc.CallOption) (*v1.MsgPackageAddReply, error)
  126. MsgPackageDel(ctx context.Context, in *v1.MsgPackageDelRequest, opts ...grpc.CallOption) (*v1.MsgPackageDelReply, error)
  127. MsgPackageUpdate(ctx context.Context, in *v1.MsgPackageUpdateRequest, opts ...grpc.CallOption) (*v1.MsgPackageUpdateReply, error)
  128. MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error)
  129. MsgPackageInfo(ctx context.Context, in *v1.MsgPackageInfoRequest, opts ...grpc.CallOption) (*v1.MsgPackageInfoReply, error)
  130. // 素材管理
  131. MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error)
  132. MaterialAdd(ctx context.Context, in *v1.MaterialAddRequest, opts ...grpc.CallOption) (*v1.MaterialAddReply, error)
  133. MaterialUpdate(ctx context.Context, in *v1.MaterialUpdateRequest, opts ...grpc.CallOption) (*v1.MaterialUpdateReply, error)
  134. MaterialDel(ctx context.Context, in *v1.MaterialDelRequest, opts ...grpc.CallOption) (*v1.MaterialDelReply, error)
  135. MaterialEnable(ctx context.Context, in *v1.MaterialEnableRequest, opts ...grpc.CallOption) (*v1.MaterialEnableReply, error)
  136. MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error)
  137. }
  138. type commonClient struct {
  139. cc grpc.ClientConnInterface
  140. }
  141. func NewCommonClient(cc grpc.ClientConnInterface) CommonClient {
  142. return &commonClient{cc}
  143. }
  144. func (c *commonClient) SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) {
  145. out := new(v1.SystemPermissionListReply)
  146. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionList", in, out, opts...)
  147. if err != nil {
  148. return nil, err
  149. }
  150. return out, nil
  151. }
  152. func (c *commonClient) SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error) {
  153. out := new(v1.SystemPermissionsNotTreeReply)
  154. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionsNotTree", in, out, opts...)
  155. if err != nil {
  156. return nil, err
  157. }
  158. return out, nil
  159. }
  160. func (c *commonClient) SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) {
  161. out := new(v1.SystemPermissionAddReply)
  162. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionAdd", in, out, opts...)
  163. if err != nil {
  164. return nil, err
  165. }
  166. return out, nil
  167. }
  168. func (c *commonClient) SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) {
  169. out := new(v1.SystemPermissionUpdateReply)
  170. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionUpdate", in, out, opts...)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return out, nil
  175. }
  176. func (c *commonClient) SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) {
  177. out := new(v1.SystemPermissionDelReply)
  178. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionDel", in, out, opts...)
  179. if err != nil {
  180. return nil, err
  181. }
  182. return out, nil
  183. }
  184. func (c *commonClient) SystemPermissionEnable(ctx context.Context, in *v1.SystemPermissionEnableRequest, opts ...grpc.CallOption) (*v1.SystemPermissionEnableReply, error) {
  185. out := new(v1.SystemPermissionEnableReply)
  186. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionEnable", in, out, opts...)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return out, nil
  191. }
  192. func (c *commonClient) ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) {
  193. out := new(v1.ProvinceCityAreaReply)
  194. err := c.cc.Invoke(ctx, "/pb.service.Common/ProvinceCityArea", in, out, opts...)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return out, nil
  199. }
  200. func (c *commonClient) StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) {
  201. out := new(v1.StreetCommitteeReply)
  202. err := c.cc.Invoke(ctx, "/pb.service.Common/StreetCommittee", in, out, opts...)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return out, nil
  207. }
  208. func (c *commonClient) City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, error) {
  209. out := new(v1.CityReply)
  210. err := c.cc.Invoke(ctx, "/pb.service.Common/City", in, out, opts...)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return out, nil
  215. }
  216. func (c *commonClient) OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) {
  217. out := new(v1.OssObjDelNotExistReply)
  218. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjDelNotExist", in, out, opts...)
  219. if err != nil {
  220. return nil, err
  221. }
  222. return out, nil
  223. }
  224. func (c *commonClient) OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error) {
  225. out := new(v1.OssObjAddReply)
  226. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjAdd", in, out, opts...)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return out, nil
  231. }
  232. func (c *commonClient) ApplicationAdd(ctx context.Context, in *v1.ApplicationAddRequest, opts ...grpc.CallOption) (*v1.ApplicationAddReply, error) {
  233. out := new(v1.ApplicationAddReply)
  234. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationAdd", in, out, opts...)
  235. if err != nil {
  236. return nil, err
  237. }
  238. return out, nil
  239. }
  240. func (c *commonClient) ApplicationDel(ctx context.Context, in *v1.ApplicationDelRequest, opts ...grpc.CallOption) (*v1.ApplicationDelReply, error) {
  241. out := new(v1.ApplicationDelReply)
  242. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationDel", in, out, opts...)
  243. if err != nil {
  244. return nil, err
  245. }
  246. return out, nil
  247. }
  248. func (c *commonClient) ApplicationUpdate(ctx context.Context, in *v1.ApplicationUpdateRequest, opts ...grpc.CallOption) (*v1.ApplicationUpdateReply, error) {
  249. out := new(v1.ApplicationUpdateReply)
  250. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationUpdate", in, out, opts...)
  251. if err != nil {
  252. return nil, err
  253. }
  254. return out, nil
  255. }
  256. func (c *commonClient) ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error) {
  257. out := new(v1.ApplicationListReply)
  258. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationList", in, out, opts...)
  259. if err != nil {
  260. return nil, err
  261. }
  262. return out, nil
  263. }
  264. func (c *commonClient) ApplicationEnableSet(ctx context.Context, in *v1.ApplicationEnableSetRequest, opts ...grpc.CallOption) (*v1.ApplicationEnableSetReply, error) {
  265. out := new(v1.ApplicationEnableSetReply)
  266. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationEnableSet", in, out, opts...)
  267. if err != nil {
  268. return nil, err
  269. }
  270. return out, nil
  271. }
  272. func (c *commonClient) ApplicationPermissionsSet(ctx context.Context, in *v1.ApplicationPermissionsSetRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsSetReply, error) {
  273. out := new(v1.ApplicationPermissionsSetReply)
  274. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationPermissionsSet", in, out, opts...)
  275. if err != nil {
  276. return nil, err
  277. }
  278. return out, nil
  279. }
  280. func (c *commonClient) ApplicationPermissions(ctx context.Context, in *v1.ApplicationPermissionsRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsReply, error) {
  281. out := new(v1.ApplicationPermissionsReply)
  282. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationPermissions", in, out, opts...)
  283. if err != nil {
  284. return nil, err
  285. }
  286. return out, nil
  287. }
  288. func (c *commonClient) ApplicationInfo(ctx context.Context, in *v1.ApplicationInfoRequest, opts ...grpc.CallOption) (*v1.ApplicationInfoReply, error) {
  289. out := new(v1.ApplicationInfoReply)
  290. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationInfo", in, out, opts...)
  291. if err != nil {
  292. return nil, err
  293. }
  294. return out, nil
  295. }
  296. func (c *commonClient) PackageAdd(ctx context.Context, in *v1.PackageAddRequest, opts ...grpc.CallOption) (*v1.PackageAddReply, error) {
  297. out := new(v1.PackageAddReply)
  298. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageAdd", in, out, opts...)
  299. if err != nil {
  300. return nil, err
  301. }
  302. return out, nil
  303. }
  304. func (c *commonClient) PackageDel(ctx context.Context, in *v1.PackageDelRequest, opts ...grpc.CallOption) (*v1.PackageDelReply, error) {
  305. out := new(v1.PackageDelReply)
  306. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageDel", in, out, opts...)
  307. if err != nil {
  308. return nil, err
  309. }
  310. return out, nil
  311. }
  312. func (c *commonClient) PackageUpdate(ctx context.Context, in *v1.PackageUpdateRequest, opts ...grpc.CallOption) (*v1.PackageUpdateReply, error) {
  313. out := new(v1.PackageUpdateReply)
  314. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageUpdate", in, out, opts...)
  315. if err != nil {
  316. return nil, err
  317. }
  318. return out, nil
  319. }
  320. func (c *commonClient) PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error) {
  321. out := new(v1.PackageListReply)
  322. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageList", in, out, opts...)
  323. if err != nil {
  324. return nil, err
  325. }
  326. return out, nil
  327. }
  328. func (c *commonClient) PackageEnableSet(ctx context.Context, in *v1.PackageEnableSetRequest, opts ...grpc.CallOption) (*v1.PackageEnableSetReply, error) {
  329. out := new(v1.PackageEnableSetReply)
  330. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageEnableSet", in, out, opts...)
  331. if err != nil {
  332. return nil, err
  333. }
  334. return out, nil
  335. }
  336. func (c *commonClient) PackageApplicationSet(ctx context.Context, in *v1.PackageApplicationSetRequest, opts ...grpc.CallOption) (*v1.PackageApplicationSetReply, error) {
  337. out := new(v1.PackageApplicationSetReply)
  338. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageApplicationSet", in, out, opts...)
  339. if err != nil {
  340. return nil, err
  341. }
  342. return out, nil
  343. }
  344. func (c *commonClient) PackageInfo(ctx context.Context, in *v1.PackageInfoRequest, opts ...grpc.CallOption) (*v1.PackageInfoReply, error) {
  345. out := new(v1.PackageInfoReply)
  346. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageInfo", in, out, opts...)
  347. if err != nil {
  348. return nil, err
  349. }
  350. return out, nil
  351. }
  352. func (c *commonClient) MsgPackageAdd(ctx context.Context, in *v1.MsgPackageAddRequest, opts ...grpc.CallOption) (*v1.MsgPackageAddReply, error) {
  353. out := new(v1.MsgPackageAddReply)
  354. err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageAdd", in, out, opts...)
  355. if err != nil {
  356. return nil, err
  357. }
  358. return out, nil
  359. }
  360. func (c *commonClient) MsgPackageDel(ctx context.Context, in *v1.MsgPackageDelRequest, opts ...grpc.CallOption) (*v1.MsgPackageDelReply, error) {
  361. out := new(v1.MsgPackageDelReply)
  362. err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageDel", in, out, opts...)
  363. if err != nil {
  364. return nil, err
  365. }
  366. return out, nil
  367. }
  368. func (c *commonClient) MsgPackageUpdate(ctx context.Context, in *v1.MsgPackageUpdateRequest, opts ...grpc.CallOption) (*v1.MsgPackageUpdateReply, error) {
  369. out := new(v1.MsgPackageUpdateReply)
  370. err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageUpdate", in, out, opts...)
  371. if err != nil {
  372. return nil, err
  373. }
  374. return out, nil
  375. }
  376. func (c *commonClient) MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error) {
  377. out := new(v1.MsgPackageListReply)
  378. err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageList", in, out, opts...)
  379. if err != nil {
  380. return nil, err
  381. }
  382. return out, nil
  383. }
  384. func (c *commonClient) MsgPackageInfo(ctx context.Context, in *v1.MsgPackageInfoRequest, opts ...grpc.CallOption) (*v1.MsgPackageInfoReply, error) {
  385. out := new(v1.MsgPackageInfoReply)
  386. err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageInfo", in, out, opts...)
  387. if err != nil {
  388. return nil, err
  389. }
  390. return out, nil
  391. }
  392. func (c *commonClient) MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error) {
  393. out := new(v1.MaterialListReply)
  394. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialList", in, out, opts...)
  395. if err != nil {
  396. return nil, err
  397. }
  398. return out, nil
  399. }
  400. func (c *commonClient) MaterialAdd(ctx context.Context, in *v1.MaterialAddRequest, opts ...grpc.CallOption) (*v1.MaterialAddReply, error) {
  401. out := new(v1.MaterialAddReply)
  402. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialAdd", in, out, opts...)
  403. if err != nil {
  404. return nil, err
  405. }
  406. return out, nil
  407. }
  408. func (c *commonClient) MaterialUpdate(ctx context.Context, in *v1.MaterialUpdateRequest, opts ...grpc.CallOption) (*v1.MaterialUpdateReply, error) {
  409. out := new(v1.MaterialUpdateReply)
  410. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialUpdate", in, out, opts...)
  411. if err != nil {
  412. return nil, err
  413. }
  414. return out, nil
  415. }
  416. func (c *commonClient) MaterialDel(ctx context.Context, in *v1.MaterialDelRequest, opts ...grpc.CallOption) (*v1.MaterialDelReply, error) {
  417. out := new(v1.MaterialDelReply)
  418. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialDel", in, out, opts...)
  419. if err != nil {
  420. return nil, err
  421. }
  422. return out, nil
  423. }
  424. func (c *commonClient) MaterialEnable(ctx context.Context, in *v1.MaterialEnableRequest, opts ...grpc.CallOption) (*v1.MaterialEnableReply, error) {
  425. out := new(v1.MaterialEnableReply)
  426. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialEnable", in, out, opts...)
  427. if err != nil {
  428. return nil, err
  429. }
  430. return out, nil
  431. }
  432. func (c *commonClient) MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error) {
  433. out := new(v1.MaterialInfoReply)
  434. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialInfo", in, out, opts...)
  435. if err != nil {
  436. return nil, err
  437. }
  438. return out, nil
  439. }
  440. // CommonServer is the server API for Common service.
  441. type CommonServer interface {
  442. // 权限总列表
  443. SystemPermissionList(context.Context, *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error)
  444. SystemPermissionsNotTree(context.Context, *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error)
  445. // 添加权限节点
  446. SystemPermissionAdd(context.Context, *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error)
  447. // 更新权限节点
  448. SystemPermissionUpdate(context.Context, *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error)
  449. // 删除权限节点
  450. SystemPermissionDel(context.Context, *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error)
  451. // 发布或下架
  452. SystemPermissionEnable(context.Context, *v1.SystemPermissionEnableRequest) (*v1.SystemPermissionEnableReply, error)
  453. // 省市区
  454. ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error)
  455. // 街道社区
  456. StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error)
  457. City(context.Context, *v1.CityRequest) (*v1.CityReply, error)
  458. // 对象存储删除无用的数据
  459. OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error)
  460. // 对象存储添加到公共区
  461. OssObjAdd(context.Context, *v1.OssObjAddRequest) (*v1.OssObjAddReply, error)
  462. // 应用
  463. ApplicationAdd(context.Context, *v1.ApplicationAddRequest) (*v1.ApplicationAddReply, error)
  464. ApplicationDel(context.Context, *v1.ApplicationDelRequest) (*v1.ApplicationDelReply, error)
  465. ApplicationUpdate(context.Context, *v1.ApplicationUpdateRequest) (*v1.ApplicationUpdateReply, error)
  466. ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error)
  467. ApplicationEnableSet(context.Context, *v1.ApplicationEnableSetRequest) (*v1.ApplicationEnableSetReply, error)
  468. ApplicationPermissionsSet(context.Context, *v1.ApplicationPermissionsSetRequest) (*v1.ApplicationPermissionsSetReply, error)
  469. ApplicationPermissions(context.Context, *v1.ApplicationPermissionsRequest) (*v1.ApplicationPermissionsReply, error)
  470. ApplicationInfo(context.Context, *v1.ApplicationInfoRequest) (*v1.ApplicationInfoReply, error)
  471. // 套餐
  472. PackageAdd(context.Context, *v1.PackageAddRequest) (*v1.PackageAddReply, error)
  473. PackageDel(context.Context, *v1.PackageDelRequest) (*v1.PackageDelReply, error)
  474. PackageUpdate(context.Context, *v1.PackageUpdateRequest) (*v1.PackageUpdateReply, error)
  475. PackageList(context.Context, *v1.PackageListRequest) (*v1.PackageListReply, error)
  476. PackageEnableSet(context.Context, *v1.PackageEnableSetRequest) (*v1.PackageEnableSetReply, error)
  477. PackageApplicationSet(context.Context, *v1.PackageApplicationSetRequest) (*v1.PackageApplicationSetReply, error)
  478. PackageInfo(context.Context, *v1.PackageInfoRequest) (*v1.PackageInfoReply, error)
  479. // 短信套餐
  480. MsgPackageAdd(context.Context, *v1.MsgPackageAddRequest) (*v1.MsgPackageAddReply, error)
  481. MsgPackageDel(context.Context, *v1.MsgPackageDelRequest) (*v1.MsgPackageDelReply, error)
  482. MsgPackageUpdate(context.Context, *v1.MsgPackageUpdateRequest) (*v1.MsgPackageUpdateReply, error)
  483. MsgPackageList(context.Context, *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error)
  484. MsgPackageInfo(context.Context, *v1.MsgPackageInfoRequest) (*v1.MsgPackageInfoReply, error)
  485. // 素材管理
  486. MaterialList(context.Context, *v1.MaterialListRequest) (*v1.MaterialListReply, error)
  487. MaterialAdd(context.Context, *v1.MaterialAddRequest) (*v1.MaterialAddReply, error)
  488. MaterialUpdate(context.Context, *v1.MaterialUpdateRequest) (*v1.MaterialUpdateReply, error)
  489. MaterialDel(context.Context, *v1.MaterialDelRequest) (*v1.MaterialDelReply, error)
  490. MaterialEnable(context.Context, *v1.MaterialEnableRequest) (*v1.MaterialEnableReply, error)
  491. MaterialInfo(context.Context, *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error)
  492. }
  493. // UnimplementedCommonServer can be embedded to have forward compatible implementations.
  494. type UnimplementedCommonServer struct {
  495. }
  496. func (*UnimplementedCommonServer) SystemPermissionList(ctx context.Context, req *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) {
  497. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionList not implemented")
  498. }
  499. func (*UnimplementedCommonServer) SystemPermissionsNotTree(ctx context.Context, req *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error) {
  500. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionsNotTree not implemented")
  501. }
  502. func (*UnimplementedCommonServer) SystemPermissionAdd(ctx context.Context, req *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) {
  503. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionAdd not implemented")
  504. }
  505. func (*UnimplementedCommonServer) SystemPermissionUpdate(ctx context.Context, req *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) {
  506. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionUpdate not implemented")
  507. }
  508. func (*UnimplementedCommonServer) SystemPermissionDel(ctx context.Context, req *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) {
  509. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionDel not implemented")
  510. }
  511. func (*UnimplementedCommonServer) SystemPermissionEnable(ctx context.Context, req *v1.SystemPermissionEnableRequest) (*v1.SystemPermissionEnableReply, error) {
  512. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionEnable not implemented")
  513. }
  514. func (*UnimplementedCommonServer) ProvinceCityArea(ctx context.Context, req *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) {
  515. return nil, status.Errorf(codes.Unimplemented, "method ProvinceCityArea not implemented")
  516. }
  517. func (*UnimplementedCommonServer) StreetCommittee(ctx context.Context, req *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) {
  518. return nil, status.Errorf(codes.Unimplemented, "method StreetCommittee not implemented")
  519. }
  520. func (*UnimplementedCommonServer) City(ctx context.Context, req *v1.CityRequest) (*v1.CityReply, error) {
  521. return nil, status.Errorf(codes.Unimplemented, "method City not implemented")
  522. }
  523. func (*UnimplementedCommonServer) OssObjDelNotExist(ctx context.Context, req *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) {
  524. return nil, status.Errorf(codes.Unimplemented, "method OssObjDelNotExist not implemented")
  525. }
  526. func (*UnimplementedCommonServer) OssObjAdd(ctx context.Context, req *v1.OssObjAddRequest) (*v1.OssObjAddReply, error) {
  527. return nil, status.Errorf(codes.Unimplemented, "method OssObjAdd not implemented")
  528. }
  529. func (*UnimplementedCommonServer) ApplicationAdd(ctx context.Context, req *v1.ApplicationAddRequest) (*v1.ApplicationAddReply, error) {
  530. return nil, status.Errorf(codes.Unimplemented, "method ApplicationAdd not implemented")
  531. }
  532. func (*UnimplementedCommonServer) ApplicationDel(ctx context.Context, req *v1.ApplicationDelRequest) (*v1.ApplicationDelReply, error) {
  533. return nil, status.Errorf(codes.Unimplemented, "method ApplicationDel not implemented")
  534. }
  535. func (*UnimplementedCommonServer) ApplicationUpdate(ctx context.Context, req *v1.ApplicationUpdateRequest) (*v1.ApplicationUpdateReply, error) {
  536. return nil, status.Errorf(codes.Unimplemented, "method ApplicationUpdate not implemented")
  537. }
  538. func (*UnimplementedCommonServer) ApplicationList(ctx context.Context, req *v1.ApplicationListRequest) (*v1.ApplicationListReply, error) {
  539. return nil, status.Errorf(codes.Unimplemented, "method ApplicationList not implemented")
  540. }
  541. func (*UnimplementedCommonServer) ApplicationEnableSet(ctx context.Context, req *v1.ApplicationEnableSetRequest) (*v1.ApplicationEnableSetReply, error) {
  542. return nil, status.Errorf(codes.Unimplemented, "method ApplicationEnableSet not implemented")
  543. }
  544. func (*UnimplementedCommonServer) ApplicationPermissionsSet(ctx context.Context, req *v1.ApplicationPermissionsSetRequest) (*v1.ApplicationPermissionsSetReply, error) {
  545. return nil, status.Errorf(codes.Unimplemented, "method ApplicationPermissionsSet not implemented")
  546. }
  547. func (*UnimplementedCommonServer) ApplicationPermissions(ctx context.Context, req *v1.ApplicationPermissionsRequest) (*v1.ApplicationPermissionsReply, error) {
  548. return nil, status.Errorf(codes.Unimplemented, "method ApplicationPermissions not implemented")
  549. }
  550. func (*UnimplementedCommonServer) ApplicationInfo(ctx context.Context, req *v1.ApplicationInfoRequest) (*v1.ApplicationInfoReply, error) {
  551. return nil, status.Errorf(codes.Unimplemented, "method ApplicationInfo not implemented")
  552. }
  553. func (*UnimplementedCommonServer) PackageAdd(ctx context.Context, req *v1.PackageAddRequest) (*v1.PackageAddReply, error) {
  554. return nil, status.Errorf(codes.Unimplemented, "method PackageAdd not implemented")
  555. }
  556. func (*UnimplementedCommonServer) PackageDel(ctx context.Context, req *v1.PackageDelRequest) (*v1.PackageDelReply, error) {
  557. return nil, status.Errorf(codes.Unimplemented, "method PackageDel not implemented")
  558. }
  559. func (*UnimplementedCommonServer) PackageUpdate(ctx context.Context, req *v1.PackageUpdateRequest) (*v1.PackageUpdateReply, error) {
  560. return nil, status.Errorf(codes.Unimplemented, "method PackageUpdate not implemented")
  561. }
  562. func (*UnimplementedCommonServer) PackageList(ctx context.Context, req *v1.PackageListRequest) (*v1.PackageListReply, error) {
  563. return nil, status.Errorf(codes.Unimplemented, "method PackageList not implemented")
  564. }
  565. func (*UnimplementedCommonServer) PackageEnableSet(ctx context.Context, req *v1.PackageEnableSetRequest) (*v1.PackageEnableSetReply, error) {
  566. return nil, status.Errorf(codes.Unimplemented, "method PackageEnableSet not implemented")
  567. }
  568. func (*UnimplementedCommonServer) PackageApplicationSet(ctx context.Context, req *v1.PackageApplicationSetRequest) (*v1.PackageApplicationSetReply, error) {
  569. return nil, status.Errorf(codes.Unimplemented, "method PackageApplicationSet not implemented")
  570. }
  571. func (*UnimplementedCommonServer) PackageInfo(ctx context.Context, req *v1.PackageInfoRequest) (*v1.PackageInfoReply, error) {
  572. return nil, status.Errorf(codes.Unimplemented, "method PackageInfo not implemented")
  573. }
  574. func (*UnimplementedCommonServer) MsgPackageAdd(ctx context.Context, req *v1.MsgPackageAddRequest) (*v1.MsgPackageAddReply, error) {
  575. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageAdd not implemented")
  576. }
  577. func (*UnimplementedCommonServer) MsgPackageDel(ctx context.Context, req *v1.MsgPackageDelRequest) (*v1.MsgPackageDelReply, error) {
  578. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageDel not implemented")
  579. }
  580. func (*UnimplementedCommonServer) MsgPackageUpdate(ctx context.Context, req *v1.MsgPackageUpdateRequest) (*v1.MsgPackageUpdateReply, error) {
  581. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageUpdate not implemented")
  582. }
  583. func (*UnimplementedCommonServer) MsgPackageList(ctx context.Context, req *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error) {
  584. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageList not implemented")
  585. }
  586. func (*UnimplementedCommonServer) MsgPackageInfo(ctx context.Context, req *v1.MsgPackageInfoRequest) (*v1.MsgPackageInfoReply, error) {
  587. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageInfo not implemented")
  588. }
  589. func (*UnimplementedCommonServer) MaterialList(ctx context.Context, req *v1.MaterialListRequest) (*v1.MaterialListReply, error) {
  590. return nil, status.Errorf(codes.Unimplemented, "method MaterialList not implemented")
  591. }
  592. func (*UnimplementedCommonServer) MaterialAdd(ctx context.Context, req *v1.MaterialAddRequest) (*v1.MaterialAddReply, error) {
  593. return nil, status.Errorf(codes.Unimplemented, "method MaterialAdd not implemented")
  594. }
  595. func (*UnimplementedCommonServer) MaterialUpdate(ctx context.Context, req *v1.MaterialUpdateRequest) (*v1.MaterialUpdateReply, error) {
  596. return nil, status.Errorf(codes.Unimplemented, "method MaterialUpdate not implemented")
  597. }
  598. func (*UnimplementedCommonServer) MaterialDel(ctx context.Context, req *v1.MaterialDelRequest) (*v1.MaterialDelReply, error) {
  599. return nil, status.Errorf(codes.Unimplemented, "method MaterialDel not implemented")
  600. }
  601. func (*UnimplementedCommonServer) MaterialEnable(ctx context.Context, req *v1.MaterialEnableRequest) (*v1.MaterialEnableReply, error) {
  602. return nil, status.Errorf(codes.Unimplemented, "method MaterialEnable not implemented")
  603. }
  604. func (*UnimplementedCommonServer) MaterialInfo(ctx context.Context, req *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error) {
  605. return nil, status.Errorf(codes.Unimplemented, "method MaterialInfo not implemented")
  606. }
  607. func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
  608. s.RegisterService(&_Common_serviceDesc, srv)
  609. }
  610. func _Common_SystemPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  611. in := new(v1.SystemPermissionListRequest)
  612. if err := dec(in); err != nil {
  613. return nil, err
  614. }
  615. if interceptor == nil {
  616. return srv.(CommonServer).SystemPermissionList(ctx, in)
  617. }
  618. info := &grpc.UnaryServerInfo{
  619. Server: srv,
  620. FullMethod: "/pb.service.Common/SystemPermissionList",
  621. }
  622. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  623. return srv.(CommonServer).SystemPermissionList(ctx, req.(*v1.SystemPermissionListRequest))
  624. }
  625. return interceptor(ctx, in, info, handler)
  626. }
  627. func _Common_SystemPermissionsNotTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  628. in := new(v1.SystemPermissionsNotTreeRequest)
  629. if err := dec(in); err != nil {
  630. return nil, err
  631. }
  632. if interceptor == nil {
  633. return srv.(CommonServer).SystemPermissionsNotTree(ctx, in)
  634. }
  635. info := &grpc.UnaryServerInfo{
  636. Server: srv,
  637. FullMethod: "/pb.service.Common/SystemPermissionsNotTree",
  638. }
  639. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  640. return srv.(CommonServer).SystemPermissionsNotTree(ctx, req.(*v1.SystemPermissionsNotTreeRequest))
  641. }
  642. return interceptor(ctx, in, info, handler)
  643. }
  644. func _Common_SystemPermissionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  645. in := new(v1.SystemPermissionAddRequest)
  646. if err := dec(in); err != nil {
  647. return nil, err
  648. }
  649. if interceptor == nil {
  650. return srv.(CommonServer).SystemPermissionAdd(ctx, in)
  651. }
  652. info := &grpc.UnaryServerInfo{
  653. Server: srv,
  654. FullMethod: "/pb.service.Common/SystemPermissionAdd",
  655. }
  656. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  657. return srv.(CommonServer).SystemPermissionAdd(ctx, req.(*v1.SystemPermissionAddRequest))
  658. }
  659. return interceptor(ctx, in, info, handler)
  660. }
  661. func _Common_SystemPermissionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  662. in := new(v1.SystemPermissionUpdateRequest)
  663. if err := dec(in); err != nil {
  664. return nil, err
  665. }
  666. if interceptor == nil {
  667. return srv.(CommonServer).SystemPermissionUpdate(ctx, in)
  668. }
  669. info := &grpc.UnaryServerInfo{
  670. Server: srv,
  671. FullMethod: "/pb.service.Common/SystemPermissionUpdate",
  672. }
  673. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  674. return srv.(CommonServer).SystemPermissionUpdate(ctx, req.(*v1.SystemPermissionUpdateRequest))
  675. }
  676. return interceptor(ctx, in, info, handler)
  677. }
  678. func _Common_SystemPermissionDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  679. in := new(v1.SystemPermissionDelRequest)
  680. if err := dec(in); err != nil {
  681. return nil, err
  682. }
  683. if interceptor == nil {
  684. return srv.(CommonServer).SystemPermissionDel(ctx, in)
  685. }
  686. info := &grpc.UnaryServerInfo{
  687. Server: srv,
  688. FullMethod: "/pb.service.Common/SystemPermissionDel",
  689. }
  690. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  691. return srv.(CommonServer).SystemPermissionDel(ctx, req.(*v1.SystemPermissionDelRequest))
  692. }
  693. return interceptor(ctx, in, info, handler)
  694. }
  695. func _Common_SystemPermissionEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  696. in := new(v1.SystemPermissionEnableRequest)
  697. if err := dec(in); err != nil {
  698. return nil, err
  699. }
  700. if interceptor == nil {
  701. return srv.(CommonServer).SystemPermissionEnable(ctx, in)
  702. }
  703. info := &grpc.UnaryServerInfo{
  704. Server: srv,
  705. FullMethod: "/pb.service.Common/SystemPermissionEnable",
  706. }
  707. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  708. return srv.(CommonServer).SystemPermissionEnable(ctx, req.(*v1.SystemPermissionEnableRequest))
  709. }
  710. return interceptor(ctx, in, info, handler)
  711. }
  712. func _Common_ProvinceCityArea_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  713. in := new(v1.ProvinceCityAreaRequest)
  714. if err := dec(in); err != nil {
  715. return nil, err
  716. }
  717. if interceptor == nil {
  718. return srv.(CommonServer).ProvinceCityArea(ctx, in)
  719. }
  720. info := &grpc.UnaryServerInfo{
  721. Server: srv,
  722. FullMethod: "/pb.service.Common/ProvinceCityArea",
  723. }
  724. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  725. return srv.(CommonServer).ProvinceCityArea(ctx, req.(*v1.ProvinceCityAreaRequest))
  726. }
  727. return interceptor(ctx, in, info, handler)
  728. }
  729. func _Common_StreetCommittee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  730. in := new(v1.StreetCommitteeRequest)
  731. if err := dec(in); err != nil {
  732. return nil, err
  733. }
  734. if interceptor == nil {
  735. return srv.(CommonServer).StreetCommittee(ctx, in)
  736. }
  737. info := &grpc.UnaryServerInfo{
  738. Server: srv,
  739. FullMethod: "/pb.service.Common/StreetCommittee",
  740. }
  741. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  742. return srv.(CommonServer).StreetCommittee(ctx, req.(*v1.StreetCommitteeRequest))
  743. }
  744. return interceptor(ctx, in, info, handler)
  745. }
  746. func _Common_City_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  747. in := new(v1.CityRequest)
  748. if err := dec(in); err != nil {
  749. return nil, err
  750. }
  751. if interceptor == nil {
  752. return srv.(CommonServer).City(ctx, in)
  753. }
  754. info := &grpc.UnaryServerInfo{
  755. Server: srv,
  756. FullMethod: "/pb.service.Common/City",
  757. }
  758. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  759. return srv.(CommonServer).City(ctx, req.(*v1.CityRequest))
  760. }
  761. return interceptor(ctx, in, info, handler)
  762. }
  763. func _Common_OssObjDelNotExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  764. in := new(v1.OssObjDelNotExistRequest)
  765. if err := dec(in); err != nil {
  766. return nil, err
  767. }
  768. if interceptor == nil {
  769. return srv.(CommonServer).OssObjDelNotExist(ctx, in)
  770. }
  771. info := &grpc.UnaryServerInfo{
  772. Server: srv,
  773. FullMethod: "/pb.service.Common/OssObjDelNotExist",
  774. }
  775. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  776. return srv.(CommonServer).OssObjDelNotExist(ctx, req.(*v1.OssObjDelNotExistRequest))
  777. }
  778. return interceptor(ctx, in, info, handler)
  779. }
  780. func _Common_OssObjAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  781. in := new(v1.OssObjAddRequest)
  782. if err := dec(in); err != nil {
  783. return nil, err
  784. }
  785. if interceptor == nil {
  786. return srv.(CommonServer).OssObjAdd(ctx, in)
  787. }
  788. info := &grpc.UnaryServerInfo{
  789. Server: srv,
  790. FullMethod: "/pb.service.Common/OssObjAdd",
  791. }
  792. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  793. return srv.(CommonServer).OssObjAdd(ctx, req.(*v1.OssObjAddRequest))
  794. }
  795. return interceptor(ctx, in, info, handler)
  796. }
  797. func _Common_ApplicationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  798. in := new(v1.ApplicationAddRequest)
  799. if err := dec(in); err != nil {
  800. return nil, err
  801. }
  802. if interceptor == nil {
  803. return srv.(CommonServer).ApplicationAdd(ctx, in)
  804. }
  805. info := &grpc.UnaryServerInfo{
  806. Server: srv,
  807. FullMethod: "/pb.service.Common/ApplicationAdd",
  808. }
  809. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  810. return srv.(CommonServer).ApplicationAdd(ctx, req.(*v1.ApplicationAddRequest))
  811. }
  812. return interceptor(ctx, in, info, handler)
  813. }
  814. func _Common_ApplicationDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  815. in := new(v1.ApplicationDelRequest)
  816. if err := dec(in); err != nil {
  817. return nil, err
  818. }
  819. if interceptor == nil {
  820. return srv.(CommonServer).ApplicationDel(ctx, in)
  821. }
  822. info := &grpc.UnaryServerInfo{
  823. Server: srv,
  824. FullMethod: "/pb.service.Common/ApplicationDel",
  825. }
  826. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  827. return srv.(CommonServer).ApplicationDel(ctx, req.(*v1.ApplicationDelRequest))
  828. }
  829. return interceptor(ctx, in, info, handler)
  830. }
  831. func _Common_ApplicationUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  832. in := new(v1.ApplicationUpdateRequest)
  833. if err := dec(in); err != nil {
  834. return nil, err
  835. }
  836. if interceptor == nil {
  837. return srv.(CommonServer).ApplicationUpdate(ctx, in)
  838. }
  839. info := &grpc.UnaryServerInfo{
  840. Server: srv,
  841. FullMethod: "/pb.service.Common/ApplicationUpdate",
  842. }
  843. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  844. return srv.(CommonServer).ApplicationUpdate(ctx, req.(*v1.ApplicationUpdateRequest))
  845. }
  846. return interceptor(ctx, in, info, handler)
  847. }
  848. func _Common_ApplicationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  849. in := new(v1.ApplicationListRequest)
  850. if err := dec(in); err != nil {
  851. return nil, err
  852. }
  853. if interceptor == nil {
  854. return srv.(CommonServer).ApplicationList(ctx, in)
  855. }
  856. info := &grpc.UnaryServerInfo{
  857. Server: srv,
  858. FullMethod: "/pb.service.Common/ApplicationList",
  859. }
  860. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  861. return srv.(CommonServer).ApplicationList(ctx, req.(*v1.ApplicationListRequest))
  862. }
  863. return interceptor(ctx, in, info, handler)
  864. }
  865. func _Common_ApplicationEnableSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  866. in := new(v1.ApplicationEnableSetRequest)
  867. if err := dec(in); err != nil {
  868. return nil, err
  869. }
  870. if interceptor == nil {
  871. return srv.(CommonServer).ApplicationEnableSet(ctx, in)
  872. }
  873. info := &grpc.UnaryServerInfo{
  874. Server: srv,
  875. FullMethod: "/pb.service.Common/ApplicationEnableSet",
  876. }
  877. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  878. return srv.(CommonServer).ApplicationEnableSet(ctx, req.(*v1.ApplicationEnableSetRequest))
  879. }
  880. return interceptor(ctx, in, info, handler)
  881. }
  882. func _Common_ApplicationPermissionsSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  883. in := new(v1.ApplicationPermissionsSetRequest)
  884. if err := dec(in); err != nil {
  885. return nil, err
  886. }
  887. if interceptor == nil {
  888. return srv.(CommonServer).ApplicationPermissionsSet(ctx, in)
  889. }
  890. info := &grpc.UnaryServerInfo{
  891. Server: srv,
  892. FullMethod: "/pb.service.Common/ApplicationPermissionsSet",
  893. }
  894. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  895. return srv.(CommonServer).ApplicationPermissionsSet(ctx, req.(*v1.ApplicationPermissionsSetRequest))
  896. }
  897. return interceptor(ctx, in, info, handler)
  898. }
  899. func _Common_ApplicationPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  900. in := new(v1.ApplicationPermissionsRequest)
  901. if err := dec(in); err != nil {
  902. return nil, err
  903. }
  904. if interceptor == nil {
  905. return srv.(CommonServer).ApplicationPermissions(ctx, in)
  906. }
  907. info := &grpc.UnaryServerInfo{
  908. Server: srv,
  909. FullMethod: "/pb.service.Common/ApplicationPermissions",
  910. }
  911. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  912. return srv.(CommonServer).ApplicationPermissions(ctx, req.(*v1.ApplicationPermissionsRequest))
  913. }
  914. return interceptor(ctx, in, info, handler)
  915. }
  916. func _Common_ApplicationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  917. in := new(v1.ApplicationInfoRequest)
  918. if err := dec(in); err != nil {
  919. return nil, err
  920. }
  921. if interceptor == nil {
  922. return srv.(CommonServer).ApplicationInfo(ctx, in)
  923. }
  924. info := &grpc.UnaryServerInfo{
  925. Server: srv,
  926. FullMethod: "/pb.service.Common/ApplicationInfo",
  927. }
  928. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  929. return srv.(CommonServer).ApplicationInfo(ctx, req.(*v1.ApplicationInfoRequest))
  930. }
  931. return interceptor(ctx, in, info, handler)
  932. }
  933. func _Common_PackageAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  934. in := new(v1.PackageAddRequest)
  935. if err := dec(in); err != nil {
  936. return nil, err
  937. }
  938. if interceptor == nil {
  939. return srv.(CommonServer).PackageAdd(ctx, in)
  940. }
  941. info := &grpc.UnaryServerInfo{
  942. Server: srv,
  943. FullMethod: "/pb.service.Common/PackageAdd",
  944. }
  945. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  946. return srv.(CommonServer).PackageAdd(ctx, req.(*v1.PackageAddRequest))
  947. }
  948. return interceptor(ctx, in, info, handler)
  949. }
  950. func _Common_PackageDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  951. in := new(v1.PackageDelRequest)
  952. if err := dec(in); err != nil {
  953. return nil, err
  954. }
  955. if interceptor == nil {
  956. return srv.(CommonServer).PackageDel(ctx, in)
  957. }
  958. info := &grpc.UnaryServerInfo{
  959. Server: srv,
  960. FullMethod: "/pb.service.Common/PackageDel",
  961. }
  962. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  963. return srv.(CommonServer).PackageDel(ctx, req.(*v1.PackageDelRequest))
  964. }
  965. return interceptor(ctx, in, info, handler)
  966. }
  967. func _Common_PackageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  968. in := new(v1.PackageUpdateRequest)
  969. if err := dec(in); err != nil {
  970. return nil, err
  971. }
  972. if interceptor == nil {
  973. return srv.(CommonServer).PackageUpdate(ctx, in)
  974. }
  975. info := &grpc.UnaryServerInfo{
  976. Server: srv,
  977. FullMethod: "/pb.service.Common/PackageUpdate",
  978. }
  979. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  980. return srv.(CommonServer).PackageUpdate(ctx, req.(*v1.PackageUpdateRequest))
  981. }
  982. return interceptor(ctx, in, info, handler)
  983. }
  984. func _Common_PackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  985. in := new(v1.PackageListRequest)
  986. if err := dec(in); err != nil {
  987. return nil, err
  988. }
  989. if interceptor == nil {
  990. return srv.(CommonServer).PackageList(ctx, in)
  991. }
  992. info := &grpc.UnaryServerInfo{
  993. Server: srv,
  994. FullMethod: "/pb.service.Common/PackageList",
  995. }
  996. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  997. return srv.(CommonServer).PackageList(ctx, req.(*v1.PackageListRequest))
  998. }
  999. return interceptor(ctx, in, info, handler)
  1000. }
  1001. func _Common_PackageEnableSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1002. in := new(v1.PackageEnableSetRequest)
  1003. if err := dec(in); err != nil {
  1004. return nil, err
  1005. }
  1006. if interceptor == nil {
  1007. return srv.(CommonServer).PackageEnableSet(ctx, in)
  1008. }
  1009. info := &grpc.UnaryServerInfo{
  1010. Server: srv,
  1011. FullMethod: "/pb.service.Common/PackageEnableSet",
  1012. }
  1013. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1014. return srv.(CommonServer).PackageEnableSet(ctx, req.(*v1.PackageEnableSetRequest))
  1015. }
  1016. return interceptor(ctx, in, info, handler)
  1017. }
  1018. func _Common_PackageApplicationSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1019. in := new(v1.PackageApplicationSetRequest)
  1020. if err := dec(in); err != nil {
  1021. return nil, err
  1022. }
  1023. if interceptor == nil {
  1024. return srv.(CommonServer).PackageApplicationSet(ctx, in)
  1025. }
  1026. info := &grpc.UnaryServerInfo{
  1027. Server: srv,
  1028. FullMethod: "/pb.service.Common/PackageApplicationSet",
  1029. }
  1030. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1031. return srv.(CommonServer).PackageApplicationSet(ctx, req.(*v1.PackageApplicationSetRequest))
  1032. }
  1033. return interceptor(ctx, in, info, handler)
  1034. }
  1035. func _Common_PackageInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1036. in := new(v1.PackageInfoRequest)
  1037. if err := dec(in); err != nil {
  1038. return nil, err
  1039. }
  1040. if interceptor == nil {
  1041. return srv.(CommonServer).PackageInfo(ctx, in)
  1042. }
  1043. info := &grpc.UnaryServerInfo{
  1044. Server: srv,
  1045. FullMethod: "/pb.service.Common/PackageInfo",
  1046. }
  1047. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1048. return srv.(CommonServer).PackageInfo(ctx, req.(*v1.PackageInfoRequest))
  1049. }
  1050. return interceptor(ctx, in, info, handler)
  1051. }
  1052. func _Common_MsgPackageAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1053. in := new(v1.MsgPackageAddRequest)
  1054. if err := dec(in); err != nil {
  1055. return nil, err
  1056. }
  1057. if interceptor == nil {
  1058. return srv.(CommonServer).MsgPackageAdd(ctx, in)
  1059. }
  1060. info := &grpc.UnaryServerInfo{
  1061. Server: srv,
  1062. FullMethod: "/pb.service.Common/MsgPackageAdd",
  1063. }
  1064. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1065. return srv.(CommonServer).MsgPackageAdd(ctx, req.(*v1.MsgPackageAddRequest))
  1066. }
  1067. return interceptor(ctx, in, info, handler)
  1068. }
  1069. func _Common_MsgPackageDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1070. in := new(v1.MsgPackageDelRequest)
  1071. if err := dec(in); err != nil {
  1072. return nil, err
  1073. }
  1074. if interceptor == nil {
  1075. return srv.(CommonServer).MsgPackageDel(ctx, in)
  1076. }
  1077. info := &grpc.UnaryServerInfo{
  1078. Server: srv,
  1079. FullMethod: "/pb.service.Common/MsgPackageDel",
  1080. }
  1081. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1082. return srv.(CommonServer).MsgPackageDel(ctx, req.(*v1.MsgPackageDelRequest))
  1083. }
  1084. return interceptor(ctx, in, info, handler)
  1085. }
  1086. func _Common_MsgPackageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1087. in := new(v1.MsgPackageUpdateRequest)
  1088. if err := dec(in); err != nil {
  1089. return nil, err
  1090. }
  1091. if interceptor == nil {
  1092. return srv.(CommonServer).MsgPackageUpdate(ctx, in)
  1093. }
  1094. info := &grpc.UnaryServerInfo{
  1095. Server: srv,
  1096. FullMethod: "/pb.service.Common/MsgPackageUpdate",
  1097. }
  1098. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1099. return srv.(CommonServer).MsgPackageUpdate(ctx, req.(*v1.MsgPackageUpdateRequest))
  1100. }
  1101. return interceptor(ctx, in, info, handler)
  1102. }
  1103. func _Common_MsgPackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1104. in := new(v1.MsgPackageListRequest)
  1105. if err := dec(in); err != nil {
  1106. return nil, err
  1107. }
  1108. if interceptor == nil {
  1109. return srv.(CommonServer).MsgPackageList(ctx, in)
  1110. }
  1111. info := &grpc.UnaryServerInfo{
  1112. Server: srv,
  1113. FullMethod: "/pb.service.Common/MsgPackageList",
  1114. }
  1115. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1116. return srv.(CommonServer).MsgPackageList(ctx, req.(*v1.MsgPackageListRequest))
  1117. }
  1118. return interceptor(ctx, in, info, handler)
  1119. }
  1120. func _Common_MsgPackageInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1121. in := new(v1.MsgPackageInfoRequest)
  1122. if err := dec(in); err != nil {
  1123. return nil, err
  1124. }
  1125. if interceptor == nil {
  1126. return srv.(CommonServer).MsgPackageInfo(ctx, in)
  1127. }
  1128. info := &grpc.UnaryServerInfo{
  1129. Server: srv,
  1130. FullMethod: "/pb.service.Common/MsgPackageInfo",
  1131. }
  1132. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1133. return srv.(CommonServer).MsgPackageInfo(ctx, req.(*v1.MsgPackageInfoRequest))
  1134. }
  1135. return interceptor(ctx, in, info, handler)
  1136. }
  1137. func _Common_MaterialList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1138. in := new(v1.MaterialListRequest)
  1139. if err := dec(in); err != nil {
  1140. return nil, err
  1141. }
  1142. if interceptor == nil {
  1143. return srv.(CommonServer).MaterialList(ctx, in)
  1144. }
  1145. info := &grpc.UnaryServerInfo{
  1146. Server: srv,
  1147. FullMethod: "/pb.service.Common/MaterialList",
  1148. }
  1149. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1150. return srv.(CommonServer).MaterialList(ctx, req.(*v1.MaterialListRequest))
  1151. }
  1152. return interceptor(ctx, in, info, handler)
  1153. }
  1154. func _Common_MaterialAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1155. in := new(v1.MaterialAddRequest)
  1156. if err := dec(in); err != nil {
  1157. return nil, err
  1158. }
  1159. if interceptor == nil {
  1160. return srv.(CommonServer).MaterialAdd(ctx, in)
  1161. }
  1162. info := &grpc.UnaryServerInfo{
  1163. Server: srv,
  1164. FullMethod: "/pb.service.Common/MaterialAdd",
  1165. }
  1166. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1167. return srv.(CommonServer).MaterialAdd(ctx, req.(*v1.MaterialAddRequest))
  1168. }
  1169. return interceptor(ctx, in, info, handler)
  1170. }
  1171. func _Common_MaterialUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1172. in := new(v1.MaterialUpdateRequest)
  1173. if err := dec(in); err != nil {
  1174. return nil, err
  1175. }
  1176. if interceptor == nil {
  1177. return srv.(CommonServer).MaterialUpdate(ctx, in)
  1178. }
  1179. info := &grpc.UnaryServerInfo{
  1180. Server: srv,
  1181. FullMethod: "/pb.service.Common/MaterialUpdate",
  1182. }
  1183. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1184. return srv.(CommonServer).MaterialUpdate(ctx, req.(*v1.MaterialUpdateRequest))
  1185. }
  1186. return interceptor(ctx, in, info, handler)
  1187. }
  1188. func _Common_MaterialDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1189. in := new(v1.MaterialDelRequest)
  1190. if err := dec(in); err != nil {
  1191. return nil, err
  1192. }
  1193. if interceptor == nil {
  1194. return srv.(CommonServer).MaterialDel(ctx, in)
  1195. }
  1196. info := &grpc.UnaryServerInfo{
  1197. Server: srv,
  1198. FullMethod: "/pb.service.Common/MaterialDel",
  1199. }
  1200. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1201. return srv.(CommonServer).MaterialDel(ctx, req.(*v1.MaterialDelRequest))
  1202. }
  1203. return interceptor(ctx, in, info, handler)
  1204. }
  1205. func _Common_MaterialEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1206. in := new(v1.MaterialEnableRequest)
  1207. if err := dec(in); err != nil {
  1208. return nil, err
  1209. }
  1210. if interceptor == nil {
  1211. return srv.(CommonServer).MaterialEnable(ctx, in)
  1212. }
  1213. info := &grpc.UnaryServerInfo{
  1214. Server: srv,
  1215. FullMethod: "/pb.service.Common/MaterialEnable",
  1216. }
  1217. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1218. return srv.(CommonServer).MaterialEnable(ctx, req.(*v1.MaterialEnableRequest))
  1219. }
  1220. return interceptor(ctx, in, info, handler)
  1221. }
  1222. func _Common_MaterialInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1223. in := new(v1.MaterialInfoRequest)
  1224. if err := dec(in); err != nil {
  1225. return nil, err
  1226. }
  1227. if interceptor == nil {
  1228. return srv.(CommonServer).MaterialInfo(ctx, in)
  1229. }
  1230. info := &grpc.UnaryServerInfo{
  1231. Server: srv,
  1232. FullMethod: "/pb.service.Common/MaterialInfo",
  1233. }
  1234. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1235. return srv.(CommonServer).MaterialInfo(ctx, req.(*v1.MaterialInfoRequest))
  1236. }
  1237. return interceptor(ctx, in, info, handler)
  1238. }
  1239. var _Common_serviceDesc = grpc.ServiceDesc{
  1240. ServiceName: "pb.service.Common",
  1241. HandlerType: (*CommonServer)(nil),
  1242. Methods: []grpc.MethodDesc{
  1243. {
  1244. MethodName: "SystemPermissionList",
  1245. Handler: _Common_SystemPermissionList_Handler,
  1246. },
  1247. {
  1248. MethodName: "SystemPermissionsNotTree",
  1249. Handler: _Common_SystemPermissionsNotTree_Handler,
  1250. },
  1251. {
  1252. MethodName: "SystemPermissionAdd",
  1253. Handler: _Common_SystemPermissionAdd_Handler,
  1254. },
  1255. {
  1256. MethodName: "SystemPermissionUpdate",
  1257. Handler: _Common_SystemPermissionUpdate_Handler,
  1258. },
  1259. {
  1260. MethodName: "SystemPermissionDel",
  1261. Handler: _Common_SystemPermissionDel_Handler,
  1262. },
  1263. {
  1264. MethodName: "SystemPermissionEnable",
  1265. Handler: _Common_SystemPermissionEnable_Handler,
  1266. },
  1267. {
  1268. MethodName: "ProvinceCityArea",
  1269. Handler: _Common_ProvinceCityArea_Handler,
  1270. },
  1271. {
  1272. MethodName: "StreetCommittee",
  1273. Handler: _Common_StreetCommittee_Handler,
  1274. },
  1275. {
  1276. MethodName: "City",
  1277. Handler: _Common_City_Handler,
  1278. },
  1279. {
  1280. MethodName: "OssObjDelNotExist",
  1281. Handler: _Common_OssObjDelNotExist_Handler,
  1282. },
  1283. {
  1284. MethodName: "OssObjAdd",
  1285. Handler: _Common_OssObjAdd_Handler,
  1286. },
  1287. {
  1288. MethodName: "ApplicationAdd",
  1289. Handler: _Common_ApplicationAdd_Handler,
  1290. },
  1291. {
  1292. MethodName: "ApplicationDel",
  1293. Handler: _Common_ApplicationDel_Handler,
  1294. },
  1295. {
  1296. MethodName: "ApplicationUpdate",
  1297. Handler: _Common_ApplicationUpdate_Handler,
  1298. },
  1299. {
  1300. MethodName: "ApplicationList",
  1301. Handler: _Common_ApplicationList_Handler,
  1302. },
  1303. {
  1304. MethodName: "ApplicationEnableSet",
  1305. Handler: _Common_ApplicationEnableSet_Handler,
  1306. },
  1307. {
  1308. MethodName: "ApplicationPermissionsSet",
  1309. Handler: _Common_ApplicationPermissionsSet_Handler,
  1310. },
  1311. {
  1312. MethodName: "ApplicationPermissions",
  1313. Handler: _Common_ApplicationPermissions_Handler,
  1314. },
  1315. {
  1316. MethodName: "ApplicationInfo",
  1317. Handler: _Common_ApplicationInfo_Handler,
  1318. },
  1319. {
  1320. MethodName: "PackageAdd",
  1321. Handler: _Common_PackageAdd_Handler,
  1322. },
  1323. {
  1324. MethodName: "PackageDel",
  1325. Handler: _Common_PackageDel_Handler,
  1326. },
  1327. {
  1328. MethodName: "PackageUpdate",
  1329. Handler: _Common_PackageUpdate_Handler,
  1330. },
  1331. {
  1332. MethodName: "PackageList",
  1333. Handler: _Common_PackageList_Handler,
  1334. },
  1335. {
  1336. MethodName: "PackageEnableSet",
  1337. Handler: _Common_PackageEnableSet_Handler,
  1338. },
  1339. {
  1340. MethodName: "PackageApplicationSet",
  1341. Handler: _Common_PackageApplicationSet_Handler,
  1342. },
  1343. {
  1344. MethodName: "PackageInfo",
  1345. Handler: _Common_PackageInfo_Handler,
  1346. },
  1347. {
  1348. MethodName: "MsgPackageAdd",
  1349. Handler: _Common_MsgPackageAdd_Handler,
  1350. },
  1351. {
  1352. MethodName: "MsgPackageDel",
  1353. Handler: _Common_MsgPackageDel_Handler,
  1354. },
  1355. {
  1356. MethodName: "MsgPackageUpdate",
  1357. Handler: _Common_MsgPackageUpdate_Handler,
  1358. },
  1359. {
  1360. MethodName: "MsgPackageList",
  1361. Handler: _Common_MsgPackageList_Handler,
  1362. },
  1363. {
  1364. MethodName: "MsgPackageInfo",
  1365. Handler: _Common_MsgPackageInfo_Handler,
  1366. },
  1367. {
  1368. MethodName: "MaterialList",
  1369. Handler: _Common_MaterialList_Handler,
  1370. },
  1371. {
  1372. MethodName: "MaterialAdd",
  1373. Handler: _Common_MaterialAdd_Handler,
  1374. },
  1375. {
  1376. MethodName: "MaterialUpdate",
  1377. Handler: _Common_MaterialUpdate_Handler,
  1378. },
  1379. {
  1380. MethodName: "MaterialDel",
  1381. Handler: _Common_MaterialDel_Handler,
  1382. },
  1383. {
  1384. MethodName: "MaterialEnable",
  1385. Handler: _Common_MaterialEnable_Handler,
  1386. },
  1387. {
  1388. MethodName: "MaterialInfo",
  1389. Handler: _Common_MaterialInfo_Handler,
  1390. },
  1391. },
  1392. Streams: []grpc.StreamDesc{},
  1393. Metadata: "common_service.proto",
  1394. }