common_service.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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-company-gateway/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. // 309 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x4e, 0x02, 0x31,
  30. 0x10, 0xc6, 0xbd, 0xc8, 0xa1, 0x1e, 0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 0x01, 0x46, 0xcf, 0xd7, 0x63, 0x4d, 0x10, 0xb4, 0x67,
  42. 0x51, 0xee, 0x9d, 0x0f, 0xa4, 0xbd, 0x40, 0x03, 0x80, 0xdf, 0x6f, 0x2c, 0x11, 0x01, 0x68, 0x3f,
  43. 0xfc, 0xc9, 0xdf, 0x3c, 0x18, 0x7b, 0x31, 0xfc, 0x23, 0x4c, 0xb5, 0xce, 0x25, 0x67, 0x18, 0xee,
  44. 0x23, 0x08, 0x1b, 0x79, 0x53, 0xf8, 0x0f, 0x7b, 0xe1, 0x84, 0x1c, 0xcc, 0x18, 0x7f, 0x65, 0x2b,
  45. 0xa8, 0x65, 0xa7, 0x61, 0xa1, 0xdf, 0x2c, 0x88, 0x4e, 0x36, 0xa1, 0x5a, 0x72, 0xd7, 0x7f, 0xea,
  46. 0x69, 0xa3, 0x34, 0x18, 0x74, 0x43, 0xae, 0x0a, 0xcd, 0x4a, 0x37, 0x5c, 0x31, 0x84, 0x0f, 0xe6,
  47. 0x46, 0x3a, 0xcb, 0x5a, 0xf5, 0xad, 0xdf, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x6a, 0xb6, 0x78,
  48. 0x13, 0x20, 0x03, 0x00, 0x00,
  49. }
  50. // Reference imports to suppress errors if they are not otherwise used.
  51. var _ context.Context
  52. var _ grpc.ClientConnInterface
  53. // This is a compile-time assertion to ensure that this generated file
  54. // is compatible with the grpc package it is being compiled against.
  55. const _ = grpc.SupportPackageIsVersion6
  56. // CommonClient is the client API for Common service.
  57. //
  58. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  59. type CommonClient interface {
  60. // 权限总列表
  61. SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error)
  62. // 添加权限节点
  63. SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error)
  64. // 更新权限节点
  65. SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error)
  66. // 删除权限节点
  67. SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error)
  68. // 省市区
  69. ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error)
  70. // 街道社区
  71. StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error)
  72. // 应用
  73. ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error)
  74. // 套餐
  75. PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error)
  76. }
  77. type commonClient struct {
  78. cc grpc.ClientConnInterface
  79. }
  80. func NewCommonClient(cc grpc.ClientConnInterface) CommonClient {
  81. return &commonClient{cc}
  82. }
  83. func (c *commonClient) SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) {
  84. out := new(v1.SystemPermissionListReply)
  85. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionList", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *commonClient) SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) {
  92. out := new(v1.SystemPermissionAddReply)
  93. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionAdd", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *commonClient) SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) {
  100. out := new(v1.SystemPermissionUpdateReply)
  101. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionUpdate", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *commonClient) SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) {
  108. out := new(v1.SystemPermissionDelReply)
  109. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionDel", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *commonClient) ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) {
  116. out := new(v1.ProvinceCityAreaReply)
  117. err := c.cc.Invoke(ctx, "/pb.service.Common/ProvinceCityArea", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *commonClient) StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) {
  124. out := new(v1.StreetCommitteeReply)
  125. err := c.cc.Invoke(ctx, "/pb.service.Common/StreetCommittee", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. func (c *commonClient) ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error) {
  132. out := new(v1.ApplicationListReply)
  133. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationList", in, out, opts...)
  134. if err != nil {
  135. return nil, err
  136. }
  137. return out, nil
  138. }
  139. func (c *commonClient) PackageList(ctx context.Context, in *v1.PackageListRequest, opts ...grpc.CallOption) (*v1.PackageListReply, error) {
  140. out := new(v1.PackageListReply)
  141. err := c.cc.Invoke(ctx, "/pb.service.Common/PackageList", in, out, opts...)
  142. if err != nil {
  143. return nil, err
  144. }
  145. return out, nil
  146. }
  147. // CommonServer is the server API for Common service.
  148. type CommonServer interface {
  149. // 权限总列表
  150. SystemPermissionList(context.Context, *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error)
  151. // 添加权限节点
  152. SystemPermissionAdd(context.Context, *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error)
  153. // 更新权限节点
  154. SystemPermissionUpdate(context.Context, *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error)
  155. // 删除权限节点
  156. SystemPermissionDel(context.Context, *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error)
  157. // 省市区
  158. ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error)
  159. // 街道社区
  160. StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error)
  161. // 应用
  162. ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error)
  163. // 套餐
  164. PackageList(context.Context, *v1.PackageListRequest) (*v1.PackageListReply, error)
  165. }
  166. // UnimplementedCommonServer can be embedded to have forward compatible implementations.
  167. type UnimplementedCommonServer struct {
  168. }
  169. func (*UnimplementedCommonServer) SystemPermissionList(ctx context.Context, req *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) {
  170. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionList not implemented")
  171. }
  172. func (*UnimplementedCommonServer) SystemPermissionAdd(ctx context.Context, req *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) {
  173. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionAdd not implemented")
  174. }
  175. func (*UnimplementedCommonServer) SystemPermissionUpdate(ctx context.Context, req *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) {
  176. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionUpdate not implemented")
  177. }
  178. func (*UnimplementedCommonServer) SystemPermissionDel(ctx context.Context, req *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) {
  179. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionDel not implemented")
  180. }
  181. func (*UnimplementedCommonServer) ProvinceCityArea(ctx context.Context, req *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) {
  182. return nil, status.Errorf(codes.Unimplemented, "method ProvinceCityArea not implemented")
  183. }
  184. func (*UnimplementedCommonServer) StreetCommittee(ctx context.Context, req *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) {
  185. return nil, status.Errorf(codes.Unimplemented, "method StreetCommittee not implemented")
  186. }
  187. func (*UnimplementedCommonServer) ApplicationList(ctx context.Context, req *v1.ApplicationListRequest) (*v1.ApplicationListReply, error) {
  188. return nil, status.Errorf(codes.Unimplemented, "method ApplicationList not implemented")
  189. }
  190. func (*UnimplementedCommonServer) PackageList(ctx context.Context, req *v1.PackageListRequest) (*v1.PackageListReply, error) {
  191. return nil, status.Errorf(codes.Unimplemented, "method PackageList not implemented")
  192. }
  193. func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
  194. s.RegisterService(&_Common_serviceDesc, srv)
  195. }
  196. func _Common_SystemPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  197. in := new(v1.SystemPermissionListRequest)
  198. if err := dec(in); err != nil {
  199. return nil, err
  200. }
  201. if interceptor == nil {
  202. return srv.(CommonServer).SystemPermissionList(ctx, in)
  203. }
  204. info := &grpc.UnaryServerInfo{
  205. Server: srv,
  206. FullMethod: "/pb.service.Common/SystemPermissionList",
  207. }
  208. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  209. return srv.(CommonServer).SystemPermissionList(ctx, req.(*v1.SystemPermissionListRequest))
  210. }
  211. return interceptor(ctx, in, info, handler)
  212. }
  213. func _Common_SystemPermissionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  214. in := new(v1.SystemPermissionAddRequest)
  215. if err := dec(in); err != nil {
  216. return nil, err
  217. }
  218. if interceptor == nil {
  219. return srv.(CommonServer).SystemPermissionAdd(ctx, in)
  220. }
  221. info := &grpc.UnaryServerInfo{
  222. Server: srv,
  223. FullMethod: "/pb.service.Common/SystemPermissionAdd",
  224. }
  225. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  226. return srv.(CommonServer).SystemPermissionAdd(ctx, req.(*v1.SystemPermissionAddRequest))
  227. }
  228. return interceptor(ctx, in, info, handler)
  229. }
  230. func _Common_SystemPermissionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  231. in := new(v1.SystemPermissionUpdateRequest)
  232. if err := dec(in); err != nil {
  233. return nil, err
  234. }
  235. if interceptor == nil {
  236. return srv.(CommonServer).SystemPermissionUpdate(ctx, in)
  237. }
  238. info := &grpc.UnaryServerInfo{
  239. Server: srv,
  240. FullMethod: "/pb.service.Common/SystemPermissionUpdate",
  241. }
  242. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  243. return srv.(CommonServer).SystemPermissionUpdate(ctx, req.(*v1.SystemPermissionUpdateRequest))
  244. }
  245. return interceptor(ctx, in, info, handler)
  246. }
  247. func _Common_SystemPermissionDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  248. in := new(v1.SystemPermissionDelRequest)
  249. if err := dec(in); err != nil {
  250. return nil, err
  251. }
  252. if interceptor == nil {
  253. return srv.(CommonServer).SystemPermissionDel(ctx, in)
  254. }
  255. info := &grpc.UnaryServerInfo{
  256. Server: srv,
  257. FullMethod: "/pb.service.Common/SystemPermissionDel",
  258. }
  259. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  260. return srv.(CommonServer).SystemPermissionDel(ctx, req.(*v1.SystemPermissionDelRequest))
  261. }
  262. return interceptor(ctx, in, info, handler)
  263. }
  264. func _Common_ProvinceCityArea_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  265. in := new(v1.ProvinceCityAreaRequest)
  266. if err := dec(in); err != nil {
  267. return nil, err
  268. }
  269. if interceptor == nil {
  270. return srv.(CommonServer).ProvinceCityArea(ctx, in)
  271. }
  272. info := &grpc.UnaryServerInfo{
  273. Server: srv,
  274. FullMethod: "/pb.service.Common/ProvinceCityArea",
  275. }
  276. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  277. return srv.(CommonServer).ProvinceCityArea(ctx, req.(*v1.ProvinceCityAreaRequest))
  278. }
  279. return interceptor(ctx, in, info, handler)
  280. }
  281. func _Common_StreetCommittee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  282. in := new(v1.StreetCommitteeRequest)
  283. if err := dec(in); err != nil {
  284. return nil, err
  285. }
  286. if interceptor == nil {
  287. return srv.(CommonServer).StreetCommittee(ctx, in)
  288. }
  289. info := &grpc.UnaryServerInfo{
  290. Server: srv,
  291. FullMethod: "/pb.service.Common/StreetCommittee",
  292. }
  293. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  294. return srv.(CommonServer).StreetCommittee(ctx, req.(*v1.StreetCommitteeRequest))
  295. }
  296. return interceptor(ctx, in, info, handler)
  297. }
  298. func _Common_ApplicationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  299. in := new(v1.ApplicationListRequest)
  300. if err := dec(in); err != nil {
  301. return nil, err
  302. }
  303. if interceptor == nil {
  304. return srv.(CommonServer).ApplicationList(ctx, in)
  305. }
  306. info := &grpc.UnaryServerInfo{
  307. Server: srv,
  308. FullMethod: "/pb.service.Common/ApplicationList",
  309. }
  310. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  311. return srv.(CommonServer).ApplicationList(ctx, req.(*v1.ApplicationListRequest))
  312. }
  313. return interceptor(ctx, in, info, handler)
  314. }
  315. func _Common_PackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  316. in := new(v1.PackageListRequest)
  317. if err := dec(in); err != nil {
  318. return nil, err
  319. }
  320. if interceptor == nil {
  321. return srv.(CommonServer).PackageList(ctx, in)
  322. }
  323. info := &grpc.UnaryServerInfo{
  324. Server: srv,
  325. FullMethod: "/pb.service.Common/PackageList",
  326. }
  327. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  328. return srv.(CommonServer).PackageList(ctx, req.(*v1.PackageListRequest))
  329. }
  330. return interceptor(ctx, in, info, handler)
  331. }
  332. var _Common_serviceDesc = grpc.ServiceDesc{
  333. ServiceName: "pb.service.Common",
  334. HandlerType: (*CommonServer)(nil),
  335. Methods: []grpc.MethodDesc{
  336. {
  337. MethodName: "SystemPermissionList",
  338. Handler: _Common_SystemPermissionList_Handler,
  339. },
  340. {
  341. MethodName: "SystemPermissionAdd",
  342. Handler: _Common_SystemPermissionAdd_Handler,
  343. },
  344. {
  345. MethodName: "SystemPermissionUpdate",
  346. Handler: _Common_SystemPermissionUpdate_Handler,
  347. },
  348. {
  349. MethodName: "SystemPermissionDel",
  350. Handler: _Common_SystemPermissionDel_Handler,
  351. },
  352. {
  353. MethodName: "ProvinceCityArea",
  354. Handler: _Common_ProvinceCityArea_Handler,
  355. },
  356. {
  357. MethodName: "StreetCommittee",
  358. Handler: _Common_StreetCommittee_Handler,
  359. },
  360. {
  361. MethodName: "ApplicationList",
  362. Handler: _Common_ApplicationList_Handler,
  363. },
  364. {
  365. MethodName: "PackageList",
  366. Handler: _Common_PackageList_Handler,
  367. },
  368. },
  369. Streams: []grpc.StreamDesc{},
  370. Metadata: "common_service.proto",
  371. }