organization_grpc.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.3.0
  4. // - protoc v3.21.12
  5. // source: organization.proto
  6. package pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. const (
  18. Organization_GetWorkingUfByCode_FullMethodName = "/pb.Organization/GetWorkingUfByCode"
  19. Organization_GetWorkingRoByCode_FullMethodName = "/pb.Organization/GetWorkingRoByCode"
  20. Organization_GetWorkingChestByCode_FullMethodName = "/pb.Organization/GetWorkingChestByCode"
  21. Organization_GetWorkingPumpByCode_FullMethodName = "/pb.Organization/GetWorkingPumpByCode"
  22. Organization_GetWorkingValveByCode_FullMethodName = "/pb.Organization/GetWorkingValveByCode"
  23. Organization_MultiAddItemHistoryData_FullMethodName = "/pb.Organization/MultiAddItemHistoryData"
  24. Organization_ItemHistoryDataList_FullMethodName = "/pb.Organization/ItemHistoryDataList"
  25. Organization_ItemHistoryDataByTime_FullMethodName = "/pb.Organization/ItemHistoryDataByTime"
  26. Organization_ItemHistoryDataMaxMinByTime_FullMethodName = "/pb.Organization/ItemHistoryDataMaxMinByTime"
  27. Organization_ItemHistoryDataFirstLastByTime_FullMethodName = "/pb.Organization/ItemHistoryDataFirstLastByTime"
  28. Organization_ChangeTypeItemHistoryData_FullMethodName = "/pb.Organization/ChangeTypeItemHistoryData"
  29. Organization_ItemHistoryDataForChart_FullMethodName = "/pb.Organization/ItemHistoryDataForChart"
  30. )
  31. // OrganizationClient is the client API for Organization service.
  32. //
  33. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  34. type OrganizationClient interface {
  35. GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error)
  36. GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error)
  37. GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error)
  38. GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error)
  39. GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error)
  40. MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error)
  41. ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
  42. ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
  43. ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error)
  44. ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error)
  45. ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error)
  46. ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error)
  47. }
  48. type organizationClient struct {
  49. cc grpc.ClientConnInterface
  50. }
  51. func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient {
  52. return &organizationClient{cc}
  53. }
  54. func (c *organizationClient) GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error) {
  55. out := new(GetWorkingUfByCodeResp)
  56. err := c.cc.Invoke(ctx, Organization_GetWorkingUfByCode_FullMethodName, in, out, opts...)
  57. if err != nil {
  58. return nil, err
  59. }
  60. return out, nil
  61. }
  62. func (c *organizationClient) GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error) {
  63. out := new(GetWorkingRoByCodeResp)
  64. err := c.cc.Invoke(ctx, Organization_GetWorkingRoByCode_FullMethodName, in, out, opts...)
  65. if err != nil {
  66. return nil, err
  67. }
  68. return out, nil
  69. }
  70. func (c *organizationClient) GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error) {
  71. out := new(GetWorkingChestByCodeResp)
  72. err := c.cc.Invoke(ctx, Organization_GetWorkingChestByCode_FullMethodName, in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *organizationClient) GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error) {
  79. out := new(GetWorkingPumpByCodeResp)
  80. err := c.cc.Invoke(ctx, Organization_GetWorkingPumpByCode_FullMethodName, in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *organizationClient) GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error) {
  87. out := new(GetWorkingValveByCodeResp)
  88. err := c.cc.Invoke(ctx, Organization_GetWorkingValveByCode_FullMethodName, in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *organizationClient) MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error) {
  95. out := new(MultiAddItemHistoryDataResp)
  96. err := c.cc.Invoke(ctx, Organization_MultiAddItemHistoryData_FullMethodName, in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *organizationClient) ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
  103. out := new(ItemHistoryDataListResp)
  104. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataList_FullMethodName, in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *organizationClient) ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
  111. out := new(ItemHistoryDataListResp)
  112. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataByTime_FullMethodName, in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *organizationClient) ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error) {
  119. out := new(ItemHistoryDataMaxMinResp)
  120. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataMaxMinByTime_FullMethodName, in, out, opts...)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return out, nil
  125. }
  126. func (c *organizationClient) ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error) {
  127. out := new(ItemHistoryDataFirstLastResp)
  128. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataFirstLastByTime_FullMethodName, in, out, opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. return out, nil
  133. }
  134. func (c *organizationClient) ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error) {
  135. out := new(ChangeTypeItemHistoryDataResp)
  136. err := c.cc.Invoke(ctx, Organization_ChangeTypeItemHistoryData_FullMethodName, in, out, opts...)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return out, nil
  141. }
  142. func (c *organizationClient) ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error) {
  143. out := new(ItemHistoryDataForChartResp)
  144. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataForChart_FullMethodName, in, out, opts...)
  145. if err != nil {
  146. return nil, err
  147. }
  148. return out, nil
  149. }
  150. // OrganizationServer is the server API for Organization service.
  151. // All implementations must embed UnimplementedOrganizationServer
  152. // for forward compatibility
  153. type OrganizationServer interface {
  154. GetWorkingUfByCode(context.Context, *DcWorkingReq) (*GetWorkingUfByCodeResp, error)
  155. GetWorkingRoByCode(context.Context, *DcWorkingReq) (*GetWorkingRoByCodeResp, error)
  156. GetWorkingChestByCode(context.Context, *DcWorkingReq) (*GetWorkingChestByCodeResp, error)
  157. GetWorkingPumpByCode(context.Context, *DcWorkingReq) (*GetWorkingPumpByCodeResp, error)
  158. GetWorkingValveByCode(context.Context, *DcWorkingReq) (*GetWorkingValveByCodeResp, error)
  159. MultiAddItemHistoryData(context.Context, *MultiAddItemHistoryDataReq) (*MultiAddItemHistoryDataResp, error)
  160. ItemHistoryDataList(context.Context, *ItemHistoryDataListReq) (*ItemHistoryDataListResp, error)
  161. ItemHistoryDataByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataListResp, error)
  162. ItemHistoryDataMaxMinByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataMaxMinResp, error)
  163. ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error)
  164. ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error)
  165. ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error)
  166. mustEmbedUnimplementedOrganizationServer()
  167. }
  168. // UnimplementedOrganizationServer must be embedded to have forward compatible implementations.
  169. type UnimplementedOrganizationServer struct {
  170. }
  171. func (UnimplementedOrganizationServer) GetWorkingUfByCode(context.Context, *DcWorkingReq) (*GetWorkingUfByCodeResp, error) {
  172. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingUfByCode not implemented")
  173. }
  174. func (UnimplementedOrganizationServer) GetWorkingRoByCode(context.Context, *DcWorkingReq) (*GetWorkingRoByCodeResp, error) {
  175. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingRoByCode not implemented")
  176. }
  177. func (UnimplementedOrganizationServer) GetWorkingChestByCode(context.Context, *DcWorkingReq) (*GetWorkingChestByCodeResp, error) {
  178. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingChestByCode not implemented")
  179. }
  180. func (UnimplementedOrganizationServer) GetWorkingPumpByCode(context.Context, *DcWorkingReq) (*GetWorkingPumpByCodeResp, error) {
  181. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingPumpByCode not implemented")
  182. }
  183. func (UnimplementedOrganizationServer) GetWorkingValveByCode(context.Context, *DcWorkingReq) (*GetWorkingValveByCodeResp, error) {
  184. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingValveByCode not implemented")
  185. }
  186. func (UnimplementedOrganizationServer) MultiAddItemHistoryData(context.Context, *MultiAddItemHistoryDataReq) (*MultiAddItemHistoryDataResp, error) {
  187. return nil, status.Errorf(codes.Unimplemented, "method MultiAddItemHistoryData not implemented")
  188. }
  189. func (UnimplementedOrganizationServer) ItemHistoryDataList(context.Context, *ItemHistoryDataListReq) (*ItemHistoryDataListResp, error) {
  190. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataList not implemented")
  191. }
  192. func (UnimplementedOrganizationServer) ItemHistoryDataByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataListResp, error) {
  193. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataByTime not implemented")
  194. }
  195. func (UnimplementedOrganizationServer) ItemHistoryDataMaxMinByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataMaxMinResp, error) {
  196. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataMaxMinByTime not implemented")
  197. }
  198. func (UnimplementedOrganizationServer) ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error) {
  199. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataFirstLastByTime not implemented")
  200. }
  201. func (UnimplementedOrganizationServer) ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error) {
  202. return nil, status.Errorf(codes.Unimplemented, "method ChangeTypeItemHistoryData not implemented")
  203. }
  204. func (UnimplementedOrganizationServer) ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error) {
  205. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataForChart not implemented")
  206. }
  207. func (UnimplementedOrganizationServer) mustEmbedUnimplementedOrganizationServer() {}
  208. // UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this service.
  209. // Use of this interface is not recommended, as added methods to OrganizationServer will
  210. // result in compilation errors.
  211. type UnsafeOrganizationServer interface {
  212. mustEmbedUnimplementedOrganizationServer()
  213. }
  214. func RegisterOrganizationServer(s grpc.ServiceRegistrar, srv OrganizationServer) {
  215. s.RegisterService(&Organization_ServiceDesc, srv)
  216. }
  217. func _Organization_GetWorkingUfByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  218. in := new(DcWorkingReq)
  219. if err := dec(in); err != nil {
  220. return nil, err
  221. }
  222. if interceptor == nil {
  223. return srv.(OrganizationServer).GetWorkingUfByCode(ctx, in)
  224. }
  225. info := &grpc.UnaryServerInfo{
  226. Server: srv,
  227. FullMethod: Organization_GetWorkingUfByCode_FullMethodName,
  228. }
  229. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  230. return srv.(OrganizationServer).GetWorkingUfByCode(ctx, req.(*DcWorkingReq))
  231. }
  232. return interceptor(ctx, in, info, handler)
  233. }
  234. func _Organization_GetWorkingRoByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  235. in := new(DcWorkingReq)
  236. if err := dec(in); err != nil {
  237. return nil, err
  238. }
  239. if interceptor == nil {
  240. return srv.(OrganizationServer).GetWorkingRoByCode(ctx, in)
  241. }
  242. info := &grpc.UnaryServerInfo{
  243. Server: srv,
  244. FullMethod: Organization_GetWorkingRoByCode_FullMethodName,
  245. }
  246. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  247. return srv.(OrganizationServer).GetWorkingRoByCode(ctx, req.(*DcWorkingReq))
  248. }
  249. return interceptor(ctx, in, info, handler)
  250. }
  251. func _Organization_GetWorkingChestByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  252. in := new(DcWorkingReq)
  253. if err := dec(in); err != nil {
  254. return nil, err
  255. }
  256. if interceptor == nil {
  257. return srv.(OrganizationServer).GetWorkingChestByCode(ctx, in)
  258. }
  259. info := &grpc.UnaryServerInfo{
  260. Server: srv,
  261. FullMethod: Organization_GetWorkingChestByCode_FullMethodName,
  262. }
  263. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  264. return srv.(OrganizationServer).GetWorkingChestByCode(ctx, req.(*DcWorkingReq))
  265. }
  266. return interceptor(ctx, in, info, handler)
  267. }
  268. func _Organization_GetWorkingPumpByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  269. in := new(DcWorkingReq)
  270. if err := dec(in); err != nil {
  271. return nil, err
  272. }
  273. if interceptor == nil {
  274. return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, in)
  275. }
  276. info := &grpc.UnaryServerInfo{
  277. Server: srv,
  278. FullMethod: Organization_GetWorkingPumpByCode_FullMethodName,
  279. }
  280. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  281. return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, req.(*DcWorkingReq))
  282. }
  283. return interceptor(ctx, in, info, handler)
  284. }
  285. func _Organization_GetWorkingValveByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  286. in := new(DcWorkingReq)
  287. if err := dec(in); err != nil {
  288. return nil, err
  289. }
  290. if interceptor == nil {
  291. return srv.(OrganizationServer).GetWorkingValveByCode(ctx, in)
  292. }
  293. info := &grpc.UnaryServerInfo{
  294. Server: srv,
  295. FullMethod: Organization_GetWorkingValveByCode_FullMethodName,
  296. }
  297. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  298. return srv.(OrganizationServer).GetWorkingValveByCode(ctx, req.(*DcWorkingReq))
  299. }
  300. return interceptor(ctx, in, info, handler)
  301. }
  302. func _Organization_MultiAddItemHistoryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  303. in := new(MultiAddItemHistoryDataReq)
  304. if err := dec(in); err != nil {
  305. return nil, err
  306. }
  307. if interceptor == nil {
  308. return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, in)
  309. }
  310. info := &grpc.UnaryServerInfo{
  311. Server: srv,
  312. FullMethod: Organization_MultiAddItemHistoryData_FullMethodName,
  313. }
  314. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  315. return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, req.(*MultiAddItemHistoryDataReq))
  316. }
  317. return interceptor(ctx, in, info, handler)
  318. }
  319. func _Organization_ItemHistoryDataList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  320. in := new(ItemHistoryDataListReq)
  321. if err := dec(in); err != nil {
  322. return nil, err
  323. }
  324. if interceptor == nil {
  325. return srv.(OrganizationServer).ItemHistoryDataList(ctx, in)
  326. }
  327. info := &grpc.UnaryServerInfo{
  328. Server: srv,
  329. FullMethod: Organization_ItemHistoryDataList_FullMethodName,
  330. }
  331. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  332. return srv.(OrganizationServer).ItemHistoryDataList(ctx, req.(*ItemHistoryDataListReq))
  333. }
  334. return interceptor(ctx, in, info, handler)
  335. }
  336. func _Organization_ItemHistoryDataByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  337. in := new(ItemHistoryDataByTimeReq)
  338. if err := dec(in); err != nil {
  339. return nil, err
  340. }
  341. if interceptor == nil {
  342. return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, in)
  343. }
  344. info := &grpc.UnaryServerInfo{
  345. Server: srv,
  346. FullMethod: Organization_ItemHistoryDataByTime_FullMethodName,
  347. }
  348. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  349. return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, req.(*ItemHistoryDataByTimeReq))
  350. }
  351. return interceptor(ctx, in, info, handler)
  352. }
  353. func _Organization_ItemHistoryDataMaxMinByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  354. in := new(ItemHistoryDataByTimeReq)
  355. if err := dec(in); err != nil {
  356. return nil, err
  357. }
  358. if interceptor == nil {
  359. return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, in)
  360. }
  361. info := &grpc.UnaryServerInfo{
  362. Server: srv,
  363. FullMethod: Organization_ItemHistoryDataMaxMinByTime_FullMethodName,
  364. }
  365. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  366. return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, req.(*ItemHistoryDataByTimeReq))
  367. }
  368. return interceptor(ctx, in, info, handler)
  369. }
  370. func _Organization_ItemHistoryDataFirstLastByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  371. in := new(ItemHistoryDataByTimeReq)
  372. if err := dec(in); err != nil {
  373. return nil, err
  374. }
  375. if interceptor == nil {
  376. return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, in)
  377. }
  378. info := &grpc.UnaryServerInfo{
  379. Server: srv,
  380. FullMethod: Organization_ItemHistoryDataFirstLastByTime_FullMethodName,
  381. }
  382. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  383. return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, req.(*ItemHistoryDataByTimeReq))
  384. }
  385. return interceptor(ctx, in, info, handler)
  386. }
  387. func _Organization_ChangeTypeItemHistoryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  388. in := new(ItemHistoryDataByTimeReq)
  389. if err := dec(in); err != nil {
  390. return nil, err
  391. }
  392. if interceptor == nil {
  393. return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, in)
  394. }
  395. info := &grpc.UnaryServerInfo{
  396. Server: srv,
  397. FullMethod: Organization_ChangeTypeItemHistoryData_FullMethodName,
  398. }
  399. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  400. return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, req.(*ItemHistoryDataByTimeReq))
  401. }
  402. return interceptor(ctx, in, info, handler)
  403. }
  404. func _Organization_ItemHistoryDataForChart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  405. in := new(ItemHistoryDataForChartReq)
  406. if err := dec(in); err != nil {
  407. return nil, err
  408. }
  409. if interceptor == nil {
  410. return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, in)
  411. }
  412. info := &grpc.UnaryServerInfo{
  413. Server: srv,
  414. FullMethod: Organization_ItemHistoryDataForChart_FullMethodName,
  415. }
  416. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  417. return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, req.(*ItemHistoryDataForChartReq))
  418. }
  419. return interceptor(ctx, in, info, handler)
  420. }
  421. // Organization_ServiceDesc is the grpc.ServiceDesc for Organization service.
  422. // It's only intended for direct use with grpc.RegisterService,
  423. // and not to be introspected or modified (even as a copy)
  424. var Organization_ServiceDesc = grpc.ServiceDesc{
  425. ServiceName: "pb.Organization",
  426. HandlerType: (*OrganizationServer)(nil),
  427. Methods: []grpc.MethodDesc{
  428. {
  429. MethodName: "GetWorkingUfByCode",
  430. Handler: _Organization_GetWorkingUfByCode_Handler,
  431. },
  432. {
  433. MethodName: "GetWorkingRoByCode",
  434. Handler: _Organization_GetWorkingRoByCode_Handler,
  435. },
  436. {
  437. MethodName: "GetWorkingChestByCode",
  438. Handler: _Organization_GetWorkingChestByCode_Handler,
  439. },
  440. {
  441. MethodName: "GetWorkingPumpByCode",
  442. Handler: _Organization_GetWorkingPumpByCode_Handler,
  443. },
  444. {
  445. MethodName: "GetWorkingValveByCode",
  446. Handler: _Organization_GetWorkingValveByCode_Handler,
  447. },
  448. {
  449. MethodName: "MultiAddItemHistoryData",
  450. Handler: _Organization_MultiAddItemHistoryData_Handler,
  451. },
  452. {
  453. MethodName: "ItemHistoryDataList",
  454. Handler: _Organization_ItemHistoryDataList_Handler,
  455. },
  456. {
  457. MethodName: "ItemHistoryDataByTime",
  458. Handler: _Organization_ItemHistoryDataByTime_Handler,
  459. },
  460. {
  461. MethodName: "ItemHistoryDataMaxMinByTime",
  462. Handler: _Organization_ItemHistoryDataMaxMinByTime_Handler,
  463. },
  464. {
  465. MethodName: "ItemHistoryDataFirstLastByTime",
  466. Handler: _Organization_ItemHistoryDataFirstLastByTime_Handler,
  467. },
  468. {
  469. MethodName: "ChangeTypeItemHistoryData",
  470. Handler: _Organization_ChangeTypeItemHistoryData_Handler,
  471. },
  472. {
  473. MethodName: "ItemHistoryDataForChart",
  474. Handler: _Organization_ItemHistoryDataForChart_Handler,
  475. },
  476. },
  477. Streams: []grpc.StreamDesc{},
  478. Metadata: "organization.proto",
  479. }