common_service.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  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-system/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. // 430 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x5f, 0x6f, 0xda, 0x30,
  30. 0x14, 0xc5, 0xf7, 0x84, 0x34, 0x4f, 0x1a, 0x9b, 0xc7, 0xc6, 0xc6, 0xc6, 0xfe, 0xa0, 0xa9, 0x6f,
  31. 0x0d, 0xa2, 0x7d, 0xee, 0x43, 0x0a, 0x7d, 0xa8, 0x44, 0x01, 0x41, 0x79, 0x69, 0xa5, 0xa2, 0xfc,
  32. 0xb9, 0x45, 0xa6, 0x49, 0xec, 0xda, 0x6e, 0xd4, 0x7c, 0x8a, 0x7e, 0xe5, 0x2a, 0x31, 0xa6, 0xc1,
  33. 0xc4, 0xf0, 0x7a, 0x7f, 0xc7, 0xe7, 0x9e, 0x8b, 0x4e, 0x40, 0x8d, 0x80, 0xc6, 0x31, 0x4d, 0x16,
  34. 0x02, 0x78, 0x4a, 0x02, 0x70, 0x18, 0xa7, 0x92, 0x62, 0xc4, 0x7c, 0x67, 0x3d, 0x69, 0xd5, 0xd3,
  35. 0x5e, 0x57, 0x89, 0x14, 0x3c, 0x79, 0x41, 0xa8, 0xd6, 0x2f, 0x06, 0xf8, 0x0e, 0x35, 0x66, 0x99,
  36. 0x90, 0x10, 0x4f, 0x80, 0xc7, 0x44, 0x08, 0x42, 0x93, 0x21, 0x11, 0x12, 0x77, 0x1c, 0xe6, 0x2f,
  37. 0xd2, 0x9e, 0x53, 0x05, 0xa7, 0xf0, 0xf8, 0x04, 0x42, 0xb6, 0xfe, 0xee, 0xd5, 0xb0, 0x28, 0xeb,
  38. 0xbc, 0xc3, 0x2b, 0xf4, 0xdd, 0xc4, 0x62, 0x44, 0xe5, 0x35, 0x07, 0xc0, 0x47, 0x96, 0xf7, 0x5a,
  39. 0xa0, 0xf7, 0xfc, 0x3f, 0xa8, 0x53, 0xbb, 0x6e, 0xd1, 0x17, 0x53, 0xe2, 0x86, 0x21, 0xfe, 0x67,
  40. 0x79, 0xee, 0x86, 0xa1, 0xde, 0xf0, 0x67, 0x9f, 0x44, 0x99, 0x87, 0xe8, 0x9b, 0x49, 0xe7, 0x2c,
  41. 0xf4, 0x24, 0x60, 0x5b, 0x3c, 0x85, 0xf5, 0x8a, 0xce, 0x01, 0x95, 0xf5, 0x84, 0x01, 0x44, 0xd6,
  42. 0x13, 0x06, 0x10, 0x1d, 0x3a, 0xa1, 0x90, 0x28, 0xf3, 0x29, 0xfa, 0x34, 0xe1, 0x34, 0x25, 0x49,
  43. 0x00, 0x7d, 0x22, 0x33, 0x97, 0x83, 0x87, 0x7f, 0xaf, 0x9f, 0x99, 0x40, 0xdb, 0xfe, 0xb2, 0x72,
  44. 0xe5, 0x39, 0x46, 0xf5, 0x99, 0xe4, 0x00, 0x32, 0xef, 0x13, 0x91, 0x12, 0x00, 0xb7, 0x75, 0x92,
  45. 0xed, 0xb9, 0x76, 0xfc, 0x69, 0xc3, 0xca, 0x70, 0x8e, 0x3e, 0x8f, 0x85, 0x18, 0xfb, 0xab, 0x01,
  46. 0x44, 0x23, 0x2a, 0x2f, 0x9e, 0xf3, 0x36, 0xea, 0xe3, 0x76, 0x88, 0x36, 0x6d, 0xdb, 0x05, 0xca,
  47. 0xf6, 0x0c, 0xbd, 0x57, 0x2c, 0x6f, 0x44, 0x73, 0x4b, 0x5d, 0xea, 0xc1, 0xd7, 0x5d, 0xb0, 0x39,
  48. 0xd3, 0x65, 0x2c, 0x22, 0x81, 0x27, 0xf5, 0x17, 0xa2, 0x57, 0x1a, 0x73, 0xf3, 0xcc, 0x1d, 0xbc,
  49. 0xa9, 0x53, 0x89, 0x94, 0x3a, 0xbd, 0xa9, 0x53, 0x35, 0x36, 0xeb, 0x64, 0x53, 0x55, 0xc5, 0xbe,
  50. 0x4c, 0xee, 0x69, 0x55, 0xec, 0x7c, 0xbe, 0x27, 0xb6, 0xc2, 0xca, 0xb0, 0x8f, 0x3e, 0x4c, 0xbc,
  51. 0xe0, 0xc1, 0x5b, 0x42, 0xf1, 0x1b, 0xfc, 0xd0, 0xed, 0x78, 0x9b, 0x69, 0xa3, 0x66, 0x15, 0x32,
  52. 0x4d, 0x8a, 0x44, 0x86, 0x49, 0x39, 0x4d, 0xb3, 0x0a, 0x29, 0x93, 0x21, 0xfa, 0x78, 0x25, 0x96,
  53. 0x65, 0x1f, 0x5d, 0xd5, 0xed, 0xb1, 0xb6, 0x6a, 0x59, 0x68, 0xe1, 0x76, 0xde, 0xb8, 0xc1, 0x8c,
  54. 0x53, 0x06, 0x5c, 0x66, 0xc7, 0xa2, 0xf8, 0x82, 0xba, 0xcc, 0xf7, 0x6b, 0xc5, 0xdf, 0xe5, 0xe9,
  55. 0x6b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x69, 0xb1, 0x7f, 0x40, 0x63, 0x05, 0x00, 0x00,
  56. }
  57. // Reference imports to suppress errors if they are not otherwise used.
  58. var _ context.Context
  59. var _ grpc.ClientConnInterface
  60. // This is a compile-time assertion to ensure that this generated file
  61. // is compatible with the grpc package it is being compiled against.
  62. const _ = grpc.SupportPackageIsVersion6
  63. // CommonClient is the client API for Common service.
  64. //
  65. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  66. type CommonClient interface {
  67. // 权限总列表
  68. SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error)
  69. SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error)
  70. // 添加权限节点
  71. SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error)
  72. // 更新权限节点
  73. SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error)
  74. // 删除权限节点
  75. SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error)
  76. // 省市区
  77. ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error)
  78. // 街道社区
  79. StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error)
  80. // 对象存储删除无用的数据
  81. OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error)
  82. // 对象存储添加到公共区
  83. OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error)
  84. // 应用
  85. ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error)
  86. ApplicationPermissions(ctx context.Context, in *v1.ApplicationPermissionsRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsReply, error)
  87. ApplicationInfo(ctx context.Context, in *v1.ApplicationInfoRequest, opts ...grpc.CallOption) (*v1.ApplicationInfoReply, error)
  88. // 套餐
  89. PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error)
  90. PackageInfo(ctx context.Context, in *v1.PackageInfoRequest, opts ...grpc.CallOption) (*v1.PackageInfoReply, error)
  91. // 短信套餐
  92. MsgPackageInfo(ctx context.Context, in *v1.MsgPackageInfoRequest, opts ...grpc.CallOption) (*v1.MsgPackageInfoReply, error)
  93. }
  94. type commonClient struct {
  95. cc grpc.ClientConnInterface
  96. }
  97. func NewCommonClient(cc grpc.ClientConnInterface) CommonClient {
  98. return &commonClient{cc}
  99. }
  100. func (c *commonClient) SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) {
  101. out := new(v1.SystemPermissionListReply)
  102. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionList", in, out, opts...)
  103. if err != nil {
  104. return nil, err
  105. }
  106. return out, nil
  107. }
  108. func (c *commonClient) SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error) {
  109. out := new(v1.SystemPermissionsNotTreeReply)
  110. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionsNotTree", in, out, opts...)
  111. if err != nil {
  112. return nil, err
  113. }
  114. return out, nil
  115. }
  116. func (c *commonClient) SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) {
  117. out := new(v1.SystemPermissionAddReply)
  118. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionAdd", in, out, opts...)
  119. if err != nil {
  120. return nil, err
  121. }
  122. return out, nil
  123. }
  124. func (c *commonClient) SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) {
  125. out := new(v1.SystemPermissionUpdateReply)
  126. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionUpdate", in, out, opts...)
  127. if err != nil {
  128. return nil, err
  129. }
  130. return out, nil
  131. }
  132. func (c *commonClient) SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) {
  133. out := new(v1.SystemPermissionDelReply)
  134. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionDel", in, out, opts...)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return out, nil
  139. }
  140. func (c *commonClient) ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) {
  141. out := new(v1.ProvinceCityAreaReply)
  142. err := c.cc.Invoke(ctx, "/pb.service.Common/ProvinceCityArea", in, out, opts...)
  143. if err != nil {
  144. return nil, err
  145. }
  146. return out, nil
  147. }
  148. func (c *commonClient) StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) {
  149. out := new(v1.StreetCommitteeReply)
  150. err := c.cc.Invoke(ctx, "/pb.service.Common/StreetCommittee", in, out, opts...)
  151. if err != nil {
  152. return nil, err
  153. }
  154. return out, nil
  155. }
  156. func (c *commonClient) OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) {
  157. out := new(v1.OssObjDelNotExistReply)
  158. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjDelNotExist", in, out, opts...)
  159. if err != nil {
  160. return nil, err
  161. }
  162. return out, nil
  163. }
  164. func (c *commonClient) OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error) {
  165. out := new(v1.OssObjAddReply)
  166. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjAdd", in, out, opts...)
  167. if err != nil {
  168. return nil, err
  169. }
  170. return out, nil
  171. }
  172. func (c *commonClient) ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error) {
  173. out := new(v1.ApplicationListReply)
  174. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationList", in, out, opts...)
  175. if err != nil {
  176. return nil, err
  177. }
  178. return out, nil
  179. }
  180. func (c *commonClient) ApplicationPermissions(ctx context.Context, in *v1.ApplicationPermissionsRequest, opts ...grpc.CallOption) (*v1.ApplicationPermissionsReply, error) {
  181. out := new(v1.ApplicationPermissionsReply)
  182. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationPermissions", in, out, opts...)
  183. if err != nil {
  184. return nil, err
  185. }
  186. return out, nil
  187. }
  188. func (c *commonClient) ApplicationInfo(ctx context.Context, in *v1.ApplicationInfoRequest, opts ...grpc.CallOption) (*v1.ApplicationInfoReply, error) {
  189. out := new(v1.ApplicationInfoReply)
  190. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationInfo", in, out, opts...)
  191. if err != nil {
  192. return nil, err
  193. }
  194. return out, nil
  195. }
  196. func (c *commonClient) PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error) {
  197. out := new(v1.PackageListReply)
  198. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageList", in, out, opts...)
  199. if err != nil {
  200. return nil, err
  201. }
  202. return out, nil
  203. }
  204. func (c *commonClient) PackageInfo(ctx context.Context, in *v1.PackageInfoRequest, opts ...grpc.CallOption) (*v1.PackageInfoReply, error) {
  205. out := new(v1.PackageInfoReply)
  206. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageInfo", in, out, opts...)
  207. if err != nil {
  208. return nil, err
  209. }
  210. return out, nil
  211. }
  212. func (c *commonClient) MsgPackageInfo(ctx context.Context, in *v1.MsgPackageInfoRequest, opts ...grpc.CallOption) (*v1.MsgPackageInfoReply, error) {
  213. out := new(v1.MsgPackageInfoReply)
  214. err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageInfo", in, out, opts...)
  215. if err != nil {
  216. return nil, err
  217. }
  218. return out, nil
  219. }
  220. // CommonServer is the server API for Common service.
  221. type CommonServer interface {
  222. // 权限总列表
  223. SystemPermissionList(context.Context, *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error)
  224. SystemPermissionsNotTree(context.Context, *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error)
  225. // 添加权限节点
  226. SystemPermissionAdd(context.Context, *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error)
  227. // 更新权限节点
  228. SystemPermissionUpdate(context.Context, *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error)
  229. // 删除权限节点
  230. SystemPermissionDel(context.Context, *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error)
  231. // 省市区
  232. ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error)
  233. // 街道社区
  234. StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error)
  235. // 对象存储删除无用的数据
  236. OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error)
  237. // 对象存储添加到公共区
  238. OssObjAdd(context.Context, *v1.OssObjAddRequest) (*v1.OssObjAddReply, error)
  239. // 应用
  240. ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error)
  241. ApplicationPermissions(context.Context, *v1.ApplicationPermissionsRequest) (*v1.ApplicationPermissionsReply, error)
  242. ApplicationInfo(context.Context, *v1.ApplicationInfoRequest) (*v1.ApplicationInfoReply, error)
  243. // 套餐
  244. PackageList(context.Context, *v1.PackageListRequest) (*v1.PackageListReply, error)
  245. PackageInfo(context.Context, *v1.PackageInfoRequest) (*v1.PackageInfoReply, error)
  246. // 短信套餐
  247. MsgPackageInfo(context.Context, *v1.MsgPackageInfoRequest) (*v1.MsgPackageInfoReply, error)
  248. }
  249. // UnimplementedCommonServer can be embedded to have forward compatible implementations.
  250. type UnimplementedCommonServer struct {
  251. }
  252. func (*UnimplementedCommonServer) SystemPermissionList(ctx context.Context, req *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) {
  253. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionList not implemented")
  254. }
  255. func (*UnimplementedCommonServer) SystemPermissionsNotTree(ctx context.Context, req *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error) {
  256. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionsNotTree not implemented")
  257. }
  258. func (*UnimplementedCommonServer) SystemPermissionAdd(ctx context.Context, req *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) {
  259. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionAdd not implemented")
  260. }
  261. func (*UnimplementedCommonServer) SystemPermissionUpdate(ctx context.Context, req *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) {
  262. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionUpdate not implemented")
  263. }
  264. func (*UnimplementedCommonServer) SystemPermissionDel(ctx context.Context, req *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) {
  265. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionDel not implemented")
  266. }
  267. func (*UnimplementedCommonServer) ProvinceCityArea(ctx context.Context, req *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) {
  268. return nil, status.Errorf(codes.Unimplemented, "method ProvinceCityArea not implemented")
  269. }
  270. func (*UnimplementedCommonServer) StreetCommittee(ctx context.Context, req *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) {
  271. return nil, status.Errorf(codes.Unimplemented, "method StreetCommittee not implemented")
  272. }
  273. func (*UnimplementedCommonServer) OssObjDelNotExist(ctx context.Context, req *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) {
  274. return nil, status.Errorf(codes.Unimplemented, "method OssObjDelNotExist not implemented")
  275. }
  276. func (*UnimplementedCommonServer) OssObjAdd(ctx context.Context, req *v1.OssObjAddRequest) (*v1.OssObjAddReply, error) {
  277. return nil, status.Errorf(codes.Unimplemented, "method OssObjAdd not implemented")
  278. }
  279. func (*UnimplementedCommonServer) ApplicationList(ctx context.Context, req *v1.ApplicationListRequest) (*v1.ApplicationListReply, error) {
  280. return nil, status.Errorf(codes.Unimplemented, "method ApplicationList not implemented")
  281. }
  282. func (*UnimplementedCommonServer) ApplicationPermissions(ctx context.Context, req *v1.ApplicationPermissionsRequest) (*v1.ApplicationPermissionsReply, error) {
  283. return nil, status.Errorf(codes.Unimplemented, "method ApplicationPermissions not implemented")
  284. }
  285. func (*UnimplementedCommonServer) ApplicationInfo(ctx context.Context, req *v1.ApplicationInfoRequest) (*v1.ApplicationInfoReply, error) {
  286. return nil, status.Errorf(codes.Unimplemented, "method ApplicationInfo not implemented")
  287. }
  288. func (*UnimplementedCommonServer) PackageList(ctx context.Context, req *v1.PackageListRequest) (*v1.PackageListReply, error) {
  289. return nil, status.Errorf(codes.Unimplemented, "method PackageList not implemented")
  290. }
  291. func (*UnimplementedCommonServer) PackageInfo(ctx context.Context, req *v1.PackageInfoRequest) (*v1.PackageInfoReply, error) {
  292. return nil, status.Errorf(codes.Unimplemented, "method PackageInfo not implemented")
  293. }
  294. func (*UnimplementedCommonServer) MsgPackageInfo(ctx context.Context, req *v1.MsgPackageInfoRequest) (*v1.MsgPackageInfoReply, error) {
  295. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageInfo not implemented")
  296. }
  297. func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
  298. s.RegisterService(&_Common_serviceDesc, srv)
  299. }
  300. func _Common_SystemPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  301. in := new(v1.SystemPermissionListRequest)
  302. if err := dec(in); err != nil {
  303. return nil, err
  304. }
  305. if interceptor == nil {
  306. return srv.(CommonServer).SystemPermissionList(ctx, in)
  307. }
  308. info := &grpc.UnaryServerInfo{
  309. Server: srv,
  310. FullMethod: "/pb.service.Common/SystemPermissionList",
  311. }
  312. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  313. return srv.(CommonServer).SystemPermissionList(ctx, req.(*v1.SystemPermissionListRequest))
  314. }
  315. return interceptor(ctx, in, info, handler)
  316. }
  317. func _Common_SystemPermissionsNotTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  318. in := new(v1.SystemPermissionsNotTreeRequest)
  319. if err := dec(in); err != nil {
  320. return nil, err
  321. }
  322. if interceptor == nil {
  323. return srv.(CommonServer).SystemPermissionsNotTree(ctx, in)
  324. }
  325. info := &grpc.UnaryServerInfo{
  326. Server: srv,
  327. FullMethod: "/pb.service.Common/SystemPermissionsNotTree",
  328. }
  329. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  330. return srv.(CommonServer).SystemPermissionsNotTree(ctx, req.(*v1.SystemPermissionsNotTreeRequest))
  331. }
  332. return interceptor(ctx, in, info, handler)
  333. }
  334. func _Common_SystemPermissionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  335. in := new(v1.SystemPermissionAddRequest)
  336. if err := dec(in); err != nil {
  337. return nil, err
  338. }
  339. if interceptor == nil {
  340. return srv.(CommonServer).SystemPermissionAdd(ctx, in)
  341. }
  342. info := &grpc.UnaryServerInfo{
  343. Server: srv,
  344. FullMethod: "/pb.service.Common/SystemPermissionAdd",
  345. }
  346. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  347. return srv.(CommonServer).SystemPermissionAdd(ctx, req.(*v1.SystemPermissionAddRequest))
  348. }
  349. return interceptor(ctx, in, info, handler)
  350. }
  351. func _Common_SystemPermissionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  352. in := new(v1.SystemPermissionUpdateRequest)
  353. if err := dec(in); err != nil {
  354. return nil, err
  355. }
  356. if interceptor == nil {
  357. return srv.(CommonServer).SystemPermissionUpdate(ctx, in)
  358. }
  359. info := &grpc.UnaryServerInfo{
  360. Server: srv,
  361. FullMethod: "/pb.service.Common/SystemPermissionUpdate",
  362. }
  363. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  364. return srv.(CommonServer).SystemPermissionUpdate(ctx, req.(*v1.SystemPermissionUpdateRequest))
  365. }
  366. return interceptor(ctx, in, info, handler)
  367. }
  368. func _Common_SystemPermissionDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  369. in := new(v1.SystemPermissionDelRequest)
  370. if err := dec(in); err != nil {
  371. return nil, err
  372. }
  373. if interceptor == nil {
  374. return srv.(CommonServer).SystemPermissionDel(ctx, in)
  375. }
  376. info := &grpc.UnaryServerInfo{
  377. Server: srv,
  378. FullMethod: "/pb.service.Common/SystemPermissionDel",
  379. }
  380. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  381. return srv.(CommonServer).SystemPermissionDel(ctx, req.(*v1.SystemPermissionDelRequest))
  382. }
  383. return interceptor(ctx, in, info, handler)
  384. }
  385. func _Common_ProvinceCityArea_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  386. in := new(v1.ProvinceCityAreaRequest)
  387. if err := dec(in); err != nil {
  388. return nil, err
  389. }
  390. if interceptor == nil {
  391. return srv.(CommonServer).ProvinceCityArea(ctx, in)
  392. }
  393. info := &grpc.UnaryServerInfo{
  394. Server: srv,
  395. FullMethod: "/pb.service.Common/ProvinceCityArea",
  396. }
  397. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  398. return srv.(CommonServer).ProvinceCityArea(ctx, req.(*v1.ProvinceCityAreaRequest))
  399. }
  400. return interceptor(ctx, in, info, handler)
  401. }
  402. func _Common_StreetCommittee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  403. in := new(v1.StreetCommitteeRequest)
  404. if err := dec(in); err != nil {
  405. return nil, err
  406. }
  407. if interceptor == nil {
  408. return srv.(CommonServer).StreetCommittee(ctx, in)
  409. }
  410. info := &grpc.UnaryServerInfo{
  411. Server: srv,
  412. FullMethod: "/pb.service.Common/StreetCommittee",
  413. }
  414. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  415. return srv.(CommonServer).StreetCommittee(ctx, req.(*v1.StreetCommitteeRequest))
  416. }
  417. return interceptor(ctx, in, info, handler)
  418. }
  419. func _Common_OssObjDelNotExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  420. in := new(v1.OssObjDelNotExistRequest)
  421. if err := dec(in); err != nil {
  422. return nil, err
  423. }
  424. if interceptor == nil {
  425. return srv.(CommonServer).OssObjDelNotExist(ctx, in)
  426. }
  427. info := &grpc.UnaryServerInfo{
  428. Server: srv,
  429. FullMethod: "/pb.service.Common/OssObjDelNotExist",
  430. }
  431. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  432. return srv.(CommonServer).OssObjDelNotExist(ctx, req.(*v1.OssObjDelNotExistRequest))
  433. }
  434. return interceptor(ctx, in, info, handler)
  435. }
  436. func _Common_OssObjAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  437. in := new(v1.OssObjAddRequest)
  438. if err := dec(in); err != nil {
  439. return nil, err
  440. }
  441. if interceptor == nil {
  442. return srv.(CommonServer).OssObjAdd(ctx, in)
  443. }
  444. info := &grpc.UnaryServerInfo{
  445. Server: srv,
  446. FullMethod: "/pb.service.Common/OssObjAdd",
  447. }
  448. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  449. return srv.(CommonServer).OssObjAdd(ctx, req.(*v1.OssObjAddRequest))
  450. }
  451. return interceptor(ctx, in, info, handler)
  452. }
  453. func _Common_ApplicationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  454. in := new(v1.ApplicationListRequest)
  455. if err := dec(in); err != nil {
  456. return nil, err
  457. }
  458. if interceptor == nil {
  459. return srv.(CommonServer).ApplicationList(ctx, in)
  460. }
  461. info := &grpc.UnaryServerInfo{
  462. Server: srv,
  463. FullMethod: "/pb.service.Common/ApplicationList",
  464. }
  465. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  466. return srv.(CommonServer).ApplicationList(ctx, req.(*v1.ApplicationListRequest))
  467. }
  468. return interceptor(ctx, in, info, handler)
  469. }
  470. func _Common_ApplicationPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  471. in := new(v1.ApplicationPermissionsRequest)
  472. if err := dec(in); err != nil {
  473. return nil, err
  474. }
  475. if interceptor == nil {
  476. return srv.(CommonServer).ApplicationPermissions(ctx, in)
  477. }
  478. info := &grpc.UnaryServerInfo{
  479. Server: srv,
  480. FullMethod: "/pb.service.Common/ApplicationPermissions",
  481. }
  482. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  483. return srv.(CommonServer).ApplicationPermissions(ctx, req.(*v1.ApplicationPermissionsRequest))
  484. }
  485. return interceptor(ctx, in, info, handler)
  486. }
  487. func _Common_ApplicationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  488. in := new(v1.ApplicationInfoRequest)
  489. if err := dec(in); err != nil {
  490. return nil, err
  491. }
  492. if interceptor == nil {
  493. return srv.(CommonServer).ApplicationInfo(ctx, in)
  494. }
  495. info := &grpc.UnaryServerInfo{
  496. Server: srv,
  497. FullMethod: "/pb.service.Common/ApplicationInfo",
  498. }
  499. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  500. return srv.(CommonServer).ApplicationInfo(ctx, req.(*v1.ApplicationInfoRequest))
  501. }
  502. return interceptor(ctx, in, info, handler)
  503. }
  504. func _Common_PackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  505. in := new(v1.PackageListRequest)
  506. if err := dec(in); err != nil {
  507. return nil, err
  508. }
  509. if interceptor == nil {
  510. return srv.(CommonServer).PackageList(ctx, in)
  511. }
  512. info := &grpc.UnaryServerInfo{
  513. Server: srv,
  514. FullMethod: "/pb.service.Common/PackageList",
  515. }
  516. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  517. return srv.(CommonServer).PackageList(ctx, req.(*v1.PackageListRequest))
  518. }
  519. return interceptor(ctx, in, info, handler)
  520. }
  521. func _Common_PackageInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  522. in := new(v1.PackageInfoRequest)
  523. if err := dec(in); err != nil {
  524. return nil, err
  525. }
  526. if interceptor == nil {
  527. return srv.(CommonServer).PackageInfo(ctx, in)
  528. }
  529. info := &grpc.UnaryServerInfo{
  530. Server: srv,
  531. FullMethod: "/pb.service.Common/PackageInfo",
  532. }
  533. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  534. return srv.(CommonServer).PackageInfo(ctx, req.(*v1.PackageInfoRequest))
  535. }
  536. return interceptor(ctx, in, info, handler)
  537. }
  538. func _Common_MsgPackageInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  539. in := new(v1.MsgPackageInfoRequest)
  540. if err := dec(in); err != nil {
  541. return nil, err
  542. }
  543. if interceptor == nil {
  544. return srv.(CommonServer).MsgPackageInfo(ctx, in)
  545. }
  546. info := &grpc.UnaryServerInfo{
  547. Server: srv,
  548. FullMethod: "/pb.service.Common/MsgPackageInfo",
  549. }
  550. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  551. return srv.(CommonServer).MsgPackageInfo(ctx, req.(*v1.MsgPackageInfoRequest))
  552. }
  553. return interceptor(ctx, in, info, handler)
  554. }
  555. var _Common_serviceDesc = grpc.ServiceDesc{
  556. ServiceName: "pb.service.Common",
  557. HandlerType: (*CommonServer)(nil),
  558. Methods: []grpc.MethodDesc{
  559. {
  560. MethodName: "SystemPermissionList",
  561. Handler: _Common_SystemPermissionList_Handler,
  562. },
  563. {
  564. MethodName: "SystemPermissionsNotTree",
  565. Handler: _Common_SystemPermissionsNotTree_Handler,
  566. },
  567. {
  568. MethodName: "SystemPermissionAdd",
  569. Handler: _Common_SystemPermissionAdd_Handler,
  570. },
  571. {
  572. MethodName: "SystemPermissionUpdate",
  573. Handler: _Common_SystemPermissionUpdate_Handler,
  574. },
  575. {
  576. MethodName: "SystemPermissionDel",
  577. Handler: _Common_SystemPermissionDel_Handler,
  578. },
  579. {
  580. MethodName: "ProvinceCityArea",
  581. Handler: _Common_ProvinceCityArea_Handler,
  582. },
  583. {
  584. MethodName: "StreetCommittee",
  585. Handler: _Common_StreetCommittee_Handler,
  586. },
  587. {
  588. MethodName: "OssObjDelNotExist",
  589. Handler: _Common_OssObjDelNotExist_Handler,
  590. },
  591. {
  592. MethodName: "OssObjAdd",
  593. Handler: _Common_OssObjAdd_Handler,
  594. },
  595. {
  596. MethodName: "ApplicationList",
  597. Handler: _Common_ApplicationList_Handler,
  598. },
  599. {
  600. MethodName: "ApplicationPermissions",
  601. Handler: _Common_ApplicationPermissions_Handler,
  602. },
  603. {
  604. MethodName: "ApplicationInfo",
  605. Handler: _Common_ApplicationInfo_Handler,
  606. },
  607. {
  608. MethodName: "PackageList",
  609. Handler: _Common_PackageList_Handler,
  610. },
  611. {
  612. MethodName: "PackageInfo",
  613. Handler: _Common_PackageInfo_Handler,
  614. },
  615. {
  616. MethodName: "MsgPackageInfo",
  617. Handler: _Common_MsgPackageInfo_Handler,
  618. },
  619. },
  620. Streams: []grpc.StreamDesc{},
  621. Metadata: "common_service.proto",
  622. }