common_service.pb.go 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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-household/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. // 233 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x4d, 0x4b, 0xc4, 0x30,
  30. 0x10, 0x86, 0xc5, 0xc3, 0xa2, 0xb9, 0x88, 0x61, 0x3f, 0x60, 0x41, 0x84, 0xc5, 0xab, 0x59, 0x56,
  31. 0x6f, 0x82, 0x87, 0xf5, 0xe3, 0x6a, 0x4b, 0xc5, 0x8b, 0x97, 0x42, 0x9a, 0x81, 0x46, 0x9a, 0x4e,
  32. 0xcc, 0xa4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0x9b, 0x79, 0x75, 0x97, 0x01, 0x00, 0x00,
  44. }
  45. // Reference imports to suppress errors if they are not otherwise used.
  46. var _ context.Context
  47. var _ grpc.ClientConnInterface
  48. // This is a compile-time assertion to ensure that this generated file
  49. // is compatible with the grpc package it is being compiled against.
  50. const _ = grpc.SupportPackageIsVersion6
  51. // CommonClient is the client API for Common service.
  52. //
  53. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  54. type CommonClient interface {
  55. //
  56. Province(ctx context.Context, in *v1.ProvinceRequest, opts ...grpc.CallOption) (*v1.ProvinceReply, error)
  57. // 获取权限节点路由和方法对应的code
  58. SystemPermissionRouter(ctx context.Context, in *v1.SystemPermissionRouterRequest, opts ...grpc.CallOption) (*v1.SystemPermissionRouterReply, error)
  59. // 对象存储删除无用的数据
  60. OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error)
  61. // 对象存储添加到公共区
  62. OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error)
  63. }
  64. type commonClient struct {
  65. cc grpc.ClientConnInterface
  66. }
  67. func NewCommonClient(cc grpc.ClientConnInterface) CommonClient {
  68. return &commonClient{cc}
  69. }
  70. func (c *commonClient) Province(ctx context.Context, in *v1.ProvinceRequest, opts ...grpc.CallOption) (*v1.ProvinceReply, error) {
  71. out := new(v1.ProvinceReply)
  72. err := c.cc.Invoke(ctx, "/pb.service.Common/Province", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *commonClient) SystemPermissionRouter(ctx context.Context, in *v1.SystemPermissionRouterRequest, opts ...grpc.CallOption) (*v1.SystemPermissionRouterReply, error) {
  79. out := new(v1.SystemPermissionRouterReply)
  80. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionRouter", in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *commonClient) OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) {
  87. out := new(v1.OssObjDelNotExistReply)
  88. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjDelNotExist", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *commonClient) OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error) {
  95. out := new(v1.OssObjAddReply)
  96. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjAdd", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. // CommonServer is the server API for Common service.
  103. type CommonServer interface {
  104. //
  105. Province(context.Context, *v1.ProvinceRequest) (*v1.ProvinceReply, error)
  106. // 获取权限节点路由和方法对应的code
  107. SystemPermissionRouter(context.Context, *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, error)
  108. // 对象存储删除无用的数据
  109. OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error)
  110. // 对象存储添加到公共区
  111. OssObjAdd(context.Context, *v1.OssObjAddRequest) (*v1.OssObjAddReply, error)
  112. }
  113. // UnimplementedCommonServer can be embedded to have forward compatible implementations.
  114. type UnimplementedCommonServer struct {
  115. }
  116. func (*UnimplementedCommonServer) Province(ctx context.Context, req *v1.ProvinceRequest) (*v1.ProvinceReply, error) {
  117. return nil, status.Errorf(codes.Unimplemented, "method Province not implemented")
  118. }
  119. func (*UnimplementedCommonServer) SystemPermissionRouter(ctx context.Context, req *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, error) {
  120. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionRouter not implemented")
  121. }
  122. func (*UnimplementedCommonServer) OssObjDelNotExist(ctx context.Context, req *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) {
  123. return nil, status.Errorf(codes.Unimplemented, "method OssObjDelNotExist not implemented")
  124. }
  125. func (*UnimplementedCommonServer) OssObjAdd(ctx context.Context, req *v1.OssObjAddRequest) (*v1.OssObjAddReply, error) {
  126. return nil, status.Errorf(codes.Unimplemented, "method OssObjAdd not implemented")
  127. }
  128. func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
  129. s.RegisterService(&_Common_serviceDesc, srv)
  130. }
  131. func _Common_Province_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  132. in := new(v1.ProvinceRequest)
  133. if err := dec(in); err != nil {
  134. return nil, err
  135. }
  136. if interceptor == nil {
  137. return srv.(CommonServer).Province(ctx, in)
  138. }
  139. info := &grpc.UnaryServerInfo{
  140. Server: srv,
  141. FullMethod: "/pb.service.Common/Province",
  142. }
  143. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  144. return srv.(CommonServer).Province(ctx, req.(*v1.ProvinceRequest))
  145. }
  146. return interceptor(ctx, in, info, handler)
  147. }
  148. func _Common_SystemPermissionRouter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  149. in := new(v1.SystemPermissionRouterRequest)
  150. if err := dec(in); err != nil {
  151. return nil, err
  152. }
  153. if interceptor == nil {
  154. return srv.(CommonServer).SystemPermissionRouter(ctx, in)
  155. }
  156. info := &grpc.UnaryServerInfo{
  157. Server: srv,
  158. FullMethod: "/pb.service.Common/SystemPermissionRouter",
  159. }
  160. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  161. return srv.(CommonServer).SystemPermissionRouter(ctx, req.(*v1.SystemPermissionRouterRequest))
  162. }
  163. return interceptor(ctx, in, info, handler)
  164. }
  165. func _Common_OssObjDelNotExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  166. in := new(v1.OssObjDelNotExistRequest)
  167. if err := dec(in); err != nil {
  168. return nil, err
  169. }
  170. if interceptor == nil {
  171. return srv.(CommonServer).OssObjDelNotExist(ctx, in)
  172. }
  173. info := &grpc.UnaryServerInfo{
  174. Server: srv,
  175. FullMethod: "/pb.service.Common/OssObjDelNotExist",
  176. }
  177. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  178. return srv.(CommonServer).OssObjDelNotExist(ctx, req.(*v1.OssObjDelNotExistRequest))
  179. }
  180. return interceptor(ctx, in, info, handler)
  181. }
  182. func _Common_OssObjAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  183. in := new(v1.OssObjAddRequest)
  184. if err := dec(in); err != nil {
  185. return nil, err
  186. }
  187. if interceptor == nil {
  188. return srv.(CommonServer).OssObjAdd(ctx, in)
  189. }
  190. info := &grpc.UnaryServerInfo{
  191. Server: srv,
  192. FullMethod: "/pb.service.Common/OssObjAdd",
  193. }
  194. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  195. return srv.(CommonServer).OssObjAdd(ctx, req.(*v1.OssObjAddRequest))
  196. }
  197. return interceptor(ctx, in, info, handler)
  198. }
  199. var _Common_serviceDesc = grpc.ServiceDesc{
  200. ServiceName: "pb.service.Common",
  201. HandlerType: (*CommonServer)(nil),
  202. Methods: []grpc.MethodDesc{
  203. {
  204. MethodName: "Province",
  205. Handler: _Common_Province_Handler,
  206. },
  207. {
  208. MethodName: "SystemPermissionRouter",
  209. Handler: _Common_SystemPermissionRouter_Handler,
  210. },
  211. {
  212. MethodName: "OssObjDelNotExist",
  213. Handler: _Common_OssObjDelNotExist_Handler,
  214. },
  215. {
  216. MethodName: "OssObjAdd",
  217. Handler: _Common_OssObjAdd_Handler,
  218. },
  219. },
  220. Streams: []grpc.StreamDesc{},
  221. Metadata: "common_service.proto",
  222. }