datacenter_grpc.pb.go 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  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.11
  5. // source: datacenter.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. Organization_FindAppList_FullMethodName = "/pb.Organization/FindAppList"
  32. Organization_GetAppInfo_FullMethodName = "/pb.Organization/GetAppInfo"
  33. Organization_CreateAppInfo_FullMethodName = "/pb.Organization/CreateAppInfo"
  34. Organization_RemoveAppInfo_FullMethodName = "/pb.Organization/RemoveAppInfo"
  35. Organization_DisableAppInfo_FullMethodName = "/pb.Organization/DisableAppInfo"
  36. Organization_EnableAppInfo_FullMethodName = "/pb.Organization/EnableAppInfo"
  37. Organization_ResetAppSecret_FullMethodName = "/pb.Organization/ResetAppSecret"
  38. Organization_ExpireAppSecret_FullMethodName = "/pb.Organization/ExpireAppSecret"
  39. Organization_ResetAppProject_FullMethodName = "/pb.Organization/ResetAppProject"
  40. Organization_FindDataDescribe_FullMethodName = "/pb.Organization/FindDataDescribe"
  41. Organization_FindDataMinAndMax_FullMethodName = "/pb.Organization/FindDataMinAndMax"
  42. Organization_FindDataCorrelation_FullMethodName = "/pb.Organization/FindDataCorrelation"
  43. Organization_Health_FullMethodName = "/pb.Organization/Health"
  44. )
  45. // OrganizationClient is the client API for Organization v1.
  46. //
  47. // 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.
  48. type OrganizationClient interface {
  49. GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error)
  50. FindWorkingUfByCycle(ctx context.Context, in *FindWorkingUfByCycleReq, opts ...grpc.CallOption) (*FindWorkingUfByCycleResp, error)
  51. GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error)
  52. GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error)
  53. GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error)
  54. GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error)
  55. MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error)
  56. ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
  57. ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
  58. ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error)
  59. ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error)
  60. ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error)
  61. ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error)
  62. FindAppList(ctx context.Context, in *FindAppListReq, opts ...grpc.CallOption) (*FindAppListResp, error)
  63. GetAppInfo(ctx context.Context, in *GetAppInfoReq, opts ...grpc.CallOption) (*GetAppInfoResp, error)
  64. CreateAppInfo(ctx context.Context, in *CreateAppInfoReq, opts ...grpc.CallOption) (*CreateAppInfoResp, error)
  65. RemoveAppInfo(ctx context.Context, in *RemoveAppInfoReq, opts ...grpc.CallOption) (*RemoveAppInfoResp, error)
  66. DisableAppInfo(ctx context.Context, in *DisableAppInfoReq, opts ...grpc.CallOption) (*DisableAppInfoResp, error)
  67. EnableAppInfo(ctx context.Context, in *EnableAppInfoReq, opts ...grpc.CallOption) (*EnableAppInfoResp, error)
  68. ResetAppSecret(ctx context.Context, in *ResetAppSecretReq, opts ...grpc.CallOption) (*ResetAppSecretResp, error)
  69. ExpireAppSecret(ctx context.Context, in *ExpireAppSecretReq, opts ...grpc.CallOption) (*ExpireAppSecretResp, error)
  70. ResetAppProject(ctx context.Context, in *ResetAppProjectReq, opts ...grpc.CallOption) (*ResetAppProjectResp, error)
  71. FindDataDescribe(ctx context.Context, in *FindDataDescribeReq, opts ...grpc.CallOption) (*FindDataDescribeResp, error)
  72. FindDataMinAndMax(ctx context.Context, in *FindDataMinAndMaxReq, opts ...grpc.CallOption) (*FindDataMinAndMaxResp, error)
  73. FindDataCorrelation(ctx context.Context, in *FindDataCorrelationReq, opts ...grpc.CallOption) (*FindDataCorrelationResp, error)
  74. Health(ctx context.Context, in *HealthReq, opts ...grpc.CallOption) (*HealthResp, error)
  75. }
  76. type organizationClient struct {
  77. cc grpc.ClientConnInterface
  78. }
  79. func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient {
  80. return &organizationClient{cc}
  81. }
  82. func (c *organizationClient) GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error) {
  83. out := new(GetWorkingUfByCodeResp)
  84. err := c.cc.Invoke(ctx, Organization_GetWorkingUfByCode_FullMethodName, in, out, opts...)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return out, nil
  89. }
  90. func (c *organizationClient) FindWorkingUfByCycle(ctx context.Context, in *FindWorkingUfByCycleReq, opts ...grpc.CallOption) (*FindWorkingUfByCycleResp, error) {
  91. out := new(FindWorkingUfByCycleResp)
  92. err := c.cc.Invoke(ctx, Organization_FindWorkingUfByCycle_FullMethodName, in, out, opts...)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return out, nil
  97. }
  98. func (c *organizationClient) GetWorkingRoByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingRoByCodeResp, error) {
  99. out := new(GetWorkingRoByCodeResp)
  100. err := c.cc.Invoke(ctx, Organization_GetWorkingRoByCode_FullMethodName, in, out, opts...)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return out, nil
  105. }
  106. func (c *organizationClient) GetWorkingChestByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingChestByCodeResp, error) {
  107. out := new(GetWorkingChestByCodeResp)
  108. err := c.cc.Invoke(ctx, Organization_GetWorkingChestByCode_FullMethodName, in, out, opts...)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return out, nil
  113. }
  114. func (c *organizationClient) GetWorkingPumpByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingPumpByCodeResp, error) {
  115. out := new(GetWorkingPumpByCodeResp)
  116. err := c.cc.Invoke(ctx, Organization_GetWorkingPumpByCode_FullMethodName, in, out, opts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *organizationClient) GetWorkingValveByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingValveByCodeResp, error) {
  123. out := new(GetWorkingValveByCodeResp)
  124. err := c.cc.Invoke(ctx, Organization_GetWorkingValveByCode_FullMethodName, in, out, opts...)
  125. if err != nil {
  126. return nil, err
  127. }
  128. return out, nil
  129. }
  130. func (c *organizationClient) MultiAddItemHistoryData(ctx context.Context, in *MultiAddItemHistoryDataReq, opts ...grpc.CallOption) (*MultiAddItemHistoryDataResp, error) {
  131. out := new(MultiAddItemHistoryDataResp)
  132. err := c.cc.Invoke(ctx, Organization_MultiAddItemHistoryData_FullMethodName, in, out, opts...)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return out, nil
  137. }
  138. func (c *organizationClient) ItemHistoryDataList(ctx context.Context, in *ItemHistoryDataListReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
  139. out := new(ItemHistoryDataListResp)
  140. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataList_FullMethodName, in, out, opts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *organizationClient) ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error) {
  147. out := new(ItemHistoryDataListResp)
  148. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataByTime_FullMethodName, in, out, opts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *organizationClient) ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error) {
  155. out := new(ItemHistoryDataMaxMinResp)
  156. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataMaxMinByTime_FullMethodName, in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *organizationClient) ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error) {
  163. out := new(ItemHistoryDataFirstLastResp)
  164. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataFirstLastByTime_FullMethodName, in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *organizationClient) ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error) {
  171. out := new(ChangeTypeItemHistoryDataResp)
  172. err := c.cc.Invoke(ctx, Organization_ChangeTypeItemHistoryData_FullMethodName, in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *organizationClient) ItemHistoryDataForChart(ctx context.Context, in *ItemHistoryDataForChartReq, opts ...grpc.CallOption) (*ItemHistoryDataForChartResp, error) {
  179. out := new(ItemHistoryDataForChartResp)
  180. err := c.cc.Invoke(ctx, Organization_ItemHistoryDataForChart_FullMethodName, in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *organizationClient) FindAppList(ctx context.Context, in *FindAppListReq, opts ...grpc.CallOption) (*FindAppListResp, error) {
  187. out := new(FindAppListResp)
  188. err := c.cc.Invoke(ctx, Organization_FindAppList_FullMethodName, in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *organizationClient) GetAppInfo(ctx context.Context, in *GetAppInfoReq, opts ...grpc.CallOption) (*GetAppInfoResp, error) {
  195. out := new(GetAppInfoResp)
  196. err := c.cc.Invoke(ctx, Organization_GetAppInfo_FullMethodName, in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. func (c *organizationClient) CreateAppInfo(ctx context.Context, in *CreateAppInfoReq, opts ...grpc.CallOption) (*CreateAppInfoResp, error) {
  203. out := new(CreateAppInfoResp)
  204. err := c.cc.Invoke(ctx, Organization_CreateAppInfo_FullMethodName, in, out, opts...)
  205. if err != nil {
  206. return nil, err
  207. }
  208. return out, nil
  209. }
  210. func (c *organizationClient) RemoveAppInfo(ctx context.Context, in *RemoveAppInfoReq, opts ...grpc.CallOption) (*RemoveAppInfoResp, error) {
  211. out := new(RemoveAppInfoResp)
  212. err := c.cc.Invoke(ctx, Organization_RemoveAppInfo_FullMethodName, in, out, opts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return out, nil
  217. }
  218. func (c *organizationClient) DisableAppInfo(ctx context.Context, in *DisableAppInfoReq, opts ...grpc.CallOption) (*DisableAppInfoResp, error) {
  219. out := new(DisableAppInfoResp)
  220. err := c.cc.Invoke(ctx, Organization_DisableAppInfo_FullMethodName, in, out, opts...)
  221. if err != nil {
  222. return nil, err
  223. }
  224. return out, nil
  225. }
  226. func (c *organizationClient) EnableAppInfo(ctx context.Context, in *EnableAppInfoReq, opts ...grpc.CallOption) (*EnableAppInfoResp, error) {
  227. out := new(EnableAppInfoResp)
  228. err := c.cc.Invoke(ctx, Organization_EnableAppInfo_FullMethodName, in, out, opts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *organizationClient) ResetAppSecret(ctx context.Context, in *ResetAppSecretReq, opts ...grpc.CallOption) (*ResetAppSecretResp, error) {
  235. out := new(ResetAppSecretResp)
  236. err := c.cc.Invoke(ctx, Organization_ResetAppSecret_FullMethodName, in, out, opts...)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return out, nil
  241. }
  242. func (c *organizationClient) ExpireAppSecret(ctx context.Context, in *ExpireAppSecretReq, opts ...grpc.CallOption) (*ExpireAppSecretResp, error) {
  243. out := new(ExpireAppSecretResp)
  244. err := c.cc.Invoke(ctx, Organization_ExpireAppSecret_FullMethodName, in, out, opts...)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return out, nil
  249. }
  250. func (c *organizationClient) ResetAppProject(ctx context.Context, in *ResetAppProjectReq, opts ...grpc.CallOption) (*ResetAppProjectResp, error) {
  251. out := new(ResetAppProjectResp)
  252. err := c.cc.Invoke(ctx, Organization_ResetAppProject_FullMethodName, in, out, opts...)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return out, nil
  257. }
  258. func (c *organizationClient) FindDataDescribe(ctx context.Context, in *FindDataDescribeReq, opts ...grpc.CallOption) (*FindDataDescribeResp, error) {
  259. out := new(FindDataDescribeResp)
  260. err := c.cc.Invoke(ctx, Organization_FindDataDescribe_FullMethodName, in, out, opts...)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return out, nil
  265. }
  266. func (c *organizationClient) FindDataMinAndMax(ctx context.Context, in *FindDataMinAndMaxReq, opts ...grpc.CallOption) (*FindDataMinAndMaxResp, error) {
  267. out := new(FindDataMinAndMaxResp)
  268. err := c.cc.Invoke(ctx, Organization_FindDataMinAndMax_FullMethodName, in, out, opts...)
  269. if err != nil {
  270. return nil, err
  271. }
  272. return out, nil
  273. }
  274. func (c *organizationClient) FindDataCorrelation(ctx context.Context, in *FindDataCorrelationReq, opts ...grpc.CallOption) (*FindDataCorrelationResp, error) {
  275. out := new(FindDataCorrelationResp)
  276. err := c.cc.Invoke(ctx, Organization_FindDataCorrelation_FullMethodName, in, out, opts...)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return out, nil
  281. }
  282. func (c *organizationClient) Health(ctx context.Context, in *HealthReq, opts ...grpc.CallOption) (*HealthResp, error) {
  283. out := new(HealthResp)
  284. err := c.cc.Invoke(ctx, Organization_Health_FullMethodName, in, out, opts...)
  285. if err != nil {
  286. return nil, err
  287. }
  288. return out, nil
  289. }
  290. // OrganizationServer is the server API for Organization v1.
  291. // All implementations must embed UnimplementedOrganizationServer
  292. // for forward compatibility
  293. type OrganizationServer interface {
  294. GetWorkingUfByCode(context.Context, *DcWorkingReq) (*GetWorkingUfByCodeResp, error)
  295. FindWorkingUfByCycle(context.Context, *FindWorkingUfByCycleReq) (*FindWorkingUfByCycleResp, error)
  296. GetWorkingRoByCode(context.Context, *DcWorkingReq) (*GetWorkingRoByCodeResp, error)
  297. GetWorkingChestByCode(context.Context, *DcWorkingReq) (*GetWorkingChestByCodeResp, error)
  298. GetWorkingPumpByCode(context.Context, *DcWorkingReq) (*GetWorkingPumpByCodeResp, error)
  299. GetWorkingValveByCode(context.Context, *DcWorkingReq) (*GetWorkingValveByCodeResp, error)
  300. MultiAddItemHistoryData(context.Context, *MultiAddItemHistoryDataReq) (*MultiAddItemHistoryDataResp, error)
  301. ItemHistoryDataList(context.Context, *ItemHistoryDataListReq) (*ItemHistoryDataListResp, error)
  302. ItemHistoryDataByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataListResp, error)
  303. ItemHistoryDataMaxMinByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataMaxMinResp, error)
  304. ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error)
  305. ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error)
  306. ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error)
  307. FindAppList(context.Context, *FindAppListReq) (*FindAppListResp, error)
  308. GetAppInfo(context.Context, *GetAppInfoReq) (*GetAppInfoResp, error)
  309. CreateAppInfo(context.Context, *CreateAppInfoReq) (*CreateAppInfoResp, error)
  310. RemoveAppInfo(context.Context, *RemoveAppInfoReq) (*RemoveAppInfoResp, error)
  311. DisableAppInfo(context.Context, *DisableAppInfoReq) (*DisableAppInfoResp, error)
  312. EnableAppInfo(context.Context, *EnableAppInfoReq) (*EnableAppInfoResp, error)
  313. ResetAppSecret(context.Context, *ResetAppSecretReq) (*ResetAppSecretResp, error)
  314. ExpireAppSecret(context.Context, *ExpireAppSecretReq) (*ExpireAppSecretResp, error)
  315. ResetAppProject(context.Context, *ResetAppProjectReq) (*ResetAppProjectResp, error)
  316. FindDataDescribe(context.Context, *FindDataDescribeReq) (*FindDataDescribeResp, error)
  317. FindDataMinAndMax(context.Context, *FindDataMinAndMaxReq) (*FindDataMinAndMaxResp, error)
  318. FindDataCorrelation(context.Context, *FindDataCorrelationReq) (*FindDataCorrelationResp, error)
  319. Health(context.Context, *HealthReq) (*HealthResp, error)
  320. mustEmbedUnimplementedOrganizationServer()
  321. }
  322. // UnimplementedOrganizationServer must be embedded to have forward compatible implementations.
  323. type UnimplementedOrganizationServer struct {
  324. }
  325. func (UnimplementedOrganizationServer) GetWorkingUfByCode(context.Context, *DcWorkingReq) (*GetWorkingUfByCodeResp, error) {
  326. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingUfByCode not implemented")
  327. }
  328. func (UnimplementedOrganizationServer) FindWorkingUfByCycle(context.Context, *FindWorkingUfByCycleReq) (*FindWorkingUfByCycleResp, error) {
  329. return nil, status.Errorf(codes.Unimplemented, "method FindWorkingUfByCycle not implemented")
  330. }
  331. func (UnimplementedOrganizationServer) GetWorkingRoByCode(context.Context, *DcWorkingReq) (*GetWorkingRoByCodeResp, error) {
  332. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingRoByCode not implemented")
  333. }
  334. func (UnimplementedOrganizationServer) GetWorkingChestByCode(context.Context, *DcWorkingReq) (*GetWorkingChestByCodeResp, error) {
  335. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingChestByCode not implemented")
  336. }
  337. func (UnimplementedOrganizationServer) GetWorkingPumpByCode(context.Context, *DcWorkingReq) (*GetWorkingPumpByCodeResp, error) {
  338. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingPumpByCode not implemented")
  339. }
  340. func (UnimplementedOrganizationServer) GetWorkingValveByCode(context.Context, *DcWorkingReq) (*GetWorkingValveByCodeResp, error) {
  341. return nil, status.Errorf(codes.Unimplemented, "method GetWorkingValveByCode not implemented")
  342. }
  343. func (UnimplementedOrganizationServer) MultiAddItemHistoryData(context.Context, *MultiAddItemHistoryDataReq) (*MultiAddItemHistoryDataResp, error) {
  344. return nil, status.Errorf(codes.Unimplemented, "method MultiAddItemHistoryData not implemented")
  345. }
  346. func (UnimplementedOrganizationServer) ItemHistoryDataList(context.Context, *ItemHistoryDataListReq) (*ItemHistoryDataListResp, error) {
  347. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataList not implemented")
  348. }
  349. func (UnimplementedOrganizationServer) ItemHistoryDataByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataListResp, error) {
  350. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataByTime not implemented")
  351. }
  352. func (UnimplementedOrganizationServer) ItemHistoryDataMaxMinByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataMaxMinResp, error) {
  353. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataMaxMinByTime not implemented")
  354. }
  355. func (UnimplementedOrganizationServer) ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error) {
  356. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataFirstLastByTime not implemented")
  357. }
  358. func (UnimplementedOrganizationServer) ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error) {
  359. return nil, status.Errorf(codes.Unimplemented, "method ChangeTypeItemHistoryData not implemented")
  360. }
  361. func (UnimplementedOrganizationServer) ItemHistoryDataForChart(context.Context, *ItemHistoryDataForChartReq) (*ItemHistoryDataForChartResp, error) {
  362. return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataForChart not implemented")
  363. }
  364. func (UnimplementedOrganizationServer) FindAppList(context.Context, *FindAppListReq) (*FindAppListResp, error) {
  365. return nil, status.Errorf(codes.Unimplemented, "method FindAppList not implemented")
  366. }
  367. func (UnimplementedOrganizationServer) GetAppInfo(context.Context, *GetAppInfoReq) (*GetAppInfoResp, error) {
  368. return nil, status.Errorf(codes.Unimplemented, "method GetAppInfo not implemented")
  369. }
  370. func (UnimplementedOrganizationServer) CreateAppInfo(context.Context, *CreateAppInfoReq) (*CreateAppInfoResp, error) {
  371. return nil, status.Errorf(codes.Unimplemented, "method CreateAppInfo not implemented")
  372. }
  373. func (UnimplementedOrganizationServer) RemoveAppInfo(context.Context, *RemoveAppInfoReq) (*RemoveAppInfoResp, error) {
  374. return nil, status.Errorf(codes.Unimplemented, "method RemoveAppInfo not implemented")
  375. }
  376. func (UnimplementedOrganizationServer) DisableAppInfo(context.Context, *DisableAppInfoReq) (*DisableAppInfoResp, error) {
  377. return nil, status.Errorf(codes.Unimplemented, "method DisableAppInfo not implemented")
  378. }
  379. func (UnimplementedOrganizationServer) EnableAppInfo(context.Context, *EnableAppInfoReq) (*EnableAppInfoResp, error) {
  380. return nil, status.Errorf(codes.Unimplemented, "method EnableAppInfo not implemented")
  381. }
  382. func (UnimplementedOrganizationServer) ResetAppSecret(context.Context, *ResetAppSecretReq) (*ResetAppSecretResp, error) {
  383. return nil, status.Errorf(codes.Unimplemented, "method ResetAppSecret not implemented")
  384. }
  385. func (UnimplementedOrganizationServer) ExpireAppSecret(context.Context, *ExpireAppSecretReq) (*ExpireAppSecretResp, error) {
  386. return nil, status.Errorf(codes.Unimplemented, "method ExpireAppSecret not implemented")
  387. }
  388. func (UnimplementedOrganizationServer) ResetAppProject(context.Context, *ResetAppProjectReq) (*ResetAppProjectResp, error) {
  389. return nil, status.Errorf(codes.Unimplemented, "method ResetAppProject not implemented")
  390. }
  391. func (UnimplementedOrganizationServer) FindDataDescribe(context.Context, *FindDataDescribeReq) (*FindDataDescribeResp, error) {
  392. return nil, status.Errorf(codes.Unimplemented, "method FindDataDescribe not implemented")
  393. }
  394. func (UnimplementedOrganizationServer) FindDataMinAndMax(context.Context, *FindDataMinAndMaxReq) (*FindDataMinAndMaxResp, error) {
  395. return nil, status.Errorf(codes.Unimplemented, "method FindDataMinAndMax not implemented")
  396. }
  397. func (UnimplementedOrganizationServer) FindDataCorrelation(context.Context, *FindDataCorrelationReq) (*FindDataCorrelationResp, error) {
  398. return nil, status.Errorf(codes.Unimplemented, "method FindDataCorrelation not implemented")
  399. }
  400. func (UnimplementedOrganizationServer) Health(context.Context, *HealthReq) (*HealthResp, error) {
  401. return nil, status.Errorf(codes.Unimplemented, "method Health not implemented")
  402. }
  403. func (UnimplementedOrganizationServer) mustEmbedUnimplementedOrganizationServer() {}
  404. // UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this v1.
  405. // Use of this interface is not recommended, as added methods to OrganizationServer will
  406. // result in compilation errors.
  407. type UnsafeOrganizationServer interface {
  408. mustEmbedUnimplementedOrganizationServer()
  409. }
  410. func RegisterOrganizationServer(s grpc.ServiceRegistrar, srv OrganizationServer) {
  411. s.RegisterService(&Organization_ServiceDesc, srv)
  412. }
  413. func _Organization_GetWorkingUfByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  414. in := new(DcWorkingReq)
  415. if err := dec(in); err != nil {
  416. return nil, err
  417. }
  418. if interceptor == nil {
  419. return srv.(OrganizationServer).GetWorkingUfByCode(ctx, in)
  420. }
  421. info := &grpc.UnaryServerInfo{
  422. Server: srv,
  423. FullMethod: Organization_GetWorkingUfByCode_FullMethodName,
  424. }
  425. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  426. return srv.(OrganizationServer).GetWorkingUfByCode(ctx, req.(*DcWorkingReq))
  427. }
  428. return interceptor(ctx, in, info, handler)
  429. }
  430. func _Organization_FindWorkingUfByCycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  431. in := new(FindWorkingUfByCycleReq)
  432. if err := dec(in); err != nil {
  433. return nil, err
  434. }
  435. if interceptor == nil {
  436. return srv.(OrganizationServer).FindWorkingUfByCycle(ctx, in)
  437. }
  438. info := &grpc.UnaryServerInfo{
  439. Server: srv,
  440. FullMethod: Organization_FindWorkingUfByCycle_FullMethodName,
  441. }
  442. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  443. return srv.(OrganizationServer).FindWorkingUfByCycle(ctx, req.(*FindWorkingUfByCycleReq))
  444. }
  445. return interceptor(ctx, in, info, handler)
  446. }
  447. func _Organization_GetWorkingRoByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  448. in := new(DcWorkingReq)
  449. if err := dec(in); err != nil {
  450. return nil, err
  451. }
  452. if interceptor == nil {
  453. return srv.(OrganizationServer).GetWorkingRoByCode(ctx, in)
  454. }
  455. info := &grpc.UnaryServerInfo{
  456. Server: srv,
  457. FullMethod: Organization_GetWorkingRoByCode_FullMethodName,
  458. }
  459. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  460. return srv.(OrganizationServer).GetWorkingRoByCode(ctx, req.(*DcWorkingReq))
  461. }
  462. return interceptor(ctx, in, info, handler)
  463. }
  464. func _Organization_GetWorkingChestByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  465. in := new(DcWorkingReq)
  466. if err := dec(in); err != nil {
  467. return nil, err
  468. }
  469. if interceptor == nil {
  470. return srv.(OrganizationServer).GetWorkingChestByCode(ctx, in)
  471. }
  472. info := &grpc.UnaryServerInfo{
  473. Server: srv,
  474. FullMethod: Organization_GetWorkingChestByCode_FullMethodName,
  475. }
  476. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  477. return srv.(OrganizationServer).GetWorkingChestByCode(ctx, req.(*DcWorkingReq))
  478. }
  479. return interceptor(ctx, in, info, handler)
  480. }
  481. func _Organization_GetWorkingPumpByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  482. in := new(DcWorkingReq)
  483. if err := dec(in); err != nil {
  484. return nil, err
  485. }
  486. if interceptor == nil {
  487. return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, in)
  488. }
  489. info := &grpc.UnaryServerInfo{
  490. Server: srv,
  491. FullMethod: Organization_GetWorkingPumpByCode_FullMethodName,
  492. }
  493. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  494. return srv.(OrganizationServer).GetWorkingPumpByCode(ctx, req.(*DcWorkingReq))
  495. }
  496. return interceptor(ctx, in, info, handler)
  497. }
  498. func _Organization_GetWorkingValveByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  499. in := new(DcWorkingReq)
  500. if err := dec(in); err != nil {
  501. return nil, err
  502. }
  503. if interceptor == nil {
  504. return srv.(OrganizationServer).GetWorkingValveByCode(ctx, in)
  505. }
  506. info := &grpc.UnaryServerInfo{
  507. Server: srv,
  508. FullMethod: Organization_GetWorkingValveByCode_FullMethodName,
  509. }
  510. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  511. return srv.(OrganizationServer).GetWorkingValveByCode(ctx, req.(*DcWorkingReq))
  512. }
  513. return interceptor(ctx, in, info, handler)
  514. }
  515. func _Organization_MultiAddItemHistoryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  516. in := new(MultiAddItemHistoryDataReq)
  517. if err := dec(in); err != nil {
  518. return nil, err
  519. }
  520. if interceptor == nil {
  521. return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, in)
  522. }
  523. info := &grpc.UnaryServerInfo{
  524. Server: srv,
  525. FullMethod: Organization_MultiAddItemHistoryData_FullMethodName,
  526. }
  527. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  528. return srv.(OrganizationServer).MultiAddItemHistoryData(ctx, req.(*MultiAddItemHistoryDataReq))
  529. }
  530. return interceptor(ctx, in, info, handler)
  531. }
  532. func _Organization_ItemHistoryDataList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  533. in := new(ItemHistoryDataListReq)
  534. if err := dec(in); err != nil {
  535. return nil, err
  536. }
  537. if interceptor == nil {
  538. return srv.(OrganizationServer).ItemHistoryDataList(ctx, in)
  539. }
  540. info := &grpc.UnaryServerInfo{
  541. Server: srv,
  542. FullMethod: Organization_ItemHistoryDataList_FullMethodName,
  543. }
  544. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  545. return srv.(OrganizationServer).ItemHistoryDataList(ctx, req.(*ItemHistoryDataListReq))
  546. }
  547. return interceptor(ctx, in, info, handler)
  548. }
  549. func _Organization_ItemHistoryDataByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  550. in := new(ItemHistoryDataByTimeReq)
  551. if err := dec(in); err != nil {
  552. return nil, err
  553. }
  554. if interceptor == nil {
  555. return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, in)
  556. }
  557. info := &grpc.UnaryServerInfo{
  558. Server: srv,
  559. FullMethod: Organization_ItemHistoryDataByTime_FullMethodName,
  560. }
  561. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  562. return srv.(OrganizationServer).ItemHistoryDataByTime(ctx, req.(*ItemHistoryDataByTimeReq))
  563. }
  564. return interceptor(ctx, in, info, handler)
  565. }
  566. func _Organization_ItemHistoryDataMaxMinByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  567. in := new(ItemHistoryDataByTimeReq)
  568. if err := dec(in); err != nil {
  569. return nil, err
  570. }
  571. if interceptor == nil {
  572. return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, in)
  573. }
  574. info := &grpc.UnaryServerInfo{
  575. Server: srv,
  576. FullMethod: Organization_ItemHistoryDataMaxMinByTime_FullMethodName,
  577. }
  578. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  579. return srv.(OrganizationServer).ItemHistoryDataMaxMinByTime(ctx, req.(*ItemHistoryDataByTimeReq))
  580. }
  581. return interceptor(ctx, in, info, handler)
  582. }
  583. func _Organization_ItemHistoryDataFirstLastByTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  584. in := new(ItemHistoryDataByTimeReq)
  585. if err := dec(in); err != nil {
  586. return nil, err
  587. }
  588. if interceptor == nil {
  589. return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, in)
  590. }
  591. info := &grpc.UnaryServerInfo{
  592. Server: srv,
  593. FullMethod: Organization_ItemHistoryDataFirstLastByTime_FullMethodName,
  594. }
  595. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  596. return srv.(OrganizationServer).ItemHistoryDataFirstLastByTime(ctx, req.(*ItemHistoryDataByTimeReq))
  597. }
  598. return interceptor(ctx, in, info, handler)
  599. }
  600. func _Organization_ChangeTypeItemHistoryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  601. in := new(ItemHistoryDataByTimeReq)
  602. if err := dec(in); err != nil {
  603. return nil, err
  604. }
  605. if interceptor == nil {
  606. return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, in)
  607. }
  608. info := &grpc.UnaryServerInfo{
  609. Server: srv,
  610. FullMethod: Organization_ChangeTypeItemHistoryData_FullMethodName,
  611. }
  612. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  613. return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, req.(*ItemHistoryDataByTimeReq))
  614. }
  615. return interceptor(ctx, in, info, handler)
  616. }
  617. func _Organization_ItemHistoryDataForChart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  618. in := new(ItemHistoryDataForChartReq)
  619. if err := dec(in); err != nil {
  620. return nil, err
  621. }
  622. if interceptor == nil {
  623. return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, in)
  624. }
  625. info := &grpc.UnaryServerInfo{
  626. Server: srv,
  627. FullMethod: Organization_ItemHistoryDataForChart_FullMethodName,
  628. }
  629. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  630. return srv.(OrganizationServer).ItemHistoryDataForChart(ctx, req.(*ItemHistoryDataForChartReq))
  631. }
  632. return interceptor(ctx, in, info, handler)
  633. }
  634. func _Organization_FindAppList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  635. in := new(FindAppListReq)
  636. if err := dec(in); err != nil {
  637. return nil, err
  638. }
  639. if interceptor == nil {
  640. return srv.(OrganizationServer).FindAppList(ctx, in)
  641. }
  642. info := &grpc.UnaryServerInfo{
  643. Server: srv,
  644. FullMethod: Organization_FindAppList_FullMethodName,
  645. }
  646. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  647. return srv.(OrganizationServer).FindAppList(ctx, req.(*FindAppListReq))
  648. }
  649. return interceptor(ctx, in, info, handler)
  650. }
  651. func _Organization_GetAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  652. in := new(GetAppInfoReq)
  653. if err := dec(in); err != nil {
  654. return nil, err
  655. }
  656. if interceptor == nil {
  657. return srv.(OrganizationServer).GetAppInfo(ctx, in)
  658. }
  659. info := &grpc.UnaryServerInfo{
  660. Server: srv,
  661. FullMethod: Organization_GetAppInfo_FullMethodName,
  662. }
  663. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  664. return srv.(OrganizationServer).GetAppInfo(ctx, req.(*GetAppInfoReq))
  665. }
  666. return interceptor(ctx, in, info, handler)
  667. }
  668. func _Organization_CreateAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  669. in := new(CreateAppInfoReq)
  670. if err := dec(in); err != nil {
  671. return nil, err
  672. }
  673. if interceptor == nil {
  674. return srv.(OrganizationServer).CreateAppInfo(ctx, in)
  675. }
  676. info := &grpc.UnaryServerInfo{
  677. Server: srv,
  678. FullMethod: Organization_CreateAppInfo_FullMethodName,
  679. }
  680. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  681. return srv.(OrganizationServer).CreateAppInfo(ctx, req.(*CreateAppInfoReq))
  682. }
  683. return interceptor(ctx, in, info, handler)
  684. }
  685. func _Organization_RemoveAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  686. in := new(RemoveAppInfoReq)
  687. if err := dec(in); err != nil {
  688. return nil, err
  689. }
  690. if interceptor == nil {
  691. return srv.(OrganizationServer).RemoveAppInfo(ctx, in)
  692. }
  693. info := &grpc.UnaryServerInfo{
  694. Server: srv,
  695. FullMethod: Organization_RemoveAppInfo_FullMethodName,
  696. }
  697. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  698. return srv.(OrganizationServer).RemoveAppInfo(ctx, req.(*RemoveAppInfoReq))
  699. }
  700. return interceptor(ctx, in, info, handler)
  701. }
  702. func _Organization_DisableAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  703. in := new(DisableAppInfoReq)
  704. if err := dec(in); err != nil {
  705. return nil, err
  706. }
  707. if interceptor == nil {
  708. return srv.(OrganizationServer).DisableAppInfo(ctx, in)
  709. }
  710. info := &grpc.UnaryServerInfo{
  711. Server: srv,
  712. FullMethod: Organization_DisableAppInfo_FullMethodName,
  713. }
  714. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  715. return srv.(OrganizationServer).DisableAppInfo(ctx, req.(*DisableAppInfoReq))
  716. }
  717. return interceptor(ctx, in, info, handler)
  718. }
  719. func _Organization_EnableAppInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  720. in := new(EnableAppInfoReq)
  721. if err := dec(in); err != nil {
  722. return nil, err
  723. }
  724. if interceptor == nil {
  725. return srv.(OrganizationServer).EnableAppInfo(ctx, in)
  726. }
  727. info := &grpc.UnaryServerInfo{
  728. Server: srv,
  729. FullMethod: Organization_EnableAppInfo_FullMethodName,
  730. }
  731. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  732. return srv.(OrganizationServer).EnableAppInfo(ctx, req.(*EnableAppInfoReq))
  733. }
  734. return interceptor(ctx, in, info, handler)
  735. }
  736. func _Organization_ResetAppSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  737. in := new(ResetAppSecretReq)
  738. if err := dec(in); err != nil {
  739. return nil, err
  740. }
  741. if interceptor == nil {
  742. return srv.(OrganizationServer).ResetAppSecret(ctx, in)
  743. }
  744. info := &grpc.UnaryServerInfo{
  745. Server: srv,
  746. FullMethod: Organization_ResetAppSecret_FullMethodName,
  747. }
  748. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  749. return srv.(OrganizationServer).ResetAppSecret(ctx, req.(*ResetAppSecretReq))
  750. }
  751. return interceptor(ctx, in, info, handler)
  752. }
  753. func _Organization_ExpireAppSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  754. in := new(ExpireAppSecretReq)
  755. if err := dec(in); err != nil {
  756. return nil, err
  757. }
  758. if interceptor == nil {
  759. return srv.(OrganizationServer).ExpireAppSecret(ctx, in)
  760. }
  761. info := &grpc.UnaryServerInfo{
  762. Server: srv,
  763. FullMethod: Organization_ExpireAppSecret_FullMethodName,
  764. }
  765. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  766. return srv.(OrganizationServer).ExpireAppSecret(ctx, req.(*ExpireAppSecretReq))
  767. }
  768. return interceptor(ctx, in, info, handler)
  769. }
  770. func _Organization_ResetAppProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  771. in := new(ResetAppProjectReq)
  772. if err := dec(in); err != nil {
  773. return nil, err
  774. }
  775. if interceptor == nil {
  776. return srv.(OrganizationServer).ResetAppProject(ctx, in)
  777. }
  778. info := &grpc.UnaryServerInfo{
  779. Server: srv,
  780. FullMethod: Organization_ResetAppProject_FullMethodName,
  781. }
  782. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  783. return srv.(OrganizationServer).ResetAppProject(ctx, req.(*ResetAppProjectReq))
  784. }
  785. return interceptor(ctx, in, info, handler)
  786. }
  787. func _Organization_FindDataDescribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  788. in := new(FindDataDescribeReq)
  789. if err := dec(in); err != nil {
  790. return nil, err
  791. }
  792. if interceptor == nil {
  793. return srv.(OrganizationServer).FindDataDescribe(ctx, in)
  794. }
  795. info := &grpc.UnaryServerInfo{
  796. Server: srv,
  797. FullMethod: Organization_FindDataDescribe_FullMethodName,
  798. }
  799. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  800. return srv.(OrganizationServer).FindDataDescribe(ctx, req.(*FindDataDescribeReq))
  801. }
  802. return interceptor(ctx, in, info, handler)
  803. }
  804. func _Organization_FindDataMinAndMax_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  805. in := new(FindDataMinAndMaxReq)
  806. if err := dec(in); err != nil {
  807. return nil, err
  808. }
  809. if interceptor == nil {
  810. return srv.(OrganizationServer).FindDataMinAndMax(ctx, in)
  811. }
  812. info := &grpc.UnaryServerInfo{
  813. Server: srv,
  814. FullMethod: Organization_FindDataMinAndMax_FullMethodName,
  815. }
  816. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  817. return srv.(OrganizationServer).FindDataMinAndMax(ctx, req.(*FindDataMinAndMaxReq))
  818. }
  819. return interceptor(ctx, in, info, handler)
  820. }
  821. func _Organization_FindDataCorrelation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  822. in := new(FindDataCorrelationReq)
  823. if err := dec(in); err != nil {
  824. return nil, err
  825. }
  826. if interceptor == nil {
  827. return srv.(OrganizationServer).FindDataCorrelation(ctx, in)
  828. }
  829. info := &grpc.UnaryServerInfo{
  830. Server: srv,
  831. FullMethod: Organization_FindDataCorrelation_FullMethodName,
  832. }
  833. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  834. return srv.(OrganizationServer).FindDataCorrelation(ctx, req.(*FindDataCorrelationReq))
  835. }
  836. return interceptor(ctx, in, info, handler)
  837. }
  838. func _Organization_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  839. in := new(HealthReq)
  840. if err := dec(in); err != nil {
  841. return nil, err
  842. }
  843. if interceptor == nil {
  844. return srv.(OrganizationServer).Health(ctx, in)
  845. }
  846. info := &grpc.UnaryServerInfo{
  847. Server: srv,
  848. FullMethod: Organization_Health_FullMethodName,
  849. }
  850. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  851. return srv.(OrganizationServer).Health(ctx, req.(*HealthReq))
  852. }
  853. return interceptor(ctx, in, info, handler)
  854. }
  855. // Organization_ServiceDesc is the grpc.ServiceDesc for Organization v1.
  856. // It's only intended for direct use with grpc.RegisterService,
  857. // and not to be introspected or modified (even as a copy)
  858. var Organization_ServiceDesc = grpc.ServiceDesc{
  859. ServiceName: "pb.Organization",
  860. HandlerType: (*OrganizationServer)(nil),
  861. Methods: []grpc.MethodDesc{
  862. {
  863. MethodName: "GetWorkingUfByCode",
  864. Handler: _Organization_GetWorkingUfByCode_Handler,
  865. },
  866. {
  867. MethodName: "FindWorkingUfByCycle",
  868. Handler: _Organization_FindWorkingUfByCycle_Handler,
  869. },
  870. {
  871. MethodName: "GetWorkingRoByCode",
  872. Handler: _Organization_GetWorkingRoByCode_Handler,
  873. },
  874. {
  875. MethodName: "GetWorkingChestByCode",
  876. Handler: _Organization_GetWorkingChestByCode_Handler,
  877. },
  878. {
  879. MethodName: "GetWorkingPumpByCode",
  880. Handler: _Organization_GetWorkingPumpByCode_Handler,
  881. },
  882. {
  883. MethodName: "GetWorkingValveByCode",
  884. Handler: _Organization_GetWorkingValveByCode_Handler,
  885. },
  886. {
  887. MethodName: "MultiAddItemHistoryData",
  888. Handler: _Organization_MultiAddItemHistoryData_Handler,
  889. },
  890. {
  891. MethodName: "ItemHistoryDataList",
  892. Handler: _Organization_ItemHistoryDataList_Handler,
  893. },
  894. {
  895. MethodName: "ItemHistoryDataByTime",
  896. Handler: _Organization_ItemHistoryDataByTime_Handler,
  897. },
  898. {
  899. MethodName: "ItemHistoryDataMaxMinByTime",
  900. Handler: _Organization_ItemHistoryDataMaxMinByTime_Handler,
  901. },
  902. {
  903. MethodName: "ItemHistoryDataFirstLastByTime",
  904. Handler: _Organization_ItemHistoryDataFirstLastByTime_Handler,
  905. },
  906. {
  907. MethodName: "ChangeTypeItemHistoryData",
  908. Handler: _Organization_ChangeTypeItemHistoryData_Handler,
  909. },
  910. {
  911. MethodName: "ItemHistoryDataForChart",
  912. Handler: _Organization_ItemHistoryDataForChart_Handler,
  913. },
  914. {
  915. MethodName: "FindAppList",
  916. Handler: _Organization_FindAppList_Handler,
  917. },
  918. {
  919. MethodName: "GetAppInfo",
  920. Handler: _Organization_GetAppInfo_Handler,
  921. },
  922. {
  923. MethodName: "CreateAppInfo",
  924. Handler: _Organization_CreateAppInfo_Handler,
  925. },
  926. {
  927. MethodName: "RemoveAppInfo",
  928. Handler: _Organization_RemoveAppInfo_Handler,
  929. },
  930. {
  931. MethodName: "DisableAppInfo",
  932. Handler: _Organization_DisableAppInfo_Handler,
  933. },
  934. {
  935. MethodName: "EnableAppInfo",
  936. Handler: _Organization_EnableAppInfo_Handler,
  937. },
  938. {
  939. MethodName: "ResetAppSecret",
  940. Handler: _Organization_ResetAppSecret_Handler,
  941. },
  942. {
  943. MethodName: "ExpireAppSecret",
  944. Handler: _Organization_ExpireAppSecret_Handler,
  945. },
  946. {
  947. MethodName: "ResetAppProject",
  948. Handler: _Organization_ResetAppProject_Handler,
  949. },
  950. {
  951. MethodName: "FindDataDescribe",
  952. Handler: _Organization_FindDataDescribe_Handler,
  953. },
  954. {
  955. MethodName: "FindDataMinAndMax",
  956. Handler: _Organization_FindDataMinAndMax_Handler,
  957. },
  958. {
  959. MethodName: "FindDataCorrelation",
  960. Handler: _Organization_FindDataCorrelation_Handler,
  961. },
  962. {
  963. MethodName: "Health",
  964. Handler: _Organization_Health_Handler,
  965. },
  966. },
  967. Streams: []grpc.StreamDesc{},
  968. Metadata: "datacenter.proto",
  969. }