organization_grpc.pb.go 24 KB

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