common_service.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  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-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. // 392 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x41, 0x6f, 0xda, 0x30,
  30. 0x18, 0x86, 0x77, 0x62, 0x9a, 0x35, 0x8d, 0xcd, 0x63, 0x1b, 0xca, 0x60, 0x6b, 0x51, 0xaf, 0x04,
  31. 0xd1, 0x9e, 0x7b, 0x48, 0xa1, 0x95, 0x2a, 0x41, 0x41, 0x20, 0x2e, 0xad, 0x54, 0xe4, 0x24, 0x5f,
  32. 0x91, 0xdb, 0x24, 0x76, 0x6d, 0x37, 0x6d, 0xfe, 0x76, 0x7f, 0x41, 0x45, 0x8c, 0x11, 0x24, 0x18,
  33. 0xae, 0xdf, 0xf3, 0xfa, 0xb1, 0x5f, 0xf8, 0x14, 0x54, 0x0b, 0x58, 0x1c, 0xb3, 0x64, 0x2e, 0x41,
  34. 0xa4, 0x34, 0x00, 0x97, 0x0b, 0xa6, 0x18, 0x46, 0xdc, 0x77, 0x57, 0x13, 0xa7, 0x9a, 0x76, 0x3b,
  35. 0x3a, 0xa4, 0xe1, 0xe9, 0xfb, 0x67, 0x54, 0xe9, 0xe5, 0x03, 0x7c, 0x8f, 0x6a, 0xd3, 0x4c, 0x2a,
  36. 0x88, 0xc7, 0x20, 0x62, 0x2a, 0x25, 0x65, 0xc9, 0x80, 0x4a, 0x85, 0x5b, 0x2e, 0xf7, 0xe7, 0x69,
  37. 0xd7, 0xdd, 0x05, 0x27, 0xf0, 0xfc, 0x02, 0x52, 0x39, 0x47, 0x7b, 0x33, 0x3c, 0xca, 0x5a, 0x9f,
  38. 0xf0, 0x1d, 0xfa, 0x59, 0xc4, 0x5e, 0x18, 0xe2, 0x63, 0xcb, 0x51, 0x2f, 0x0c, 0x8d, 0xfd, 0xff,
  39. 0xbe, 0x88, 0x96, 0x87, 0xe8, 0x77, 0x91, 0xce, 0x78, 0x48, 0x14, 0xe0, 0x13, 0xcb, 0x61, 0x8d,
  40. 0xcd, 0x15, 0xad, 0x03, 0x29, 0x6b, 0x85, 0x3e, 0x44, 0xd6, 0x0a, 0x7d, 0x88, 0x0e, 0x55, 0xc8,
  41. 0x23, 0x5a, 0x3e, 0x41, 0xdf, 0xc7, 0x82, 0xa5, 0x34, 0x09, 0xa0, 0x47, 0x55, 0xe6, 0x09, 0x20,
  42. 0xf8, 0xdf, 0xea, 0x58, 0x11, 0x18, 0x6d, 0xc3, 0xca, 0xb5, 0x73, 0x84, 0xaa, 0x53, 0x25, 0x00,
  43. 0xd4, 0xf2, 0x3f, 0xa6, 0x4a, 0x01, 0xe0, 0xa6, 0x79, 0xc9, 0xf6, 0xdc, 0x18, 0xff, 0xda, 0xb0,
  44. 0x16, 0xce, 0xd0, 0x8f, 0x91, 0x94, 0x23, 0xff, 0xb1, 0x0f, 0xd1, 0x0d, 0x53, 0x97, 0x6f, 0xcb,
  45. 0x0d, 0x31, 0xe5, 0x4a, 0xc4, 0x48, 0x9b, 0xf6, 0x80, 0xd6, 0x9e, 0xa3, 0x2f, 0x9a, 0x2d, 0x37,
  46. 0xe2, 0xcf, 0x56, 0x7a, 0x63, 0x0f, 0x7e, 0x95, 0xc1, 0xba, 0xa6, 0xc7, 0x79, 0x44, 0x03, 0xa2,
  47. 0xcc, 0xd6, 0x9a, 0x2b, 0x0b, 0xf3, 0x62, 0xcd, 0x12, 0xd6, 0xc2, 0x01, 0xfa, 0x36, 0x94, 0x8b,
  48. 0x31, 0x09, 0x9e, 0xc8, 0x02, 0x72, 0x9f, 0xf9, 0xa5, 0xb7, 0xc7, 0x46, 0xe7, 0x58, 0xa8, 0xb6,
  49. 0x5d, 0xa1, 0xaf, 0x43, 0xa2, 0x40, 0x50, 0x12, 0x5d, 0x27, 0x0f, 0x0c, 0xaf, 0xd3, 0x1b, 0x43,
  50. 0x63, 0xaa, 0xef, 0x64, 0x25, 0x4f, 0xfe, 0xa6, 0xa2, 0x67, 0xf3, 0x45, 0xf5, 0x9d, 0x2c, 0xf7,
  51. 0x5c, 0x34, 0x6e, 0x1d, 0x2e, 0x18, 0x07, 0xa1, 0xb2, 0xb6, 0xcc, 0x17, 0xb2, 0xbd, 0x20, 0x0a,
  52. 0x5e, 0x49, 0xd6, 0xe1, 0xbe, 0x5f, 0xc9, 0xbf, 0x0c, 0x67, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff,
  53. 0x52, 0x7b, 0x2a, 0x57, 0x4e, 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. // 添加权限节点
  68. SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error)
  69. // 更新权限节点
  70. SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error)
  71. // 删除权限节点
  72. SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error)
  73. // 省市区
  74. ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error)
  75. // 街道社区
  76. StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error)
  77. // 对象存储删除无用的数据
  78. OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error)
  79. // 对象存储添加到公共区
  80. OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error)
  81. // 应用
  82. ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error)
  83. // 短信套餐
  84. MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error)
  85. MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error)
  86. MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error)
  87. }
  88. type commonClient struct {
  89. cc grpc.ClientConnInterface
  90. }
  91. func NewCommonClient(cc grpc.ClientConnInterface) CommonClient {
  92. return &commonClient{cc}
  93. }
  94. func (c *commonClient) SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) {
  95. out := new(v1.SystemPermissionListReply)
  96. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionList", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *commonClient) SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) {
  103. out := new(v1.SystemPermissionAddReply)
  104. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionAdd", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *commonClient) SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) {
  111. out := new(v1.SystemPermissionUpdateReply)
  112. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionUpdate", in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *commonClient) SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) {
  119. out := new(v1.SystemPermissionDelReply)
  120. err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionDel", in, out, opts...)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return out, nil
  125. }
  126. func (c *commonClient) ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) {
  127. out := new(v1.ProvinceCityAreaReply)
  128. err := c.cc.Invoke(ctx, "/pb.service.Common/ProvinceCityArea", in, out, opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. return out, nil
  133. }
  134. func (c *commonClient) StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) {
  135. out := new(v1.StreetCommitteeReply)
  136. err := c.cc.Invoke(ctx, "/pb.service.Common/StreetCommittee", in, out, opts...)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return out, nil
  141. }
  142. func (c *commonClient) OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) {
  143. out := new(v1.OssObjDelNotExistReply)
  144. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjDelNotExist", in, out, opts...)
  145. if err != nil {
  146. return nil, err
  147. }
  148. return out, nil
  149. }
  150. func (c *commonClient) OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error) {
  151. out := new(v1.OssObjAddReply)
  152. err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjAdd", in, out, opts...)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return out, nil
  157. }
  158. func (c *commonClient) ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error) {
  159. out := new(v1.ApplicationListReply)
  160. err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationList", in, out, opts...)
  161. if err != nil {
  162. return nil, err
  163. }
  164. return out, nil
  165. }
  166. func (c *commonClient) MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error) {
  167. out := new(v1.MsgPackageListReply)
  168. err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageList", in, out, opts...)
  169. if err != nil {
  170. return nil, err
  171. }
  172. return out, nil
  173. }
  174. func (c *commonClient) MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error) {
  175. out := new(v1.MaterialInfoReply)
  176. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialInfo", in, out, opts...)
  177. if err != nil {
  178. return nil, err
  179. }
  180. return out, nil
  181. }
  182. func (c *commonClient) MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error) {
  183. out := new(v1.MaterialListReply)
  184. err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialList", in, out, opts...)
  185. if err != nil {
  186. return nil, err
  187. }
  188. return out, nil
  189. }
  190. // CommonServer is the server API for Common service.
  191. type CommonServer interface {
  192. // 权限总列表
  193. SystemPermissionList(context.Context, *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, 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. ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error)
  202. // 街道社区
  203. StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error)
  204. // 对象存储删除无用的数据
  205. OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error)
  206. // 对象存储添加到公共区
  207. OssObjAdd(context.Context, *v1.OssObjAddRequest) (*v1.OssObjAddReply, error)
  208. // 应用
  209. ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error)
  210. // 短信套餐
  211. MsgPackageList(context.Context, *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error)
  212. MaterialInfo(context.Context, *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error)
  213. MaterialList(context.Context, *v1.MaterialListRequest) (*v1.MaterialListReply, error)
  214. }
  215. // UnimplementedCommonServer can be embedded to have forward compatible implementations.
  216. type UnimplementedCommonServer struct {
  217. }
  218. func (*UnimplementedCommonServer) SystemPermissionList(ctx context.Context, req *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) {
  219. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionList not implemented")
  220. }
  221. func (*UnimplementedCommonServer) SystemPermissionAdd(ctx context.Context, req *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) {
  222. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionAdd not implemented")
  223. }
  224. func (*UnimplementedCommonServer) SystemPermissionUpdate(ctx context.Context, req *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) {
  225. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionUpdate not implemented")
  226. }
  227. func (*UnimplementedCommonServer) SystemPermissionDel(ctx context.Context, req *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) {
  228. return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionDel not implemented")
  229. }
  230. func (*UnimplementedCommonServer) ProvinceCityArea(ctx context.Context, req *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) {
  231. return nil, status.Errorf(codes.Unimplemented, "method ProvinceCityArea not implemented")
  232. }
  233. func (*UnimplementedCommonServer) StreetCommittee(ctx context.Context, req *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) {
  234. return nil, status.Errorf(codes.Unimplemented, "method StreetCommittee not implemented")
  235. }
  236. func (*UnimplementedCommonServer) OssObjDelNotExist(ctx context.Context, req *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) {
  237. return nil, status.Errorf(codes.Unimplemented, "method OssObjDelNotExist not implemented")
  238. }
  239. func (*UnimplementedCommonServer) OssObjAdd(ctx context.Context, req *v1.OssObjAddRequest) (*v1.OssObjAddReply, error) {
  240. return nil, status.Errorf(codes.Unimplemented, "method OssObjAdd not implemented")
  241. }
  242. func (*UnimplementedCommonServer) ApplicationList(ctx context.Context, req *v1.ApplicationListRequest) (*v1.ApplicationListReply, error) {
  243. return nil, status.Errorf(codes.Unimplemented, "method ApplicationList not implemented")
  244. }
  245. func (*UnimplementedCommonServer) MsgPackageList(ctx context.Context, req *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error) {
  246. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageList not implemented")
  247. }
  248. func (*UnimplementedCommonServer) MaterialInfo(ctx context.Context, req *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error) {
  249. return nil, status.Errorf(codes.Unimplemented, "method MaterialInfo not implemented")
  250. }
  251. func (*UnimplementedCommonServer) MaterialList(ctx context.Context, req *v1.MaterialListRequest) (*v1.MaterialListReply, error) {
  252. return nil, status.Errorf(codes.Unimplemented, "method MaterialList not implemented")
  253. }
  254. func RegisterCommonServer(s *grpc.Server, srv CommonServer) {
  255. s.RegisterService(&_Common_serviceDesc, srv)
  256. }
  257. func _Common_SystemPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  258. in := new(v1.SystemPermissionListRequest)
  259. if err := dec(in); err != nil {
  260. return nil, err
  261. }
  262. if interceptor == nil {
  263. return srv.(CommonServer).SystemPermissionList(ctx, in)
  264. }
  265. info := &grpc.UnaryServerInfo{
  266. Server: srv,
  267. FullMethod: "/pb.service.Common/SystemPermissionList",
  268. }
  269. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  270. return srv.(CommonServer).SystemPermissionList(ctx, req.(*v1.SystemPermissionListRequest))
  271. }
  272. return interceptor(ctx, in, info, handler)
  273. }
  274. func _Common_SystemPermissionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  275. in := new(v1.SystemPermissionAddRequest)
  276. if err := dec(in); err != nil {
  277. return nil, err
  278. }
  279. if interceptor == nil {
  280. return srv.(CommonServer).SystemPermissionAdd(ctx, in)
  281. }
  282. info := &grpc.UnaryServerInfo{
  283. Server: srv,
  284. FullMethod: "/pb.service.Common/SystemPermissionAdd",
  285. }
  286. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  287. return srv.(CommonServer).SystemPermissionAdd(ctx, req.(*v1.SystemPermissionAddRequest))
  288. }
  289. return interceptor(ctx, in, info, handler)
  290. }
  291. func _Common_SystemPermissionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  292. in := new(v1.SystemPermissionUpdateRequest)
  293. if err := dec(in); err != nil {
  294. return nil, err
  295. }
  296. if interceptor == nil {
  297. return srv.(CommonServer).SystemPermissionUpdate(ctx, in)
  298. }
  299. info := &grpc.UnaryServerInfo{
  300. Server: srv,
  301. FullMethod: "/pb.service.Common/SystemPermissionUpdate",
  302. }
  303. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  304. return srv.(CommonServer).SystemPermissionUpdate(ctx, req.(*v1.SystemPermissionUpdateRequest))
  305. }
  306. return interceptor(ctx, in, info, handler)
  307. }
  308. func _Common_SystemPermissionDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  309. in := new(v1.SystemPermissionDelRequest)
  310. if err := dec(in); err != nil {
  311. return nil, err
  312. }
  313. if interceptor == nil {
  314. return srv.(CommonServer).SystemPermissionDel(ctx, in)
  315. }
  316. info := &grpc.UnaryServerInfo{
  317. Server: srv,
  318. FullMethod: "/pb.service.Common/SystemPermissionDel",
  319. }
  320. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  321. return srv.(CommonServer).SystemPermissionDel(ctx, req.(*v1.SystemPermissionDelRequest))
  322. }
  323. return interceptor(ctx, in, info, handler)
  324. }
  325. func _Common_ProvinceCityArea_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  326. in := new(v1.ProvinceCityAreaRequest)
  327. if err := dec(in); err != nil {
  328. return nil, err
  329. }
  330. if interceptor == nil {
  331. return srv.(CommonServer).ProvinceCityArea(ctx, in)
  332. }
  333. info := &grpc.UnaryServerInfo{
  334. Server: srv,
  335. FullMethod: "/pb.service.Common/ProvinceCityArea",
  336. }
  337. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  338. return srv.(CommonServer).ProvinceCityArea(ctx, req.(*v1.ProvinceCityAreaRequest))
  339. }
  340. return interceptor(ctx, in, info, handler)
  341. }
  342. func _Common_StreetCommittee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  343. in := new(v1.StreetCommitteeRequest)
  344. if err := dec(in); err != nil {
  345. return nil, err
  346. }
  347. if interceptor == nil {
  348. return srv.(CommonServer).StreetCommittee(ctx, in)
  349. }
  350. info := &grpc.UnaryServerInfo{
  351. Server: srv,
  352. FullMethod: "/pb.service.Common/StreetCommittee",
  353. }
  354. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  355. return srv.(CommonServer).StreetCommittee(ctx, req.(*v1.StreetCommitteeRequest))
  356. }
  357. return interceptor(ctx, in, info, handler)
  358. }
  359. func _Common_OssObjDelNotExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  360. in := new(v1.OssObjDelNotExistRequest)
  361. if err := dec(in); err != nil {
  362. return nil, err
  363. }
  364. if interceptor == nil {
  365. return srv.(CommonServer).OssObjDelNotExist(ctx, in)
  366. }
  367. info := &grpc.UnaryServerInfo{
  368. Server: srv,
  369. FullMethod: "/pb.service.Common/OssObjDelNotExist",
  370. }
  371. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  372. return srv.(CommonServer).OssObjDelNotExist(ctx, req.(*v1.OssObjDelNotExistRequest))
  373. }
  374. return interceptor(ctx, in, info, handler)
  375. }
  376. func _Common_OssObjAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  377. in := new(v1.OssObjAddRequest)
  378. if err := dec(in); err != nil {
  379. return nil, err
  380. }
  381. if interceptor == nil {
  382. return srv.(CommonServer).OssObjAdd(ctx, in)
  383. }
  384. info := &grpc.UnaryServerInfo{
  385. Server: srv,
  386. FullMethod: "/pb.service.Common/OssObjAdd",
  387. }
  388. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  389. return srv.(CommonServer).OssObjAdd(ctx, req.(*v1.OssObjAddRequest))
  390. }
  391. return interceptor(ctx, in, info, handler)
  392. }
  393. func _Common_ApplicationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  394. in := new(v1.ApplicationListRequest)
  395. if err := dec(in); err != nil {
  396. return nil, err
  397. }
  398. if interceptor == nil {
  399. return srv.(CommonServer).ApplicationList(ctx, in)
  400. }
  401. info := &grpc.UnaryServerInfo{
  402. Server: srv,
  403. FullMethod: "/pb.service.Common/ApplicationList",
  404. }
  405. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  406. return srv.(CommonServer).ApplicationList(ctx, req.(*v1.ApplicationListRequest))
  407. }
  408. return interceptor(ctx, in, info, handler)
  409. }
  410. func _Common_MsgPackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  411. in := new(v1.MsgPackageListRequest)
  412. if err := dec(in); err != nil {
  413. return nil, err
  414. }
  415. if interceptor == nil {
  416. return srv.(CommonServer).MsgPackageList(ctx, in)
  417. }
  418. info := &grpc.UnaryServerInfo{
  419. Server: srv,
  420. FullMethod: "/pb.service.Common/MsgPackageList",
  421. }
  422. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  423. return srv.(CommonServer).MsgPackageList(ctx, req.(*v1.MsgPackageListRequest))
  424. }
  425. return interceptor(ctx, in, info, handler)
  426. }
  427. func _Common_MaterialInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  428. in := new(v1.MaterialInfoRequest)
  429. if err := dec(in); err != nil {
  430. return nil, err
  431. }
  432. if interceptor == nil {
  433. return srv.(CommonServer).MaterialInfo(ctx, in)
  434. }
  435. info := &grpc.UnaryServerInfo{
  436. Server: srv,
  437. FullMethod: "/pb.service.Common/MaterialInfo",
  438. }
  439. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  440. return srv.(CommonServer).MaterialInfo(ctx, req.(*v1.MaterialInfoRequest))
  441. }
  442. return interceptor(ctx, in, info, handler)
  443. }
  444. func _Common_MaterialList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  445. in := new(v1.MaterialListRequest)
  446. if err := dec(in); err != nil {
  447. return nil, err
  448. }
  449. if interceptor == nil {
  450. return srv.(CommonServer).MaterialList(ctx, in)
  451. }
  452. info := &grpc.UnaryServerInfo{
  453. Server: srv,
  454. FullMethod: "/pb.service.Common/MaterialList",
  455. }
  456. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  457. return srv.(CommonServer).MaterialList(ctx, req.(*v1.MaterialListRequest))
  458. }
  459. return interceptor(ctx, in, info, handler)
  460. }
  461. var _Common_serviceDesc = grpc.ServiceDesc{
  462. ServiceName: "pb.service.Common",
  463. HandlerType: (*CommonServer)(nil),
  464. Methods: []grpc.MethodDesc{
  465. {
  466. MethodName: "SystemPermissionList",
  467. Handler: _Common_SystemPermissionList_Handler,
  468. },
  469. {
  470. MethodName: "SystemPermissionAdd",
  471. Handler: _Common_SystemPermissionAdd_Handler,
  472. },
  473. {
  474. MethodName: "SystemPermissionUpdate",
  475. Handler: _Common_SystemPermissionUpdate_Handler,
  476. },
  477. {
  478. MethodName: "SystemPermissionDel",
  479. Handler: _Common_SystemPermissionDel_Handler,
  480. },
  481. {
  482. MethodName: "ProvinceCityArea",
  483. Handler: _Common_ProvinceCityArea_Handler,
  484. },
  485. {
  486. MethodName: "StreetCommittee",
  487. Handler: _Common_StreetCommittee_Handler,
  488. },
  489. {
  490. MethodName: "OssObjDelNotExist",
  491. Handler: _Common_OssObjDelNotExist_Handler,
  492. },
  493. {
  494. MethodName: "OssObjAdd",
  495. Handler: _Common_OssObjAdd_Handler,
  496. },
  497. {
  498. MethodName: "ApplicationList",
  499. Handler: _Common_ApplicationList_Handler,
  500. },
  501. {
  502. MethodName: "MsgPackageList",
  503. Handler: _Common_MsgPackageList_Handler,
  504. },
  505. {
  506. MethodName: "MaterialInfo",
  507. Handler: _Common_MaterialInfo_Handler,
  508. },
  509. {
  510. MethodName: "MaterialList",
  511. Handler: _Common_MaterialList_Handler,
  512. },
  513. },
  514. Streams: []grpc.StreamDesc{},
  515. Metadata: "common_service.proto",
  516. }