adm_management.pb.go 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: adm_management.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. v1 "adm-gateway/pb/v1"
  7. context "context"
  8. fmt "fmt"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. math "math"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("adm_management.proto", fileDescriptor_dcebd7d01e3b1b1a)
  26. }
  27. var fileDescriptor_dcebd7d01e3b1b1a = []byte{
  28. // 695 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x96, 0x51, 0x4f, 0x14, 0x31,
  30. 0x10, 0xc7, 0x7d, 0x50, 0xc4, 0xaa, 0x70, 0x96, 0x43, 0x14, 0xe3, 0x8b, 0x4f, 0x26, 0xc6, 0x23,
  31. 0x28, 0x89, 0x89, 0x89, 0x89, 0x27, 0x07, 0x09, 0x01, 0x12, 0xc2, 0xc1, 0x8b, 0x2f, 0xa6, 0xb7,
  32. 0x3b, 0x81, 0x0d, 0xbd, 0xdd, 0x75, 0xaf, 0x77, 0xb8, 0xdf, 0xcf, 0x0f, 0x66, 0xda, 0x69, 0xa7,
  33. 0x9d, 0xbd, 0xf3, 0xad, 0xf3, 0x9b, 0xf9, 0x4f, 0xa7, 0xb3, 0xd3, 0xde, 0x89, 0xbe, 0xca, 0xa7,
  34. 0xbf, 0xa6, 0xaa, 0x54, 0x37, 0x30, 0x85, 0xd2, 0x0c, 0xea, 0xa6, 0x32, 0x95, 0x14, 0xf5, 0x64,
  35. 0x30, 0x83, 0x66, 0x51, 0x64, 0xb0, 0xfb, 0x6a, 0xb1, 0xbf, 0x97, 0x2b, 0xa3, 0x96, 0xa2, 0x3e,
  36. 0xfd, 0xed, 0x09, 0x71, 0x4e, 0x50, 0x1e, 0x88, 0xf5, 0x91, 0x32, 0xea, 0xac, 0x98, 0x19, 0xb9,
  37. 0x35, 0x58, 0xec, 0x0f, 0x82, 0x75, 0x09, 0xbf, 0xe7, 0x30, 0x33, 0xbb, 0x2f, 0x38, 0xac, 0x75,
  38. 0xfb, 0xee, 0x81, 0xfc, 0x2a, 0xc4, 0x18, 0x54, 0x93, 0xdd, 0x5a, 0x87, 0xdc, 0xb6, 0x21, 0xd1,
  39. 0x0e, 0xca, 0xad, 0x2e, 0x46, 0xed, 0x37, 0xf1, 0x14, 0xe1, 0x19, 0x2c, 0x40, 0xcb, 0x97, 0x31,
  40. 0xca, 0x81, 0xa0, 0xee, 0x2f, 0x71, 0x94, 0x1f, 0x88, 0xf5, 0x4b, 0xd0, 0xca, 0x14, 0x55, 0x89,
  41. 0x05, 0x07, 0x8b, 0x15, 0x1c, 0x21, 0xaa, 0x06, 0x62, 0x6d, 0x7c, 0x5f, 0x98, 0xec, 0x56, 0x3a,
  42. 0x37, 0xae, 0x83, 0x62, 0x33, 0x45, 0xb4, 0xcb, 0x95, 0x9a, 0xdd, 0xc5, 0xb6, 0x04, 0x8b, 0xed,
  43. 0x12, 0x61, 0xa7, 0x2d, 0xd6, 0x91, 0xb6, 0xc5, 0xda, 0x2b, 0xda, 0x82, 0x98, 0xb4, 0x23, 0xa8,
  44. 0xa1, 0xcc, 0xa1, 0xcc, 0x5a, 0xd4, 0x46, 0x9b, 0x69, 0x53, 0x8c, 0xda, 0x4b, 0x21, 0x6d, 0x87,
  45. 0xc7, 0xd5, 0xbc, 0xc9, 0x80, 0xba, 0xf3, 0x36, 0x7c, 0x39, 0xce, 0x43, 0xae, 0x37, 0xff, 0x73,
  46. 0x53, 0x3d, 0xe7, 0xaa, 0x9c, 0x2b, 0x1d, 0xcf, 0x12, 0x6d, 0x56, 0x4f, 0x8a, 0x63, 0xb7, 0x5d,
  47. 0x52, 0xdf, 0x6d, 0xbf, 0x41, 0xda, 0x6d, 0x8f, 0x30, 0xfe, 0xbd, 0x78, 0xe8, 0x76, 0xd9, 0x0c,
  48. 0x4d, 0x0d, 0xb1, 0xcf, 0x23, 0xa0, 0xcc, 0x87, 0x0d, 0x28, 0xe3, 0x33, 0xe3, 0x9a, 0x65, 0x0e,
  49. 0x88, 0x4e, 0x71, 0x5d, 0xeb, 0x4a, 0xe5, 0xc7, 0x85, 0x06, 0x3c, 0x45, 0xb4, 0xd9, 0x29, 0x52,
  50. 0x8c, 0xda, 0x0f, 0xe2, 0xd1, 0x71, 0x01, 0x3a, 0x97, 0x3d, 0xeb, 0x77, 0xcb, 0xa0, 0xd8, 0x48,
  51. 0x08, 0x05, 0x1f, 0xfd, 0xc9, 0x40, 0x63, 0xb0, 0x5b, 0xb2, 0x60, 0x4f, 0x30, 0x78, 0x5f, 0x3c,
  52. 0x1e, 0x5e, 0x9c, 0xb8, 0xe1, 0x92, 0xd6, 0xe9, 0x8d, 0x20, 0xe8, 0x31, 0x46, 0x03, 0x79, 0x78,
  53. 0x0b, 0xd9, 0xdd, 0xf0, 0xe2, 0x04, 0x07, 0x32, 0x58, 0x6c, 0x20, 0x23, 0x44, 0xd5, 0x17, 0xf1,
  54. 0x64, 0x04, 0x1a, 0x0c, 0x58, 0x59, 0x1f, 0x87, 0xc7, 0x9b, 0x41, 0x27, 0x3b, 0x94, 0x2a, 0x3c,
  55. 0x85, 0x36, 0x56, 0xe8, 0x0d, 0x56, 0x21, 0x31, 0xda, 0x0b, 0x7b, 0x7f, 0x0a, 0x2d, 0xee, 0x45,
  56. 0x26, 0xdb, 0x2b, 0xa1, 0x9d, 0x22, 0x49, 0x48, 0xe6, 0x8a, 0x22, 0x13, 0xe1, 0x40, 0xac, 0x0d,
  57. 0xb5, 0xb6, 0x47, 0x73, 0x87, 0xc7, 0x35, 0x1b, 0x86, 0x80, 0xd2, 0x78, 0xbb, 0x4b, 0x88, 0x4f,
  58. 0xb6, 0xd8, 0x4c, 0x11, 0xc5, 0x5f, 0xcf, 0x80, 0xf2, 0xe3, 0x9a, 0xc5, 0x07, 0x44, 0x2f, 0xdb,
  59. 0x95, 0x9a, 0x68, 0x18, 0x9b, 0x66, 0x9e, 0x19, 0x7c, 0xd9, 0x12, 0xc0, 0x5e, 0x36, 0xc6, 0xe9,
  60. 0x13, 0x8f, 0x4d, 0xab, 0xe1, 0x5c, 0xd5, 0xf8, 0x89, 0x83, 0xc5, 0x3e, 0x71, 0x84, 0xf4, 0xa5,
  61. 0x8e, 0xf2, 0xc2, 0x58, 0x91, 0xeb, 0x92, 0x37, 0xd8, 0x97, 0x22, 0x46, 0x0d, 0x1f, 0x6a, 0xed,
  62. 0x6f, 0x68, 0xdf, 0x9f, 0x9b, 0x5f, 0x52, 0xd9, 0xa1, 0x28, 0x1c, 0x89, 0xde, 0xb0, 0x2c, 0xab,
  63. 0x79, 0x99, 0xb9, 0x1f, 0x0f, 0x37, 0x1e, 0x3b, 0x2e, 0x32, 0xa1, 0x21, 0xc5, 0xf6, 0xb2, 0x83,
  64. 0x6e, 0xbb, 0x2d, 0x08, 0x6f, 0xbb, 0x5d, 0xb1, 0xdb, 0x8e, 0x80, 0xbd, 0x6b, 0x27, 0xd3, 0xba,
  65. 0x6a, 0xcc, 0x15, 0x4c, 0x6b, 0x6d, 0x6f, 0x3e, 0xbd, 0x6b, 0x9c, 0x2f, 0xbd, 0x6b, 0x5d, 0x37,
  66. 0xe6, 0x3c, 0x16, 0x1b, 0x38, 0x81, 0x94, 0xef, 0x75, 0x9c, 0xca, 0x6e, 0xae, 0x9d, 0x55, 0x2e,
  67. 0xcc, 0xf3, 0x5d, 0x3c, 0xb3, 0xa5, 0x52, 0x96, 0x9d, 0x50, 0x7c, 0x37, 0xc7, 0xf6, 0xb2, 0x83,
  68. 0x2a, 0xc1, 0x91, 0xe6, 0x95, 0x70, 0xc6, 0x2a, 0xe9, 0xba, 0xe2, 0x2f, 0x07, 0x1d, 0xd7, 0xff,
  69. 0x72, 0x90, 0xcd, 0x7f, 0x39, 0x12, 0x4c, 0xa3, 0x70, 0x5d, 0xe7, 0x2a, 0x79, 0x20, 0xc8, 0x64,
  70. 0xa3, 0x90, 0x50, 0x27, 0xfc, 0xd1, 0xfb, 0xb9, 0xa1, 0xf2, 0xe9, 0xc7, 0x1b, 0x65, 0xe0, 0x5e,
  71. 0xb5, 0x7b, 0xf5, 0x64, 0xb2, 0xe6, 0xfe, 0x5f, 0x7c, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0x7f,
  72. 0x8c, 0xd4, 0xd9, 0x9d, 0x08, 0x00, 0x00,
  73. }
  74. // Reference imports to suppress errors if they are not otherwise used.
  75. var _ context.Context
  76. var _ grpc.ClientConnInterface
  77. // This is a compile-time assertion to ensure that this generated file
  78. // is compatible with the grpc package it is being compiled against.
  79. const _ = grpc.SupportPackageIsVersion6
  80. // ManagementClient is the client API for Management service.
  81. //
  82. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  83. type ManagementClient interface {
  84. // 数据列表
  85. DataList(ctx context.Context, in *v1.DataListRequest, opts ...grpc.CallOption) (*v1.DataListReply, error)
  86. // 数据搜索列表
  87. SearchData(ctx context.Context, in *v1.SearchDataRequest, opts ...grpc.CallOption) (*v1.SearchDataReply, error)
  88. // 所属层搜索列表
  89. SearchLevel(ctx context.Context, in *v1.SearchLevelRequest, opts ...grpc.CallOption) (*v1.SearchLevelReply, error)
  90. // 关系列表
  91. Relation(ctx context.Context, in *v1.RelationRequest, opts ...grpc.CallOption) (*v1.RelationReply, error)
  92. // 开关
  93. Switch(ctx context.Context, in *v1.SwitchRequest, opts ...grpc.CallOption) (*v1.SwitchReply, error)
  94. // 任务列表
  95. TaskList(ctx context.Context, in *v1.TaskListRequest, opts ...grpc.CallOption) (*v1.TaskListReply, error)
  96. // 任务搜索列表
  97. SearchTask(ctx context.Context, in *v1.SearchTaskRequest, opts ...grpc.CallOption) (*v1.SearchTaskReply, error)
  98. // 依赖表
  99. Dependency(ctx context.Context, in *v1.DependencyRequest, opts ...grpc.CallOption) (*v1.DependencyReply, error)
  100. // 血缘关系
  101. DataSourceRelation(ctx context.Context, in *v1.DataSourceRelationRequest, opts ...grpc.CallOption) (*v1.DataSourceRelationReply, error)
  102. // 手动任务列表
  103. ManualTask(ctx context.Context, in *v1.ManualTaskRequest, opts ...grpc.CallOption) (*v1.ManualTaskReply, error)
  104. // 源表搜索列表
  105. Source(ctx context.Context, in *v1.SourceRequest, opts ...grpc.CallOption) (*v1.SourceReply, error)
  106. // 任务列表
  107. Task(ctx context.Context, in *v1.TaskRequest, opts ...grpc.CallOption) (*v1.TaskReply, error)
  108. // 源表创建
  109. Create(ctx context.Context, in *v1.CreateRequest, opts ...grpc.CallOption) (*v1.CreateReply, error)
  110. // 上传创建
  111. UploadFile(ctx context.Context, in *v1.UploadFileRequest, opts ...grpc.CallOption) (*v1.UploadFileReply, error)
  112. // 字段管理
  113. Field(ctx context.Context, in *v1.FieldRequest, opts ...grpc.CallOption) (*v1.FieldReply, error)
  114. // 导出EXCEL
  115. Excel(ctx context.Context, in *v1.ExcelRequest, opts ...grpc.CallOption) (*v1.ExcelReply, error)
  116. // API管理
  117. APIList(ctx context.Context, in *v1.APIListRequest, opts ...grpc.CallOption) (*v1.APIListReply, error)
  118. // 查看API
  119. CheckAPI(ctx context.Context, in *v1.CheckAPIRequest, opts ...grpc.CallOption) (*v1.CheckAPIReply, error)
  120. // 删除API
  121. DeleteAPI(ctx context.Context, in *v1.DeleteAPIRequest, opts ...grpc.CallOption) (*v1.DeleteAPIReply, error)
  122. // 密钥管理
  123. KeyList(ctx context.Context, in *v1.KeyListRequest, opts ...grpc.CallOption) (*v1.KeyListReply, error)
  124. // 新增密钥
  125. CreateKey(ctx context.Context, in *v1.CreateKeyRequest, opts ...grpc.CallOption) (*v1.CreateKeyReply, error)
  126. // 删除密钥
  127. DeleteKey(ctx context.Context, in *v1.DeleteKeyRequest, opts ...grpc.CallOption) (*v1.DeleteKeyReply, error)
  128. // API列表
  129. AllAPI(ctx context.Context, in *v1.AllAPIRequest, opts ...grpc.CallOption) (*v1.AllAPIReply, error)
  130. // 密钥列表
  131. AllKey(ctx context.Context, in *v1.AllKeyRequest, opts ...grpc.CallOption) (*v1.AllKeyReply, error)
  132. // API查询
  133. UseAPI(ctx context.Context, in *v1.UseAPIRequest, opts ...grpc.CallOption) (*v1.UseAPIReply, error)
  134. // 查看表结构
  135. TableStruct(ctx context.Context, in *v1.TableStructRequest, opts ...grpc.CallOption) (*v1.TableStructReply, error)
  136. // 车型映射管理
  137. StyleMap(ctx context.Context, in *v1.StyleMapRequest, opts ...grpc.CallOption) (*v1.StyleMapReply, error)
  138. // 编辑
  139. EditMap(ctx context.Context, in *v1.EditMapRequest, opts ...grpc.CallOption) (*v1.EditMapReply, error)
  140. // 映射源列表
  141. AllSource(ctx context.Context, in *v1.AllSourceRequest, opts ...grpc.CallOption) (*v1.AllSourceReply, error)
  142. // 信息公告
  143. AnnouncementList(ctx context.Context, in *v1.AnnouncementRequest, opts ...grpc.CallOption) (*v1.AnnouncementReply, error)
  144. // 编辑
  145. Edit(ctx context.Context, in *v1.EditRequest, opts ...grpc.CallOption) (*v1.EditReply, error)
  146. // 数据导入模板
  147. DataImportTemplate(ctx context.Context, in *v1.DataImportTemplateRequest, opts ...grpc.CallOption) (*v1.DataImportTemplateReply, error)
  148. // 新建模板
  149. CreateTemplate(ctx context.Context, in *v1.CreateTemplateRequest, opts ...grpc.CallOption) (*v1.CreateTemplateReply, error)
  150. // 修改模板
  151. EditTemplate(ctx context.Context, in *v1.EditTemplateRequest, opts ...grpc.CallOption) (*v1.EditTemplateReply, error)
  152. // 删除模板
  153. DeleteTemplate(ctx context.Context, in *v1.DeleteTemplateRequest, opts ...grpc.CallOption) (*v1.DeleteTemplateReply, error)
  154. // 数据导入
  155. DataImport(ctx context.Context, in *v1.DataImportRequest, opts ...grpc.CallOption) (*v1.DataImportReply, error)
  156. // 更新API表
  157. UpdateAPI(ctx context.Context, in *v1.UpdateAPIRequest, opts ...grpc.CallOption) (*v1.UpdateAPIReply, error)
  158. }
  159. type managementClient struct {
  160. cc grpc.ClientConnInterface
  161. }
  162. func NewManagementClient(cc grpc.ClientConnInterface) ManagementClient {
  163. return &managementClient{cc}
  164. }
  165. func (c *managementClient) DataList(ctx context.Context, in *v1.DataListRequest, opts ...grpc.CallOption) (*v1.DataListReply, error) {
  166. out := new(v1.DataListReply)
  167. err := c.cc.Invoke(ctx, "/pb.service.Management/DataList", in, out, opts...)
  168. if err != nil {
  169. return nil, err
  170. }
  171. return out, nil
  172. }
  173. func (c *managementClient) SearchData(ctx context.Context, in *v1.SearchDataRequest, opts ...grpc.CallOption) (*v1.SearchDataReply, error) {
  174. out := new(v1.SearchDataReply)
  175. err := c.cc.Invoke(ctx, "/pb.service.Management/SearchData", in, out, opts...)
  176. if err != nil {
  177. return nil, err
  178. }
  179. return out, nil
  180. }
  181. func (c *managementClient) SearchLevel(ctx context.Context, in *v1.SearchLevelRequest, opts ...grpc.CallOption) (*v1.SearchLevelReply, error) {
  182. out := new(v1.SearchLevelReply)
  183. err := c.cc.Invoke(ctx, "/pb.service.Management/SearchLevel", in, out, opts...)
  184. if err != nil {
  185. return nil, err
  186. }
  187. return out, nil
  188. }
  189. func (c *managementClient) Relation(ctx context.Context, in *v1.RelationRequest, opts ...grpc.CallOption) (*v1.RelationReply, error) {
  190. out := new(v1.RelationReply)
  191. err := c.cc.Invoke(ctx, "/pb.service.Management/Relation", in, out, opts...)
  192. if err != nil {
  193. return nil, err
  194. }
  195. return out, nil
  196. }
  197. func (c *managementClient) Switch(ctx context.Context, in *v1.SwitchRequest, opts ...grpc.CallOption) (*v1.SwitchReply, error) {
  198. out := new(v1.SwitchReply)
  199. err := c.cc.Invoke(ctx, "/pb.service.Management/Switch", in, out, opts...)
  200. if err != nil {
  201. return nil, err
  202. }
  203. return out, nil
  204. }
  205. func (c *managementClient) TaskList(ctx context.Context, in *v1.TaskListRequest, opts ...grpc.CallOption) (*v1.TaskListReply, error) {
  206. out := new(v1.TaskListReply)
  207. err := c.cc.Invoke(ctx, "/pb.service.Management/TaskList", in, out, opts...)
  208. if err != nil {
  209. return nil, err
  210. }
  211. return out, nil
  212. }
  213. func (c *managementClient) SearchTask(ctx context.Context, in *v1.SearchTaskRequest, opts ...grpc.CallOption) (*v1.SearchTaskReply, error) {
  214. out := new(v1.SearchTaskReply)
  215. err := c.cc.Invoke(ctx, "/pb.service.Management/SearchTask", in, out, opts...)
  216. if err != nil {
  217. return nil, err
  218. }
  219. return out, nil
  220. }
  221. func (c *managementClient) Dependency(ctx context.Context, in *v1.DependencyRequest, opts ...grpc.CallOption) (*v1.DependencyReply, error) {
  222. out := new(v1.DependencyReply)
  223. err := c.cc.Invoke(ctx, "/pb.service.Management/Dependency", in, out, opts...)
  224. if err != nil {
  225. return nil, err
  226. }
  227. return out, nil
  228. }
  229. func (c *managementClient) DataSourceRelation(ctx context.Context, in *v1.DataSourceRelationRequest, opts ...grpc.CallOption) (*v1.DataSourceRelationReply, error) {
  230. out := new(v1.DataSourceRelationReply)
  231. err := c.cc.Invoke(ctx, "/pb.service.Management/DataSourceRelation", in, out, opts...)
  232. if err != nil {
  233. return nil, err
  234. }
  235. return out, nil
  236. }
  237. func (c *managementClient) ManualTask(ctx context.Context, in *v1.ManualTaskRequest, opts ...grpc.CallOption) (*v1.ManualTaskReply, error) {
  238. out := new(v1.ManualTaskReply)
  239. err := c.cc.Invoke(ctx, "/pb.service.Management/ManualTask", in, out, opts...)
  240. if err != nil {
  241. return nil, err
  242. }
  243. return out, nil
  244. }
  245. func (c *managementClient) Source(ctx context.Context, in *v1.SourceRequest, opts ...grpc.CallOption) (*v1.SourceReply, error) {
  246. out := new(v1.SourceReply)
  247. err := c.cc.Invoke(ctx, "/pb.service.Management/Source", in, out, opts...)
  248. if err != nil {
  249. return nil, err
  250. }
  251. return out, nil
  252. }
  253. func (c *managementClient) Task(ctx context.Context, in *v1.TaskRequest, opts ...grpc.CallOption) (*v1.TaskReply, error) {
  254. out := new(v1.TaskReply)
  255. err := c.cc.Invoke(ctx, "/pb.service.Management/Task", in, out, opts...)
  256. if err != nil {
  257. return nil, err
  258. }
  259. return out, nil
  260. }
  261. func (c *managementClient) Create(ctx context.Context, in *v1.CreateRequest, opts ...grpc.CallOption) (*v1.CreateReply, error) {
  262. out := new(v1.CreateReply)
  263. err := c.cc.Invoke(ctx, "/pb.service.Management/Create", in, out, opts...)
  264. if err != nil {
  265. return nil, err
  266. }
  267. return out, nil
  268. }
  269. func (c *managementClient) UploadFile(ctx context.Context, in *v1.UploadFileRequest, opts ...grpc.CallOption) (*v1.UploadFileReply, error) {
  270. out := new(v1.UploadFileReply)
  271. err := c.cc.Invoke(ctx, "/pb.service.Management/UploadFile", in, out, opts...)
  272. if err != nil {
  273. return nil, err
  274. }
  275. return out, nil
  276. }
  277. func (c *managementClient) Field(ctx context.Context, in *v1.FieldRequest, opts ...grpc.CallOption) (*v1.FieldReply, error) {
  278. out := new(v1.FieldReply)
  279. err := c.cc.Invoke(ctx, "/pb.service.Management/Field", in, out, opts...)
  280. if err != nil {
  281. return nil, err
  282. }
  283. return out, nil
  284. }
  285. func (c *managementClient) Excel(ctx context.Context, in *v1.ExcelRequest, opts ...grpc.CallOption) (*v1.ExcelReply, error) {
  286. out := new(v1.ExcelReply)
  287. err := c.cc.Invoke(ctx, "/pb.service.Management/Excel", in, out, opts...)
  288. if err != nil {
  289. return nil, err
  290. }
  291. return out, nil
  292. }
  293. func (c *managementClient) APIList(ctx context.Context, in *v1.APIListRequest, opts ...grpc.CallOption) (*v1.APIListReply, error) {
  294. out := new(v1.APIListReply)
  295. err := c.cc.Invoke(ctx, "/pb.service.Management/APIList", in, out, opts...)
  296. if err != nil {
  297. return nil, err
  298. }
  299. return out, nil
  300. }
  301. func (c *managementClient) CheckAPI(ctx context.Context, in *v1.CheckAPIRequest, opts ...grpc.CallOption) (*v1.CheckAPIReply, error) {
  302. out := new(v1.CheckAPIReply)
  303. err := c.cc.Invoke(ctx, "/pb.service.Management/CheckAPI", in, out, opts...)
  304. if err != nil {
  305. return nil, err
  306. }
  307. return out, nil
  308. }
  309. func (c *managementClient) DeleteAPI(ctx context.Context, in *v1.DeleteAPIRequest, opts ...grpc.CallOption) (*v1.DeleteAPIReply, error) {
  310. out := new(v1.DeleteAPIReply)
  311. err := c.cc.Invoke(ctx, "/pb.service.Management/DeleteAPI", in, out, opts...)
  312. if err != nil {
  313. return nil, err
  314. }
  315. return out, nil
  316. }
  317. func (c *managementClient) KeyList(ctx context.Context, in *v1.KeyListRequest, opts ...grpc.CallOption) (*v1.KeyListReply, error) {
  318. out := new(v1.KeyListReply)
  319. err := c.cc.Invoke(ctx, "/pb.service.Management/KeyList", in, out, opts...)
  320. if err != nil {
  321. return nil, err
  322. }
  323. return out, nil
  324. }
  325. func (c *managementClient) CreateKey(ctx context.Context, in *v1.CreateKeyRequest, opts ...grpc.CallOption) (*v1.CreateKeyReply, error) {
  326. out := new(v1.CreateKeyReply)
  327. err := c.cc.Invoke(ctx, "/pb.service.Management/CreateKey", in, out, opts...)
  328. if err != nil {
  329. return nil, err
  330. }
  331. return out, nil
  332. }
  333. func (c *managementClient) DeleteKey(ctx context.Context, in *v1.DeleteKeyRequest, opts ...grpc.CallOption) (*v1.DeleteKeyReply, error) {
  334. out := new(v1.DeleteKeyReply)
  335. err := c.cc.Invoke(ctx, "/pb.service.Management/DeleteKey", in, out, opts...)
  336. if err != nil {
  337. return nil, err
  338. }
  339. return out, nil
  340. }
  341. func (c *managementClient) AllAPI(ctx context.Context, in *v1.AllAPIRequest, opts ...grpc.CallOption) (*v1.AllAPIReply, error) {
  342. out := new(v1.AllAPIReply)
  343. err := c.cc.Invoke(ctx, "/pb.service.Management/AllAPI", in, out, opts...)
  344. if err != nil {
  345. return nil, err
  346. }
  347. return out, nil
  348. }
  349. func (c *managementClient) AllKey(ctx context.Context, in *v1.AllKeyRequest, opts ...grpc.CallOption) (*v1.AllKeyReply, error) {
  350. out := new(v1.AllKeyReply)
  351. err := c.cc.Invoke(ctx, "/pb.service.Management/AllKey", in, out, opts...)
  352. if err != nil {
  353. return nil, err
  354. }
  355. return out, nil
  356. }
  357. func (c *managementClient) UseAPI(ctx context.Context, in *v1.UseAPIRequest, opts ...grpc.CallOption) (*v1.UseAPIReply, error) {
  358. out := new(v1.UseAPIReply)
  359. err := c.cc.Invoke(ctx, "/pb.service.Management/UseAPI", in, out, opts...)
  360. if err != nil {
  361. return nil, err
  362. }
  363. return out, nil
  364. }
  365. func (c *managementClient) TableStruct(ctx context.Context, in *v1.TableStructRequest, opts ...grpc.CallOption) (*v1.TableStructReply, error) {
  366. out := new(v1.TableStructReply)
  367. err := c.cc.Invoke(ctx, "/pb.service.Management/TableStruct", in, out, opts...)
  368. if err != nil {
  369. return nil, err
  370. }
  371. return out, nil
  372. }
  373. func (c *managementClient) StyleMap(ctx context.Context, in *v1.StyleMapRequest, opts ...grpc.CallOption) (*v1.StyleMapReply, error) {
  374. out := new(v1.StyleMapReply)
  375. err := c.cc.Invoke(ctx, "/pb.service.Management/StyleMap", in, out, opts...)
  376. if err != nil {
  377. return nil, err
  378. }
  379. return out, nil
  380. }
  381. func (c *managementClient) EditMap(ctx context.Context, in *v1.EditMapRequest, opts ...grpc.CallOption) (*v1.EditMapReply, error) {
  382. out := new(v1.EditMapReply)
  383. err := c.cc.Invoke(ctx, "/pb.service.Management/EditMap", in, out, opts...)
  384. if err != nil {
  385. return nil, err
  386. }
  387. return out, nil
  388. }
  389. func (c *managementClient) AllSource(ctx context.Context, in *v1.AllSourceRequest, opts ...grpc.CallOption) (*v1.AllSourceReply, error) {
  390. out := new(v1.AllSourceReply)
  391. err := c.cc.Invoke(ctx, "/pb.service.Management/AllSource", in, out, opts...)
  392. if err != nil {
  393. return nil, err
  394. }
  395. return out, nil
  396. }
  397. func (c *managementClient) AnnouncementList(ctx context.Context, in *v1.AnnouncementRequest, opts ...grpc.CallOption) (*v1.AnnouncementReply, error) {
  398. out := new(v1.AnnouncementReply)
  399. err := c.cc.Invoke(ctx, "/pb.service.Management/AnnouncementList", in, out, opts...)
  400. if err != nil {
  401. return nil, err
  402. }
  403. return out, nil
  404. }
  405. func (c *managementClient) Edit(ctx context.Context, in *v1.EditRequest, opts ...grpc.CallOption) (*v1.EditReply, error) {
  406. out := new(v1.EditReply)
  407. err := c.cc.Invoke(ctx, "/pb.service.Management/Edit", in, out, opts...)
  408. if err != nil {
  409. return nil, err
  410. }
  411. return out, nil
  412. }
  413. func (c *managementClient) DataImportTemplate(ctx context.Context, in *v1.DataImportTemplateRequest, opts ...grpc.CallOption) (*v1.DataImportTemplateReply, error) {
  414. out := new(v1.DataImportTemplateReply)
  415. err := c.cc.Invoke(ctx, "/pb.service.Management/DataImportTemplate", in, out, opts...)
  416. if err != nil {
  417. return nil, err
  418. }
  419. return out, nil
  420. }
  421. func (c *managementClient) CreateTemplate(ctx context.Context, in *v1.CreateTemplateRequest, opts ...grpc.CallOption) (*v1.CreateTemplateReply, error) {
  422. out := new(v1.CreateTemplateReply)
  423. err := c.cc.Invoke(ctx, "/pb.service.Management/CreateTemplate", in, out, opts...)
  424. if err != nil {
  425. return nil, err
  426. }
  427. return out, nil
  428. }
  429. func (c *managementClient) EditTemplate(ctx context.Context, in *v1.EditTemplateRequest, opts ...grpc.CallOption) (*v1.EditTemplateReply, error) {
  430. out := new(v1.EditTemplateReply)
  431. err := c.cc.Invoke(ctx, "/pb.service.Management/EditTemplate", in, out, opts...)
  432. if err != nil {
  433. return nil, err
  434. }
  435. return out, nil
  436. }
  437. func (c *managementClient) DeleteTemplate(ctx context.Context, in *v1.DeleteTemplateRequest, opts ...grpc.CallOption) (*v1.DeleteTemplateReply, error) {
  438. out := new(v1.DeleteTemplateReply)
  439. err := c.cc.Invoke(ctx, "/pb.service.Management/DeleteTemplate", in, out, opts...)
  440. if err != nil {
  441. return nil, err
  442. }
  443. return out, nil
  444. }
  445. func (c *managementClient) DataImport(ctx context.Context, in *v1.DataImportRequest, opts ...grpc.CallOption) (*v1.DataImportReply, error) {
  446. out := new(v1.DataImportReply)
  447. err := c.cc.Invoke(ctx, "/pb.service.Management/DataImport", in, out, opts...)
  448. if err != nil {
  449. return nil, err
  450. }
  451. return out, nil
  452. }
  453. func (c *managementClient) UpdateAPI(ctx context.Context, in *v1.UpdateAPIRequest, opts ...grpc.CallOption) (*v1.UpdateAPIReply, error) {
  454. out := new(v1.UpdateAPIReply)
  455. err := c.cc.Invoke(ctx, "/pb.service.Management/UpdateAPI", in, out, opts...)
  456. if err != nil {
  457. return nil, err
  458. }
  459. return out, nil
  460. }
  461. // ManagementServer is the server API for Management service.
  462. type ManagementServer interface {
  463. // 数据列表
  464. DataList(context.Context, *v1.DataListRequest) (*v1.DataListReply, error)
  465. // 数据搜索列表
  466. SearchData(context.Context, *v1.SearchDataRequest) (*v1.SearchDataReply, error)
  467. // 所属层搜索列表
  468. SearchLevel(context.Context, *v1.SearchLevelRequest) (*v1.SearchLevelReply, error)
  469. // 关系列表
  470. Relation(context.Context, *v1.RelationRequest) (*v1.RelationReply, error)
  471. // 开关
  472. Switch(context.Context, *v1.SwitchRequest) (*v1.SwitchReply, error)
  473. // 任务列表
  474. TaskList(context.Context, *v1.TaskListRequest) (*v1.TaskListReply, error)
  475. // 任务搜索列表
  476. SearchTask(context.Context, *v1.SearchTaskRequest) (*v1.SearchTaskReply, error)
  477. // 依赖表
  478. Dependency(context.Context, *v1.DependencyRequest) (*v1.DependencyReply, error)
  479. // 血缘关系
  480. DataSourceRelation(context.Context, *v1.DataSourceRelationRequest) (*v1.DataSourceRelationReply, error)
  481. // 手动任务列表
  482. ManualTask(context.Context, *v1.ManualTaskRequest) (*v1.ManualTaskReply, error)
  483. // 源表搜索列表
  484. Source(context.Context, *v1.SourceRequest) (*v1.SourceReply, error)
  485. // 任务列表
  486. Task(context.Context, *v1.TaskRequest) (*v1.TaskReply, error)
  487. // 源表创建
  488. Create(context.Context, *v1.CreateRequest) (*v1.CreateReply, error)
  489. // 上传创建
  490. UploadFile(context.Context, *v1.UploadFileRequest) (*v1.UploadFileReply, error)
  491. // 字段管理
  492. Field(context.Context, *v1.FieldRequest) (*v1.FieldReply, error)
  493. // 导出EXCEL
  494. Excel(context.Context, *v1.ExcelRequest) (*v1.ExcelReply, error)
  495. // API管理
  496. APIList(context.Context, *v1.APIListRequest) (*v1.APIListReply, error)
  497. // 查看API
  498. CheckAPI(context.Context, *v1.CheckAPIRequest) (*v1.CheckAPIReply, error)
  499. // 删除API
  500. DeleteAPI(context.Context, *v1.DeleteAPIRequest) (*v1.DeleteAPIReply, error)
  501. // 密钥管理
  502. KeyList(context.Context, *v1.KeyListRequest) (*v1.KeyListReply, error)
  503. // 新增密钥
  504. CreateKey(context.Context, *v1.CreateKeyRequest) (*v1.CreateKeyReply, error)
  505. // 删除密钥
  506. DeleteKey(context.Context, *v1.DeleteKeyRequest) (*v1.DeleteKeyReply, error)
  507. // API列表
  508. AllAPI(context.Context, *v1.AllAPIRequest) (*v1.AllAPIReply, error)
  509. // 密钥列表
  510. AllKey(context.Context, *v1.AllKeyRequest) (*v1.AllKeyReply, error)
  511. // API查询
  512. UseAPI(context.Context, *v1.UseAPIRequest) (*v1.UseAPIReply, error)
  513. // 查看表结构
  514. TableStruct(context.Context, *v1.TableStructRequest) (*v1.TableStructReply, error)
  515. // 车型映射管理
  516. StyleMap(context.Context, *v1.StyleMapRequest) (*v1.StyleMapReply, error)
  517. // 编辑
  518. EditMap(context.Context, *v1.EditMapRequest) (*v1.EditMapReply, error)
  519. // 映射源列表
  520. AllSource(context.Context, *v1.AllSourceRequest) (*v1.AllSourceReply, error)
  521. // 信息公告
  522. AnnouncementList(context.Context, *v1.AnnouncementRequest) (*v1.AnnouncementReply, error)
  523. // 编辑
  524. Edit(context.Context, *v1.EditRequest) (*v1.EditReply, error)
  525. // 数据导入模板
  526. DataImportTemplate(context.Context, *v1.DataImportTemplateRequest) (*v1.DataImportTemplateReply, error)
  527. // 新建模板
  528. CreateTemplate(context.Context, *v1.CreateTemplateRequest) (*v1.CreateTemplateReply, error)
  529. // 修改模板
  530. EditTemplate(context.Context, *v1.EditTemplateRequest) (*v1.EditTemplateReply, error)
  531. // 删除模板
  532. DeleteTemplate(context.Context, *v1.DeleteTemplateRequest) (*v1.DeleteTemplateReply, error)
  533. // 数据导入
  534. DataImport(context.Context, *v1.DataImportRequest) (*v1.DataImportReply, error)
  535. // 更新API表
  536. UpdateAPI(context.Context, *v1.UpdateAPIRequest) (*v1.UpdateAPIReply, error)
  537. }
  538. // UnimplementedManagementServer can be embedded to have forward compatible implementations.
  539. type UnimplementedManagementServer struct {
  540. }
  541. func (*UnimplementedManagementServer) DataList(ctx context.Context, req *v1.DataListRequest) (*v1.DataListReply, error) {
  542. return nil, status.Errorf(codes.Unimplemented, "method DataList not implemented")
  543. }
  544. func (*UnimplementedManagementServer) SearchData(ctx context.Context, req *v1.SearchDataRequest) (*v1.SearchDataReply, error) {
  545. return nil, status.Errorf(codes.Unimplemented, "method SearchData not implemented")
  546. }
  547. func (*UnimplementedManagementServer) SearchLevel(ctx context.Context, req *v1.SearchLevelRequest) (*v1.SearchLevelReply, error) {
  548. return nil, status.Errorf(codes.Unimplemented, "method SearchLevel not implemented")
  549. }
  550. func (*UnimplementedManagementServer) Relation(ctx context.Context, req *v1.RelationRequest) (*v1.RelationReply, error) {
  551. return nil, status.Errorf(codes.Unimplemented, "method Relation not implemented")
  552. }
  553. func (*UnimplementedManagementServer) Switch(ctx context.Context, req *v1.SwitchRequest) (*v1.SwitchReply, error) {
  554. return nil, status.Errorf(codes.Unimplemented, "method Switch not implemented")
  555. }
  556. func (*UnimplementedManagementServer) TaskList(ctx context.Context, req *v1.TaskListRequest) (*v1.TaskListReply, error) {
  557. return nil, status.Errorf(codes.Unimplemented, "method TaskList not implemented")
  558. }
  559. func (*UnimplementedManagementServer) SearchTask(ctx context.Context, req *v1.SearchTaskRequest) (*v1.SearchTaskReply, error) {
  560. return nil, status.Errorf(codes.Unimplemented, "method SearchTask not implemented")
  561. }
  562. func (*UnimplementedManagementServer) Dependency(ctx context.Context, req *v1.DependencyRequest) (*v1.DependencyReply, error) {
  563. return nil, status.Errorf(codes.Unimplemented, "method Dependency not implemented")
  564. }
  565. func (*UnimplementedManagementServer) DataSourceRelation(ctx context.Context, req *v1.DataSourceRelationRequest) (*v1.DataSourceRelationReply, error) {
  566. return nil, status.Errorf(codes.Unimplemented, "method DataSourceRelation not implemented")
  567. }
  568. func (*UnimplementedManagementServer) ManualTask(ctx context.Context, req *v1.ManualTaskRequest) (*v1.ManualTaskReply, error) {
  569. return nil, status.Errorf(codes.Unimplemented, "method ManualTask not implemented")
  570. }
  571. func (*UnimplementedManagementServer) Source(ctx context.Context, req *v1.SourceRequest) (*v1.SourceReply, error) {
  572. return nil, status.Errorf(codes.Unimplemented, "method Source not implemented")
  573. }
  574. func (*UnimplementedManagementServer) Task(ctx context.Context, req *v1.TaskRequest) (*v1.TaskReply, error) {
  575. return nil, status.Errorf(codes.Unimplemented, "method Task not implemented")
  576. }
  577. func (*UnimplementedManagementServer) Create(ctx context.Context, req *v1.CreateRequest) (*v1.CreateReply, error) {
  578. return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
  579. }
  580. func (*UnimplementedManagementServer) UploadFile(ctx context.Context, req *v1.UploadFileRequest) (*v1.UploadFileReply, error) {
  581. return nil, status.Errorf(codes.Unimplemented, "method UploadFile not implemented")
  582. }
  583. func (*UnimplementedManagementServer) Field(ctx context.Context, req *v1.FieldRequest) (*v1.FieldReply, error) {
  584. return nil, status.Errorf(codes.Unimplemented, "method Field not implemented")
  585. }
  586. func (*UnimplementedManagementServer) Excel(ctx context.Context, req *v1.ExcelRequest) (*v1.ExcelReply, error) {
  587. return nil, status.Errorf(codes.Unimplemented, "method Excel not implemented")
  588. }
  589. func (*UnimplementedManagementServer) APIList(ctx context.Context, req *v1.APIListRequest) (*v1.APIListReply, error) {
  590. return nil, status.Errorf(codes.Unimplemented, "method APIList not implemented")
  591. }
  592. func (*UnimplementedManagementServer) CheckAPI(ctx context.Context, req *v1.CheckAPIRequest) (*v1.CheckAPIReply, error) {
  593. return nil, status.Errorf(codes.Unimplemented, "method CheckAPI not implemented")
  594. }
  595. func (*UnimplementedManagementServer) DeleteAPI(ctx context.Context, req *v1.DeleteAPIRequest) (*v1.DeleteAPIReply, error) {
  596. return nil, status.Errorf(codes.Unimplemented, "method DeleteAPI not implemented")
  597. }
  598. func (*UnimplementedManagementServer) KeyList(ctx context.Context, req *v1.KeyListRequest) (*v1.KeyListReply, error) {
  599. return nil, status.Errorf(codes.Unimplemented, "method KeyList not implemented")
  600. }
  601. func (*UnimplementedManagementServer) CreateKey(ctx context.Context, req *v1.CreateKeyRequest) (*v1.CreateKeyReply, error) {
  602. return nil, status.Errorf(codes.Unimplemented, "method CreateKey not implemented")
  603. }
  604. func (*UnimplementedManagementServer) DeleteKey(ctx context.Context, req *v1.DeleteKeyRequest) (*v1.DeleteKeyReply, error) {
  605. return nil, status.Errorf(codes.Unimplemented, "method DeleteKey not implemented")
  606. }
  607. func (*UnimplementedManagementServer) AllAPI(ctx context.Context, req *v1.AllAPIRequest) (*v1.AllAPIReply, error) {
  608. return nil, status.Errorf(codes.Unimplemented, "method AllAPI not implemented")
  609. }
  610. func (*UnimplementedManagementServer) AllKey(ctx context.Context, req *v1.AllKeyRequest) (*v1.AllKeyReply, error) {
  611. return nil, status.Errorf(codes.Unimplemented, "method AllKey not implemented")
  612. }
  613. func (*UnimplementedManagementServer) UseAPI(ctx context.Context, req *v1.UseAPIRequest) (*v1.UseAPIReply, error) {
  614. return nil, status.Errorf(codes.Unimplemented, "method UseAPI not implemented")
  615. }
  616. func (*UnimplementedManagementServer) TableStruct(ctx context.Context, req *v1.TableStructRequest) (*v1.TableStructReply, error) {
  617. return nil, status.Errorf(codes.Unimplemented, "method TableStruct not implemented")
  618. }
  619. func (*UnimplementedManagementServer) StyleMap(ctx context.Context, req *v1.StyleMapRequest) (*v1.StyleMapReply, error) {
  620. return nil, status.Errorf(codes.Unimplemented, "method StyleMap not implemented")
  621. }
  622. func (*UnimplementedManagementServer) EditMap(ctx context.Context, req *v1.EditMapRequest) (*v1.EditMapReply, error) {
  623. return nil, status.Errorf(codes.Unimplemented, "method EditMap not implemented")
  624. }
  625. func (*UnimplementedManagementServer) AllSource(ctx context.Context, req *v1.AllSourceRequest) (*v1.AllSourceReply, error) {
  626. return nil, status.Errorf(codes.Unimplemented, "method AllSource not implemented")
  627. }
  628. func (*UnimplementedManagementServer) AnnouncementList(ctx context.Context, req *v1.AnnouncementRequest) (*v1.AnnouncementReply, error) {
  629. return nil, status.Errorf(codes.Unimplemented, "method AnnouncementList not implemented")
  630. }
  631. func (*UnimplementedManagementServer) Edit(ctx context.Context, req *v1.EditRequest) (*v1.EditReply, error) {
  632. return nil, status.Errorf(codes.Unimplemented, "method Edit not implemented")
  633. }
  634. func (*UnimplementedManagementServer) DataImportTemplate(ctx context.Context, req *v1.DataImportTemplateRequest) (*v1.DataImportTemplateReply, error) {
  635. return nil, status.Errorf(codes.Unimplemented, "method DataImportTemplate not implemented")
  636. }
  637. func (*UnimplementedManagementServer) CreateTemplate(ctx context.Context, req *v1.CreateTemplateRequest) (*v1.CreateTemplateReply, error) {
  638. return nil, status.Errorf(codes.Unimplemented, "method CreateTemplate not implemented")
  639. }
  640. func (*UnimplementedManagementServer) EditTemplate(ctx context.Context, req *v1.EditTemplateRequest) (*v1.EditTemplateReply, error) {
  641. return nil, status.Errorf(codes.Unimplemented, "method EditTemplate not implemented")
  642. }
  643. func (*UnimplementedManagementServer) DeleteTemplate(ctx context.Context, req *v1.DeleteTemplateRequest) (*v1.DeleteTemplateReply, error) {
  644. return nil, status.Errorf(codes.Unimplemented, "method DeleteTemplate not implemented")
  645. }
  646. func (*UnimplementedManagementServer) DataImport(ctx context.Context, req *v1.DataImportRequest) (*v1.DataImportReply, error) {
  647. return nil, status.Errorf(codes.Unimplemented, "method DataImport not implemented")
  648. }
  649. func (*UnimplementedManagementServer) UpdateAPI(ctx context.Context, req *v1.UpdateAPIRequest) (*v1.UpdateAPIReply, error) {
  650. return nil, status.Errorf(codes.Unimplemented, "method UpdateAPI not implemented")
  651. }
  652. func RegisterManagementServer(s *grpc.Server, srv ManagementServer) {
  653. s.RegisterService(&_Management_serviceDesc, srv)
  654. }
  655. func _Management_DataList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  656. in := new(v1.DataListRequest)
  657. if err := dec(in); err != nil {
  658. return nil, err
  659. }
  660. if interceptor == nil {
  661. return srv.(ManagementServer).DataList(ctx, in)
  662. }
  663. info := &grpc.UnaryServerInfo{
  664. Server: srv,
  665. FullMethod: "/pb.service.Management/DataList",
  666. }
  667. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  668. return srv.(ManagementServer).DataList(ctx, req.(*v1.DataListRequest))
  669. }
  670. return interceptor(ctx, in, info, handler)
  671. }
  672. func _Management_SearchData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  673. in := new(v1.SearchDataRequest)
  674. if err := dec(in); err != nil {
  675. return nil, err
  676. }
  677. if interceptor == nil {
  678. return srv.(ManagementServer).SearchData(ctx, in)
  679. }
  680. info := &grpc.UnaryServerInfo{
  681. Server: srv,
  682. FullMethod: "/pb.service.Management/SearchData",
  683. }
  684. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  685. return srv.(ManagementServer).SearchData(ctx, req.(*v1.SearchDataRequest))
  686. }
  687. return interceptor(ctx, in, info, handler)
  688. }
  689. func _Management_SearchLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  690. in := new(v1.SearchLevelRequest)
  691. if err := dec(in); err != nil {
  692. return nil, err
  693. }
  694. if interceptor == nil {
  695. return srv.(ManagementServer).SearchLevel(ctx, in)
  696. }
  697. info := &grpc.UnaryServerInfo{
  698. Server: srv,
  699. FullMethod: "/pb.service.Management/SearchLevel",
  700. }
  701. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  702. return srv.(ManagementServer).SearchLevel(ctx, req.(*v1.SearchLevelRequest))
  703. }
  704. return interceptor(ctx, in, info, handler)
  705. }
  706. func _Management_Relation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  707. in := new(v1.RelationRequest)
  708. if err := dec(in); err != nil {
  709. return nil, err
  710. }
  711. if interceptor == nil {
  712. return srv.(ManagementServer).Relation(ctx, in)
  713. }
  714. info := &grpc.UnaryServerInfo{
  715. Server: srv,
  716. FullMethod: "/pb.service.Management/Relation",
  717. }
  718. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  719. return srv.(ManagementServer).Relation(ctx, req.(*v1.RelationRequest))
  720. }
  721. return interceptor(ctx, in, info, handler)
  722. }
  723. func _Management_Switch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  724. in := new(v1.SwitchRequest)
  725. if err := dec(in); err != nil {
  726. return nil, err
  727. }
  728. if interceptor == nil {
  729. return srv.(ManagementServer).Switch(ctx, in)
  730. }
  731. info := &grpc.UnaryServerInfo{
  732. Server: srv,
  733. FullMethod: "/pb.service.Management/Switch",
  734. }
  735. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  736. return srv.(ManagementServer).Switch(ctx, req.(*v1.SwitchRequest))
  737. }
  738. return interceptor(ctx, in, info, handler)
  739. }
  740. func _Management_TaskList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  741. in := new(v1.TaskListRequest)
  742. if err := dec(in); err != nil {
  743. return nil, err
  744. }
  745. if interceptor == nil {
  746. return srv.(ManagementServer).TaskList(ctx, in)
  747. }
  748. info := &grpc.UnaryServerInfo{
  749. Server: srv,
  750. FullMethod: "/pb.service.Management/TaskList",
  751. }
  752. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  753. return srv.(ManagementServer).TaskList(ctx, req.(*v1.TaskListRequest))
  754. }
  755. return interceptor(ctx, in, info, handler)
  756. }
  757. func _Management_SearchTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  758. in := new(v1.SearchTaskRequest)
  759. if err := dec(in); err != nil {
  760. return nil, err
  761. }
  762. if interceptor == nil {
  763. return srv.(ManagementServer).SearchTask(ctx, in)
  764. }
  765. info := &grpc.UnaryServerInfo{
  766. Server: srv,
  767. FullMethod: "/pb.service.Management/SearchTask",
  768. }
  769. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  770. return srv.(ManagementServer).SearchTask(ctx, req.(*v1.SearchTaskRequest))
  771. }
  772. return interceptor(ctx, in, info, handler)
  773. }
  774. func _Management_Dependency_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  775. in := new(v1.DependencyRequest)
  776. if err := dec(in); err != nil {
  777. return nil, err
  778. }
  779. if interceptor == nil {
  780. return srv.(ManagementServer).Dependency(ctx, in)
  781. }
  782. info := &grpc.UnaryServerInfo{
  783. Server: srv,
  784. FullMethod: "/pb.service.Management/Dependency",
  785. }
  786. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  787. return srv.(ManagementServer).Dependency(ctx, req.(*v1.DependencyRequest))
  788. }
  789. return interceptor(ctx, in, info, handler)
  790. }
  791. func _Management_DataSourceRelation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  792. in := new(v1.DataSourceRelationRequest)
  793. if err := dec(in); err != nil {
  794. return nil, err
  795. }
  796. if interceptor == nil {
  797. return srv.(ManagementServer).DataSourceRelation(ctx, in)
  798. }
  799. info := &grpc.UnaryServerInfo{
  800. Server: srv,
  801. FullMethod: "/pb.service.Management/DataSourceRelation",
  802. }
  803. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  804. return srv.(ManagementServer).DataSourceRelation(ctx, req.(*v1.DataSourceRelationRequest))
  805. }
  806. return interceptor(ctx, in, info, handler)
  807. }
  808. func _Management_ManualTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  809. in := new(v1.ManualTaskRequest)
  810. if err := dec(in); err != nil {
  811. return nil, err
  812. }
  813. if interceptor == nil {
  814. return srv.(ManagementServer).ManualTask(ctx, in)
  815. }
  816. info := &grpc.UnaryServerInfo{
  817. Server: srv,
  818. FullMethod: "/pb.service.Management/ManualTask",
  819. }
  820. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  821. return srv.(ManagementServer).ManualTask(ctx, req.(*v1.ManualTaskRequest))
  822. }
  823. return interceptor(ctx, in, info, handler)
  824. }
  825. func _Management_Source_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  826. in := new(v1.SourceRequest)
  827. if err := dec(in); err != nil {
  828. return nil, err
  829. }
  830. if interceptor == nil {
  831. return srv.(ManagementServer).Source(ctx, in)
  832. }
  833. info := &grpc.UnaryServerInfo{
  834. Server: srv,
  835. FullMethod: "/pb.service.Management/Source",
  836. }
  837. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  838. return srv.(ManagementServer).Source(ctx, req.(*v1.SourceRequest))
  839. }
  840. return interceptor(ctx, in, info, handler)
  841. }
  842. func _Management_Task_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  843. in := new(v1.TaskRequest)
  844. if err := dec(in); err != nil {
  845. return nil, err
  846. }
  847. if interceptor == nil {
  848. return srv.(ManagementServer).Task(ctx, in)
  849. }
  850. info := &grpc.UnaryServerInfo{
  851. Server: srv,
  852. FullMethod: "/pb.service.Management/Task",
  853. }
  854. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  855. return srv.(ManagementServer).Task(ctx, req.(*v1.TaskRequest))
  856. }
  857. return interceptor(ctx, in, info, handler)
  858. }
  859. func _Management_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  860. in := new(v1.CreateRequest)
  861. if err := dec(in); err != nil {
  862. return nil, err
  863. }
  864. if interceptor == nil {
  865. return srv.(ManagementServer).Create(ctx, in)
  866. }
  867. info := &grpc.UnaryServerInfo{
  868. Server: srv,
  869. FullMethod: "/pb.service.Management/Create",
  870. }
  871. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  872. return srv.(ManagementServer).Create(ctx, req.(*v1.CreateRequest))
  873. }
  874. return interceptor(ctx, in, info, handler)
  875. }
  876. func _Management_UploadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  877. in := new(v1.UploadFileRequest)
  878. if err := dec(in); err != nil {
  879. return nil, err
  880. }
  881. if interceptor == nil {
  882. return srv.(ManagementServer).UploadFile(ctx, in)
  883. }
  884. info := &grpc.UnaryServerInfo{
  885. Server: srv,
  886. FullMethod: "/pb.service.Management/UploadFile",
  887. }
  888. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  889. return srv.(ManagementServer).UploadFile(ctx, req.(*v1.UploadFileRequest))
  890. }
  891. return interceptor(ctx, in, info, handler)
  892. }
  893. func _Management_Field_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  894. in := new(v1.FieldRequest)
  895. if err := dec(in); err != nil {
  896. return nil, err
  897. }
  898. if interceptor == nil {
  899. return srv.(ManagementServer).Field(ctx, in)
  900. }
  901. info := &grpc.UnaryServerInfo{
  902. Server: srv,
  903. FullMethod: "/pb.service.Management/Field",
  904. }
  905. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  906. return srv.(ManagementServer).Field(ctx, req.(*v1.FieldRequest))
  907. }
  908. return interceptor(ctx, in, info, handler)
  909. }
  910. func _Management_Excel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  911. in := new(v1.ExcelRequest)
  912. if err := dec(in); err != nil {
  913. return nil, err
  914. }
  915. if interceptor == nil {
  916. return srv.(ManagementServer).Excel(ctx, in)
  917. }
  918. info := &grpc.UnaryServerInfo{
  919. Server: srv,
  920. FullMethod: "/pb.service.Management/Excel",
  921. }
  922. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  923. return srv.(ManagementServer).Excel(ctx, req.(*v1.ExcelRequest))
  924. }
  925. return interceptor(ctx, in, info, handler)
  926. }
  927. func _Management_APIList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  928. in := new(v1.APIListRequest)
  929. if err := dec(in); err != nil {
  930. return nil, err
  931. }
  932. if interceptor == nil {
  933. return srv.(ManagementServer).APIList(ctx, in)
  934. }
  935. info := &grpc.UnaryServerInfo{
  936. Server: srv,
  937. FullMethod: "/pb.service.Management/APIList",
  938. }
  939. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  940. return srv.(ManagementServer).APIList(ctx, req.(*v1.APIListRequest))
  941. }
  942. return interceptor(ctx, in, info, handler)
  943. }
  944. func _Management_CheckAPI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  945. in := new(v1.CheckAPIRequest)
  946. if err := dec(in); err != nil {
  947. return nil, err
  948. }
  949. if interceptor == nil {
  950. return srv.(ManagementServer).CheckAPI(ctx, in)
  951. }
  952. info := &grpc.UnaryServerInfo{
  953. Server: srv,
  954. FullMethod: "/pb.service.Management/CheckAPI",
  955. }
  956. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  957. return srv.(ManagementServer).CheckAPI(ctx, req.(*v1.CheckAPIRequest))
  958. }
  959. return interceptor(ctx, in, info, handler)
  960. }
  961. func _Management_DeleteAPI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  962. in := new(v1.DeleteAPIRequest)
  963. if err := dec(in); err != nil {
  964. return nil, err
  965. }
  966. if interceptor == nil {
  967. return srv.(ManagementServer).DeleteAPI(ctx, in)
  968. }
  969. info := &grpc.UnaryServerInfo{
  970. Server: srv,
  971. FullMethod: "/pb.service.Management/DeleteAPI",
  972. }
  973. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  974. return srv.(ManagementServer).DeleteAPI(ctx, req.(*v1.DeleteAPIRequest))
  975. }
  976. return interceptor(ctx, in, info, handler)
  977. }
  978. func _Management_KeyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  979. in := new(v1.KeyListRequest)
  980. if err := dec(in); err != nil {
  981. return nil, err
  982. }
  983. if interceptor == nil {
  984. return srv.(ManagementServer).KeyList(ctx, in)
  985. }
  986. info := &grpc.UnaryServerInfo{
  987. Server: srv,
  988. FullMethod: "/pb.service.Management/KeyList",
  989. }
  990. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  991. return srv.(ManagementServer).KeyList(ctx, req.(*v1.KeyListRequest))
  992. }
  993. return interceptor(ctx, in, info, handler)
  994. }
  995. func _Management_CreateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  996. in := new(v1.CreateKeyRequest)
  997. if err := dec(in); err != nil {
  998. return nil, err
  999. }
  1000. if interceptor == nil {
  1001. return srv.(ManagementServer).CreateKey(ctx, in)
  1002. }
  1003. info := &grpc.UnaryServerInfo{
  1004. Server: srv,
  1005. FullMethod: "/pb.service.Management/CreateKey",
  1006. }
  1007. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1008. return srv.(ManagementServer).CreateKey(ctx, req.(*v1.CreateKeyRequest))
  1009. }
  1010. return interceptor(ctx, in, info, handler)
  1011. }
  1012. func _Management_DeleteKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1013. in := new(v1.DeleteKeyRequest)
  1014. if err := dec(in); err != nil {
  1015. return nil, err
  1016. }
  1017. if interceptor == nil {
  1018. return srv.(ManagementServer).DeleteKey(ctx, in)
  1019. }
  1020. info := &grpc.UnaryServerInfo{
  1021. Server: srv,
  1022. FullMethod: "/pb.service.Management/DeleteKey",
  1023. }
  1024. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1025. return srv.(ManagementServer).DeleteKey(ctx, req.(*v1.DeleteKeyRequest))
  1026. }
  1027. return interceptor(ctx, in, info, handler)
  1028. }
  1029. func _Management_AllAPI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1030. in := new(v1.AllAPIRequest)
  1031. if err := dec(in); err != nil {
  1032. return nil, err
  1033. }
  1034. if interceptor == nil {
  1035. return srv.(ManagementServer).AllAPI(ctx, in)
  1036. }
  1037. info := &grpc.UnaryServerInfo{
  1038. Server: srv,
  1039. FullMethod: "/pb.service.Management/AllAPI",
  1040. }
  1041. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1042. return srv.(ManagementServer).AllAPI(ctx, req.(*v1.AllAPIRequest))
  1043. }
  1044. return interceptor(ctx, in, info, handler)
  1045. }
  1046. func _Management_AllKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1047. in := new(v1.AllKeyRequest)
  1048. if err := dec(in); err != nil {
  1049. return nil, err
  1050. }
  1051. if interceptor == nil {
  1052. return srv.(ManagementServer).AllKey(ctx, in)
  1053. }
  1054. info := &grpc.UnaryServerInfo{
  1055. Server: srv,
  1056. FullMethod: "/pb.service.Management/AllKey",
  1057. }
  1058. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1059. return srv.(ManagementServer).AllKey(ctx, req.(*v1.AllKeyRequest))
  1060. }
  1061. return interceptor(ctx, in, info, handler)
  1062. }
  1063. func _Management_UseAPI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1064. in := new(v1.UseAPIRequest)
  1065. if err := dec(in); err != nil {
  1066. return nil, err
  1067. }
  1068. if interceptor == nil {
  1069. return srv.(ManagementServer).UseAPI(ctx, in)
  1070. }
  1071. info := &grpc.UnaryServerInfo{
  1072. Server: srv,
  1073. FullMethod: "/pb.service.Management/UseAPI",
  1074. }
  1075. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1076. return srv.(ManagementServer).UseAPI(ctx, req.(*v1.UseAPIRequest))
  1077. }
  1078. return interceptor(ctx, in, info, handler)
  1079. }
  1080. func _Management_TableStruct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1081. in := new(v1.TableStructRequest)
  1082. if err := dec(in); err != nil {
  1083. return nil, err
  1084. }
  1085. if interceptor == nil {
  1086. return srv.(ManagementServer).TableStruct(ctx, in)
  1087. }
  1088. info := &grpc.UnaryServerInfo{
  1089. Server: srv,
  1090. FullMethod: "/pb.service.Management/TableStruct",
  1091. }
  1092. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1093. return srv.(ManagementServer).TableStruct(ctx, req.(*v1.TableStructRequest))
  1094. }
  1095. return interceptor(ctx, in, info, handler)
  1096. }
  1097. func _Management_StyleMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1098. in := new(v1.StyleMapRequest)
  1099. if err := dec(in); err != nil {
  1100. return nil, err
  1101. }
  1102. if interceptor == nil {
  1103. return srv.(ManagementServer).StyleMap(ctx, in)
  1104. }
  1105. info := &grpc.UnaryServerInfo{
  1106. Server: srv,
  1107. FullMethod: "/pb.service.Management/StyleMap",
  1108. }
  1109. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1110. return srv.(ManagementServer).StyleMap(ctx, req.(*v1.StyleMapRequest))
  1111. }
  1112. return interceptor(ctx, in, info, handler)
  1113. }
  1114. func _Management_EditMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1115. in := new(v1.EditMapRequest)
  1116. if err := dec(in); err != nil {
  1117. return nil, err
  1118. }
  1119. if interceptor == nil {
  1120. return srv.(ManagementServer).EditMap(ctx, in)
  1121. }
  1122. info := &grpc.UnaryServerInfo{
  1123. Server: srv,
  1124. FullMethod: "/pb.service.Management/EditMap",
  1125. }
  1126. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1127. return srv.(ManagementServer).EditMap(ctx, req.(*v1.EditMapRequest))
  1128. }
  1129. return interceptor(ctx, in, info, handler)
  1130. }
  1131. func _Management_AllSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1132. in := new(v1.AllSourceRequest)
  1133. if err := dec(in); err != nil {
  1134. return nil, err
  1135. }
  1136. if interceptor == nil {
  1137. return srv.(ManagementServer).AllSource(ctx, in)
  1138. }
  1139. info := &grpc.UnaryServerInfo{
  1140. Server: srv,
  1141. FullMethod: "/pb.service.Management/AllSource",
  1142. }
  1143. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1144. return srv.(ManagementServer).AllSource(ctx, req.(*v1.AllSourceRequest))
  1145. }
  1146. return interceptor(ctx, in, info, handler)
  1147. }
  1148. func _Management_AnnouncementList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1149. in := new(v1.AnnouncementRequest)
  1150. if err := dec(in); err != nil {
  1151. return nil, err
  1152. }
  1153. if interceptor == nil {
  1154. return srv.(ManagementServer).AnnouncementList(ctx, in)
  1155. }
  1156. info := &grpc.UnaryServerInfo{
  1157. Server: srv,
  1158. FullMethod: "/pb.service.Management/AnnouncementList",
  1159. }
  1160. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1161. return srv.(ManagementServer).AnnouncementList(ctx, req.(*v1.AnnouncementRequest))
  1162. }
  1163. return interceptor(ctx, in, info, handler)
  1164. }
  1165. func _Management_Edit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1166. in := new(v1.EditRequest)
  1167. if err := dec(in); err != nil {
  1168. return nil, err
  1169. }
  1170. if interceptor == nil {
  1171. return srv.(ManagementServer).Edit(ctx, in)
  1172. }
  1173. info := &grpc.UnaryServerInfo{
  1174. Server: srv,
  1175. FullMethod: "/pb.service.Management/Edit",
  1176. }
  1177. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1178. return srv.(ManagementServer).Edit(ctx, req.(*v1.EditRequest))
  1179. }
  1180. return interceptor(ctx, in, info, handler)
  1181. }
  1182. func _Management_DataImportTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1183. in := new(v1.DataImportTemplateRequest)
  1184. if err := dec(in); err != nil {
  1185. return nil, err
  1186. }
  1187. if interceptor == nil {
  1188. return srv.(ManagementServer).DataImportTemplate(ctx, in)
  1189. }
  1190. info := &grpc.UnaryServerInfo{
  1191. Server: srv,
  1192. FullMethod: "/pb.service.Management/DataImportTemplate",
  1193. }
  1194. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1195. return srv.(ManagementServer).DataImportTemplate(ctx, req.(*v1.DataImportTemplateRequest))
  1196. }
  1197. return interceptor(ctx, in, info, handler)
  1198. }
  1199. func _Management_CreateTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1200. in := new(v1.CreateTemplateRequest)
  1201. if err := dec(in); err != nil {
  1202. return nil, err
  1203. }
  1204. if interceptor == nil {
  1205. return srv.(ManagementServer).CreateTemplate(ctx, in)
  1206. }
  1207. info := &grpc.UnaryServerInfo{
  1208. Server: srv,
  1209. FullMethod: "/pb.service.Management/CreateTemplate",
  1210. }
  1211. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1212. return srv.(ManagementServer).CreateTemplate(ctx, req.(*v1.CreateTemplateRequest))
  1213. }
  1214. return interceptor(ctx, in, info, handler)
  1215. }
  1216. func _Management_EditTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1217. in := new(v1.EditTemplateRequest)
  1218. if err := dec(in); err != nil {
  1219. return nil, err
  1220. }
  1221. if interceptor == nil {
  1222. return srv.(ManagementServer).EditTemplate(ctx, in)
  1223. }
  1224. info := &grpc.UnaryServerInfo{
  1225. Server: srv,
  1226. FullMethod: "/pb.service.Management/EditTemplate",
  1227. }
  1228. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1229. return srv.(ManagementServer).EditTemplate(ctx, req.(*v1.EditTemplateRequest))
  1230. }
  1231. return interceptor(ctx, in, info, handler)
  1232. }
  1233. func _Management_DeleteTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1234. in := new(v1.DeleteTemplateRequest)
  1235. if err := dec(in); err != nil {
  1236. return nil, err
  1237. }
  1238. if interceptor == nil {
  1239. return srv.(ManagementServer).DeleteTemplate(ctx, in)
  1240. }
  1241. info := &grpc.UnaryServerInfo{
  1242. Server: srv,
  1243. FullMethod: "/pb.service.Management/DeleteTemplate",
  1244. }
  1245. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1246. return srv.(ManagementServer).DeleteTemplate(ctx, req.(*v1.DeleteTemplateRequest))
  1247. }
  1248. return interceptor(ctx, in, info, handler)
  1249. }
  1250. func _Management_DataImport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1251. in := new(v1.DataImportRequest)
  1252. if err := dec(in); err != nil {
  1253. return nil, err
  1254. }
  1255. if interceptor == nil {
  1256. return srv.(ManagementServer).DataImport(ctx, in)
  1257. }
  1258. info := &grpc.UnaryServerInfo{
  1259. Server: srv,
  1260. FullMethod: "/pb.service.Management/DataImport",
  1261. }
  1262. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1263. return srv.(ManagementServer).DataImport(ctx, req.(*v1.DataImportRequest))
  1264. }
  1265. return interceptor(ctx, in, info, handler)
  1266. }
  1267. func _Management_UpdateAPI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1268. in := new(v1.UpdateAPIRequest)
  1269. if err := dec(in); err != nil {
  1270. return nil, err
  1271. }
  1272. if interceptor == nil {
  1273. return srv.(ManagementServer).UpdateAPI(ctx, in)
  1274. }
  1275. info := &grpc.UnaryServerInfo{
  1276. Server: srv,
  1277. FullMethod: "/pb.service.Management/UpdateAPI",
  1278. }
  1279. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1280. return srv.(ManagementServer).UpdateAPI(ctx, req.(*v1.UpdateAPIRequest))
  1281. }
  1282. return interceptor(ctx, in, info, handler)
  1283. }
  1284. var _Management_serviceDesc = grpc.ServiceDesc{
  1285. ServiceName: "pb.service.Management",
  1286. HandlerType: (*ManagementServer)(nil),
  1287. Methods: []grpc.MethodDesc{
  1288. {
  1289. MethodName: "DataList",
  1290. Handler: _Management_DataList_Handler,
  1291. },
  1292. {
  1293. MethodName: "SearchData",
  1294. Handler: _Management_SearchData_Handler,
  1295. },
  1296. {
  1297. MethodName: "SearchLevel",
  1298. Handler: _Management_SearchLevel_Handler,
  1299. },
  1300. {
  1301. MethodName: "Relation",
  1302. Handler: _Management_Relation_Handler,
  1303. },
  1304. {
  1305. MethodName: "Switch",
  1306. Handler: _Management_Switch_Handler,
  1307. },
  1308. {
  1309. MethodName: "TaskList",
  1310. Handler: _Management_TaskList_Handler,
  1311. },
  1312. {
  1313. MethodName: "SearchTask",
  1314. Handler: _Management_SearchTask_Handler,
  1315. },
  1316. {
  1317. MethodName: "Dependency",
  1318. Handler: _Management_Dependency_Handler,
  1319. },
  1320. {
  1321. MethodName: "DataSourceRelation",
  1322. Handler: _Management_DataSourceRelation_Handler,
  1323. },
  1324. {
  1325. MethodName: "ManualTask",
  1326. Handler: _Management_ManualTask_Handler,
  1327. },
  1328. {
  1329. MethodName: "Source",
  1330. Handler: _Management_Source_Handler,
  1331. },
  1332. {
  1333. MethodName: "Task",
  1334. Handler: _Management_Task_Handler,
  1335. },
  1336. {
  1337. MethodName: "Create",
  1338. Handler: _Management_Create_Handler,
  1339. },
  1340. {
  1341. MethodName: "UploadFile",
  1342. Handler: _Management_UploadFile_Handler,
  1343. },
  1344. {
  1345. MethodName: "Field",
  1346. Handler: _Management_Field_Handler,
  1347. },
  1348. {
  1349. MethodName: "Excel",
  1350. Handler: _Management_Excel_Handler,
  1351. },
  1352. {
  1353. MethodName: "APIList",
  1354. Handler: _Management_APIList_Handler,
  1355. },
  1356. {
  1357. MethodName: "CheckAPI",
  1358. Handler: _Management_CheckAPI_Handler,
  1359. },
  1360. {
  1361. MethodName: "DeleteAPI",
  1362. Handler: _Management_DeleteAPI_Handler,
  1363. },
  1364. {
  1365. MethodName: "KeyList",
  1366. Handler: _Management_KeyList_Handler,
  1367. },
  1368. {
  1369. MethodName: "CreateKey",
  1370. Handler: _Management_CreateKey_Handler,
  1371. },
  1372. {
  1373. MethodName: "DeleteKey",
  1374. Handler: _Management_DeleteKey_Handler,
  1375. },
  1376. {
  1377. MethodName: "AllAPI",
  1378. Handler: _Management_AllAPI_Handler,
  1379. },
  1380. {
  1381. MethodName: "AllKey",
  1382. Handler: _Management_AllKey_Handler,
  1383. },
  1384. {
  1385. MethodName: "UseAPI",
  1386. Handler: _Management_UseAPI_Handler,
  1387. },
  1388. {
  1389. MethodName: "TableStruct",
  1390. Handler: _Management_TableStruct_Handler,
  1391. },
  1392. {
  1393. MethodName: "StyleMap",
  1394. Handler: _Management_StyleMap_Handler,
  1395. },
  1396. {
  1397. MethodName: "EditMap",
  1398. Handler: _Management_EditMap_Handler,
  1399. },
  1400. {
  1401. MethodName: "AllSource",
  1402. Handler: _Management_AllSource_Handler,
  1403. },
  1404. {
  1405. MethodName: "AnnouncementList",
  1406. Handler: _Management_AnnouncementList_Handler,
  1407. },
  1408. {
  1409. MethodName: "Edit",
  1410. Handler: _Management_Edit_Handler,
  1411. },
  1412. {
  1413. MethodName: "DataImportTemplate",
  1414. Handler: _Management_DataImportTemplate_Handler,
  1415. },
  1416. {
  1417. MethodName: "CreateTemplate",
  1418. Handler: _Management_CreateTemplate_Handler,
  1419. },
  1420. {
  1421. MethodName: "EditTemplate",
  1422. Handler: _Management_EditTemplate_Handler,
  1423. },
  1424. {
  1425. MethodName: "DeleteTemplate",
  1426. Handler: _Management_DeleteTemplate_Handler,
  1427. },
  1428. {
  1429. MethodName: "DataImport",
  1430. Handler: _Management_DataImport_Handler,
  1431. },
  1432. {
  1433. MethodName: "UpdateAPI",
  1434. Handler: _Management_UpdateAPI_Handler,
  1435. },
  1436. },
  1437. Streams: []grpc.StreamDesc{},
  1438. Metadata: "adm_management.proto",
  1439. }