datacenter_grpc.pb.go 46 KB

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