common_service.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  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-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. // 393 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x51, 0x6f, 0xda, 0x30,
  30. 0x10, 0xc7, 0xf7, 0x30, 0xa1, 0xc9, 0x9a, 0x04, 0xf3, 0xd0, 0x84, 0xd8, 0x18, 0x1b, 0x9a, 0xf6,
  31. 0x46, 0x10, 0xed, 0x27, 0xa0, 0xd0, 0x4a, 0x95, 0x5a, 0x40, 0x50, 0x5e, 0x5a, 0xa9, 0x28, 0x21,
  32. 0xd7, 0x62, 0x94, 0xc4, 0xae, 0x7d, 0xa4, 0xcd, 0x17, 0xe9, 0xe7, 0xad, 0x12, 0xc7, 0x12, 0x04,
  33. 0x4c, 0x1e, 0x73, 0xbf, 0xdf, 0xfd, 0xcf, 0x17, 0xc5, 0x21, 0xf5, 0x15, 0x0f, 0x43, 0x1e, 0x2d,
  34. 0x15, 0xc8, 0x98, 0xad, 0xc0, 0x11, 0x92, 0x23, 0xa7, 0x44, 0x78, 0x4e, 0x5e, 0x69, 0x56, 0xe3,
  35. 0x7e, 0x4f, 0x4b, 0x1a, 0x9e, 0xbd, 0x7f, 0x21, 0x95, 0x61, 0x56, 0xa0, 0x8f, 0xa4, 0x3e, 0x4f,
  36. 0x14, 0x42, 0x38, 0x05, 0x19, 0x32, 0xa5, 0x18, 0x8f, 0x6e, 0x98, 0x42, 0xda, 0x71, 0x84, 0xb7,
  37. 0x8c, 0xfb, 0xce, 0x31, 0x38, 0x83, 0x97, 0x2d, 0x28, 0x6c, 0xfe, 0x39, 0xe9, 0x88, 0x20, 0xe9,
  38. 0x7c, 0xa2, 0x1b, 0xd2, 0x28, 0x62, 0x35, 0xe6, 0x78, 0x27, 0x01, 0xe8, 0x7f, 0x4b, 0xbf, 0x11,
  39. 0xcc, 0x9c, 0x7f, 0xa5, 0x9e, 0x9e, 0xf5, 0x40, 0xbe, 0x17, 0x95, 0x81, 0xef, 0xd3, 0xbf, 0x96,
  40. 0xf6, 0x81, 0xef, 0x9b, 0x09, 0xed, 0x53, 0x8a, 0x0e, 0xf7, 0xc9, 0x8f, 0x22, 0x5d, 0x08, 0xdf,
  41. 0x45, 0xa0, 0xb6, 0xe3, 0x69, 0x6c, 0x46, 0x74, 0x4a, 0x2c, 0xeb, 0x0a, 0x23, 0x08, 0xac, 0x2b,
  42. 0x8c, 0x20, 0x28, 0x5b, 0x21, 0x53, 0xac, 0x2b, 0xcc, 0xf8, 0x16, 0x41, 0x5a, 0x57, 0xd0, 0xb8,
  43. 0x6c, 0x05, 0x63, 0xe9, 0x29, 0x33, 0x52, 0x9b, 0x4a, 0x1e, 0xb3, 0x68, 0x05, 0x43, 0x86, 0xc9,
  44. 0x40, 0x82, 0x4b, 0x7f, 0xe7, 0x9d, 0x45, 0x60, 0x92, 0x7f, 0x59, 0xb9, 0xce, 0x9c, 0x90, 0xea,
  45. 0x1c, 0x25, 0x00, 0xa6, 0x5f, 0x2d, 0x43, 0x04, 0xa0, 0x2d, 0x73, 0x98, 0xfd, 0xba, 0x49, 0xfc,
  46. 0x69, 0xc3, 0x3a, 0xd0, 0x21, 0x9f, 0xd3, 0x19, 0x94, 0xe6, 0x5a, 0xfa, 0x60, 0x5a, 0x6b, 0x7b,
  47. 0x35, 0xed, 0x2f, 0xc8, 0xb7, 0x89, 0x52, 0x13, 0x6f, 0x33, 0x82, 0x60, 0xcc, 0xf1, 0xf2, 0x2d,
  48. 0xbd, 0x23, 0xe6, 0x95, 0x1f, 0x10, 0x93, 0xd4, 0xb2, 0x0b, 0x3a, 0xf6, 0x8a, 0x7c, 0xbd, 0x75,
  49. 0x11, 0x24, 0x73, 0x83, 0xeb, 0xe8, 0x89, 0xd3, 0x66, 0xde, 0xb0, 0x5b, 0x34, 0x61, 0x8d, 0xa3,
  50. 0xec, 0x20, 0x27, 0xbb, 0xbd, 0xc5, 0x9c, 0xdd, 0x5b, 0xdb, 0x38, 0xca, 0xb2, 0x9c, 0x8b, 0xf6,
  51. 0x7d, 0x4b, 0x48, 0x2e, 0x40, 0x62, 0xd2, 0x5d, 0xf3, 0xad, 0x82, 0x35, 0x0f, 0xfc, 0xee, 0xb3,
  52. 0x8b, 0xf0, 0xea, 0x26, 0x3d, 0xe1, 0x79, 0x95, 0xec, 0x07, 0x72, 0xfe, 0x11, 0x00, 0x00, 0xff,
  53. 0xff, 0xf9, 0x8b, 0xb1, 0x16, 0x75, 0x04, 0x00, 0x00,
  54. }
  55. // Reference imports to suppress errors if they are not otherwise used.
  56. var _ context.Context
  57. var _ grpc.ClientConnInterface
  58. // This is a compile-time assertion to ensure that this generated file
  59. // is compatible with the grpc package it is being compiled against.
  60. const _ = grpc.SupportPackageIsVersion6
  61. // CommonClient is the client API for Common service.
  62. //
  63. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  64. type CommonClient interface {
  65. // 权限总列表
  66. SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error)
  67. SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error)
  68. // 添加权限节点
  69. SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error)
  70. // 更新权限节点
  71. SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error)
  72. // 删除权限节点
  73. SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error)
  74. // 获取权限节点路由和方法
  75. SystemPermissionRouter(ctx context.Context, in *v1.SystemPermissionRouterRequest, opts ...grpc.CallOption) (*v1.SystemPermissionRouterReply, 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. City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, error)
  81. // 对象存储删除无用的数据
  82. OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error)
  83. // 素材
  84. MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error)
  85. MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error)
  86. }
  87. type commonClient struct {
  88. cc grpc.ClientConnInterface
  89. }
  90. func NewCommonClient(cc grpc.ClientConnInterface) CommonClient {
  91. return &commonClient{cc}
  92. }
  93. func (c *commonClient) SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) {
  94. out := new(v1.SystemPermissionListReply)
  95. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionList", in, out, opts...)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return out, nil
  100. }
  101. func (c *commonClient) SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error) {
  102. out := new(v1.SystemPermissionsNotTreeReply)
  103. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionsNotTree", in, out, opts...)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return out, nil
  108. }
  109. func (c *commonClient) SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) {
  110. out := new(v1.SystemPermissionAddReply)
  111. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionAdd", in, out, opts...)
  112. if err != nil {
  113. return nil, err
  114. }
  115. return out, nil
  116. }
  117. func (c *commonClient) SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) {
  118. out := new(v1.SystemPermissionUpdateReply)
  119. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionUpdate", in, out, opts...)
  120. if err != nil {
  121. return nil, err
  122. }
  123. return out, nil
  124. }
  125. func (c *commonClient) SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) {
  126. out := new(v1.SystemPermissionDelReply)
  127. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionDel", in, out, opts...)
  128. if err != nil {
  129. return nil, err
  130. }
  131. return out, nil
  132. }
  133. func (c *commonClient) SystemPermissionRouter(ctx context.Context, in *v1.SystemPermissionRouterRequest, opts ...grpc.CallOption) (*v1.SystemPermissionRouterReply, error) {
  134. out := new(v1.SystemPermissionRouterReply)
  135. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionRouter", in, out, opts...)
  136. if err != nil {
  137. return nil, err
  138. }
  139. return out, nil
  140. }
  141. func (c *commonClient) ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) {
  142. out := new(v1.ProvinceCityAreaReply)
  143. err := c.cc.Invoke(ctx, "/pb.service.Common/ProvinceCityArea", in, out, opts...)
  144. if err != nil {
  145. return nil, err
  146. }
  147. return out, nil
  148. }
  149. func (c *commonClient) StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) {
  150. out := new(v1.StreetCommitteeReply)
  151. err := c.cc.Invoke(ctx, "/pb.service.Common/StreetCommittee", in, out, opts...)
  152. if err != nil {
  153. return nil, err
  154. }
  155. return out, nil
  156. }
  157. func (c *commonClient) City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, error) {
  158. out := new(v1.CityReply)
  159. err := c.cc.Invoke(ctx, "/pb.service.Common/City", in, out, opts...)
  160. if err != nil {
  161. return nil, err
  162. }
  163. return out, nil
  164. }
  165. func (c *commonClient) OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) {
  166. out := new(v1.OssObjDelNotExistReply)
  167. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjDelNotExist", in, out, opts...)
  168. if err != nil {
  169. return nil, err
  170. }
  171. return out, nil
  172. }
  173. func (c *commonClient) MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error) {
  174. out := new(v1.MaterialInfoReply)
  175. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialInfo", in, out, opts...)
  176. if err != nil {
  177. return nil, err
  178. }
  179. return out, nil
  180. }
  181. func (c *commonClient) MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error) {
  182. out := new(v1.MaterialListReply)
  183. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialList", in, out, opts...)
  184. if err != nil {
  185. return nil, err
  186. }
  187. return out, nil
  188. }
  189. // CommonServer is the server API for Common service.
  190. type CommonServer interface {
  191. // 权限总列表
  192. SystemPermissionList(context.Context, *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error)
  193. SystemPermissionsNotTree(context.Context, *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error)
  194. // 添加权限节点
  195. SystemPermissionAdd(context.Context, *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error)
  196. // 更新权限节点
  197. SystemPermissionUpdate(context.Context, *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error)
  198. // 删除权限节点
  199. SystemPermissionDel(context.Context, *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error)
  200. // 获取权限节点路由和方法
  201. SystemPermissionRouter(context.Context, *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, error)
  202. // 省市区
  203. ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error)
  204. // 街道社区
  205. StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error)
  206. City(context.Context, *v1.CityRequest) (*v1.CityReply, error)
  207. // 对象存储删除无用的数据
  208. OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error)
  209. // 素材
  210. MaterialInfo(context.Context, *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error)
  211. MaterialList(context.Context, *v1.MaterialListRequest) (*v1.MaterialListReply, error)
  212. }
  213. // UnimplementedCommonServer can be embedded to have forward compatible implementations.
  214. type UnimplementedCommonServer struct {
  215. }
  216. func (*UnimplementedCommonServer) SystemPermissionList(ctx context.Context, req *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) {
  217. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionList not implemented")
  218. }
  219. func (*UnimplementedCommonServer) SystemPermissionsNotTree(ctx context.Context, req *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error) {
  220. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionsNotTree not implemented")
  221. }
  222. func (*UnimplementedCommonServer) SystemPermissionAdd(ctx context.Context, req *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) {
  223. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionAdd not implemented")
  224. }
  225. func (*UnimplementedCommonServer) SystemPermissionUpdate(ctx context.Context, req *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) {
  226. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionUpdate not implemented")
  227. }
  228. func (*UnimplementedCommonServer) SystemPermissionDel(ctx context.Context, req *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) {
  229. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionDel not implemented")
  230. }
  231. func (*UnimplementedCommonServer) SystemPermissionRouter(ctx context.Context, req *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, error) {
  232. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionRouter not implemented")
  233. }
  234. func (*UnimplementedCommonServer) ProvinceCityArea(ctx context.Context, req *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) {
  235. return nil, status.Errorf(codes.Unimplemented, "method ProvinceCityArea not implemented")
  236. }
  237. func (*UnimplementedCommonServer) StreetCommittee(ctx context.Context, req *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) {
  238. return nil, status.Errorf(codes.Unimplemented, "method StreetCommittee not implemented")
  239. }
  240. func (*UnimplementedCommonServer) City(ctx context.Context, req *v1.CityRequest) (*v1.CityReply, error) {
  241. return nil, status.Errorf(codes.Unimplemented, "method City not implemented")
  242. }
  243. func (*UnimplementedCommonServer) OssObjDelNotExist(ctx context.Context, req *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) {
  244. return nil, status.Errorf(codes.Unimplemented, "method OssObjDelNotExist not implemented")
  245. }
  246. func (*UnimplementedCommonServer) MaterialInfo(ctx context.Context, req *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error) {
  247. return nil, status.Errorf(codes.Unimplemented, "method MaterialInfo not implemented")
  248. }
  249. func (*UnimplementedCommonServer) MaterialList(ctx context.Context, req *v1.MaterialListRequest) (*v1.MaterialListReply, error) {
  250. return nil, status.Errorf(codes.Unimplemented, "method MaterialList not implemented")
  251. }
  252. func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
  253. s.RegisterService(&_Common_serviceDesc, srv)
  254. }
  255. func _Common_SystemPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  256. in := new(v1.SystemPermissionListRequest)
  257. if err := dec(in); err != nil {
  258. return nil, err
  259. }
  260. if interceptor == nil {
  261. return srv.(CommonServer).SystemPermissionList(ctx, in)
  262. }
  263. info := &grpc.UnaryServerInfo{
  264. Server: srv,
  265. FullMethod: "/pb.service.Common/SystemPermissionList",
  266. }
  267. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  268. return srv.(CommonServer).SystemPermissionList(ctx, req.(*v1.SystemPermissionListRequest))
  269. }
  270. return interceptor(ctx, in, info, handler)
  271. }
  272. func _Common_SystemPermissionsNotTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  273. in := new(v1.SystemPermissionsNotTreeRequest)
  274. if err := dec(in); err != nil {
  275. return nil, err
  276. }
  277. if interceptor == nil {
  278. return srv.(CommonServer).SystemPermissionsNotTree(ctx, in)
  279. }
  280. info := &grpc.UnaryServerInfo{
  281. Server: srv,
  282. FullMethod: "/pb.service.Common/SystemPermissionsNotTree",
  283. }
  284. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  285. return srv.(CommonServer).SystemPermissionsNotTree(ctx, req.(*v1.SystemPermissionsNotTreeRequest))
  286. }
  287. return interceptor(ctx, in, info, handler)
  288. }
  289. func _Common_SystemPermissionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  290. in := new(v1.SystemPermissionAddRequest)
  291. if err := dec(in); err != nil {
  292. return nil, err
  293. }
  294. if interceptor == nil {
  295. return srv.(CommonServer).SystemPermissionAdd(ctx, in)
  296. }
  297. info := &grpc.UnaryServerInfo{
  298. Server: srv,
  299. FullMethod: "/pb.service.Common/SystemPermissionAdd",
  300. }
  301. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  302. return srv.(CommonServer).SystemPermissionAdd(ctx, req.(*v1.SystemPermissionAddRequest))
  303. }
  304. return interceptor(ctx, in, info, handler)
  305. }
  306. func _Common_SystemPermissionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  307. in := new(v1.SystemPermissionUpdateRequest)
  308. if err := dec(in); err != nil {
  309. return nil, err
  310. }
  311. if interceptor == nil {
  312. return srv.(CommonServer).SystemPermissionUpdate(ctx, in)
  313. }
  314. info := &grpc.UnaryServerInfo{
  315. Server: srv,
  316. FullMethod: "/pb.service.Common/SystemPermissionUpdate",
  317. }
  318. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  319. return srv.(CommonServer).SystemPermissionUpdate(ctx, req.(*v1.SystemPermissionUpdateRequest))
  320. }
  321. return interceptor(ctx, in, info, handler)
  322. }
  323. func _Common_SystemPermissionDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  324. in := new(v1.SystemPermissionDelRequest)
  325. if err := dec(in); err != nil {
  326. return nil, err
  327. }
  328. if interceptor == nil {
  329. return srv.(CommonServer).SystemPermissionDel(ctx, in)
  330. }
  331. info := &grpc.UnaryServerInfo{
  332. Server: srv,
  333. FullMethod: "/pb.service.Common/SystemPermissionDel",
  334. }
  335. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  336. return srv.(CommonServer).SystemPermissionDel(ctx, req.(*v1.SystemPermissionDelRequest))
  337. }
  338. return interceptor(ctx, in, info, handler)
  339. }
  340. func _Common_SystemPermissionRouter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  341. in := new(v1.SystemPermissionRouterRequest)
  342. if err := dec(in); err != nil {
  343. return nil, err
  344. }
  345. if interceptor == nil {
  346. return srv.(CommonServer).SystemPermissionRouter(ctx, in)
  347. }
  348. info := &grpc.UnaryServerInfo{
  349. Server: srv,
  350. FullMethod: "/pb.service.Common/SystemPermissionRouter",
  351. }
  352. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  353. return srv.(CommonServer).SystemPermissionRouter(ctx, req.(*v1.SystemPermissionRouterRequest))
  354. }
  355. return interceptor(ctx, in, info, handler)
  356. }
  357. func _Common_ProvinceCityArea_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  358. in := new(v1.ProvinceCityAreaRequest)
  359. if err := dec(in); err != nil {
  360. return nil, err
  361. }
  362. if interceptor == nil {
  363. return srv.(CommonServer).ProvinceCityArea(ctx, in)
  364. }
  365. info := &grpc.UnaryServerInfo{
  366. Server: srv,
  367. FullMethod: "/pb.service.Common/ProvinceCityArea",
  368. }
  369. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  370. return srv.(CommonServer).ProvinceCityArea(ctx, req.(*v1.ProvinceCityAreaRequest))
  371. }
  372. return interceptor(ctx, in, info, handler)
  373. }
  374. func _Common_StreetCommittee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  375. in := new(v1.StreetCommitteeRequest)
  376. if err := dec(in); err != nil {
  377. return nil, err
  378. }
  379. if interceptor == nil {
  380. return srv.(CommonServer).StreetCommittee(ctx, in)
  381. }
  382. info := &grpc.UnaryServerInfo{
  383. Server: srv,
  384. FullMethod: "/pb.service.Common/StreetCommittee",
  385. }
  386. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  387. return srv.(CommonServer).StreetCommittee(ctx, req.(*v1.StreetCommitteeRequest))
  388. }
  389. return interceptor(ctx, in, info, handler)
  390. }
  391. func _Common_City_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  392. in := new(v1.CityRequest)
  393. if err := dec(in); err != nil {
  394. return nil, err
  395. }
  396. if interceptor == nil {
  397. return srv.(CommonServer).City(ctx, in)
  398. }
  399. info := &grpc.UnaryServerInfo{
  400. Server: srv,
  401. FullMethod: "/pb.service.Common/City",
  402. }
  403. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  404. return srv.(CommonServer).City(ctx, req.(*v1.CityRequest))
  405. }
  406. return interceptor(ctx, in, info, handler)
  407. }
  408. func _Common_OssObjDelNotExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  409. in := new(v1.OssObjDelNotExistRequest)
  410. if err := dec(in); err != nil {
  411. return nil, err
  412. }
  413. if interceptor == nil {
  414. return srv.(CommonServer).OssObjDelNotExist(ctx, in)
  415. }
  416. info := &grpc.UnaryServerInfo{
  417. Server: srv,
  418. FullMethod: "/pb.service.Common/OssObjDelNotExist",
  419. }
  420. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  421. return srv.(CommonServer).OssObjDelNotExist(ctx, req.(*v1.OssObjDelNotExistRequest))
  422. }
  423. return interceptor(ctx, in, info, handler)
  424. }
  425. func _Common_MaterialInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  426. in := new(v1.MaterialInfoRequest)
  427. if err := dec(in); err != nil {
  428. return nil, err
  429. }
  430. if interceptor == nil {
  431. return srv.(CommonServer).MaterialInfo(ctx, in)
  432. }
  433. info := &grpc.UnaryServerInfo{
  434. Server: srv,
  435. FullMethod: "/pb.service.Common/MaterialInfo",
  436. }
  437. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  438. return srv.(CommonServer).MaterialInfo(ctx, req.(*v1.MaterialInfoRequest))
  439. }
  440. return interceptor(ctx, in, info, handler)
  441. }
  442. func _Common_MaterialList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  443. in := new(v1.MaterialListRequest)
  444. if err := dec(in); err != nil {
  445. return nil, err
  446. }
  447. if interceptor == nil {
  448. return srv.(CommonServer).MaterialList(ctx, in)
  449. }
  450. info := &grpc.UnaryServerInfo{
  451. Server: srv,
  452. FullMethod: "/pb.service.Common/MaterialList",
  453. }
  454. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  455. return srv.(CommonServer).MaterialList(ctx, req.(*v1.MaterialListRequest))
  456. }
  457. return interceptor(ctx, in, info, handler)
  458. }
  459. var _Common_serviceDesc = grpc.ServiceDesc{
  460. ServiceName: "pb.service.Common",
  461. HandlerType: (*CommonServer)(nil),
  462. Methods: []grpc.MethodDesc{
  463. {
  464. MethodName: "SystemPermissionList",
  465. Handler: _Common_SystemPermissionList_Handler,
  466. },
  467. {
  468. MethodName: "SystemPermissionsNotTree",
  469. Handler: _Common_SystemPermissionsNotTree_Handler,
  470. },
  471. {
  472. MethodName: "SystemPermissionAdd",
  473. Handler: _Common_SystemPermissionAdd_Handler,
  474. },
  475. {
  476. MethodName: "SystemPermissionUpdate",
  477. Handler: _Common_SystemPermissionUpdate_Handler,
  478. },
  479. {
  480. MethodName: "SystemPermissionDel",
  481. Handler: _Common_SystemPermissionDel_Handler,
  482. },
  483. {
  484. MethodName: "SystemPermissionRouter",
  485. Handler: _Common_SystemPermissionRouter_Handler,
  486. },
  487. {
  488. MethodName: "ProvinceCityArea",
  489. Handler: _Common_ProvinceCityArea_Handler,
  490. },
  491. {
  492. MethodName: "StreetCommittee",
  493. Handler: _Common_StreetCommittee_Handler,
  494. },
  495. {
  496. MethodName: "City",
  497. Handler: _Common_City_Handler,
  498. },
  499. {
  500. MethodName: "OssObjDelNotExist",
  501. Handler: _Common_OssObjDelNotExist_Handler,
  502. },
  503. {
  504. MethodName: "MaterialInfo",
  505. Handler: _Common_MaterialInfo_Handler,
  506. },
  507. {
  508. MethodName: "MaterialList",
  509. Handler: _Common_MaterialList_Handler,
  510. },
  511. },
  512. Streams: []grpc.StreamDesc{},
  513. Metadata: "common_service.proto",
  514. }