123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642 |
- package v1
- import (
- "adm-gateway/param/base"
- v1 "adm-gateway/pb/v1"
- )
- // 1. 数据管理表 t_adm_data_management
- type GetDataListQuery struct {
- TableName string `form:"table_name" json:"table_name"`
- Desc string `form:"desc" json:"desc"`
- Level string `form:"level" json:"level"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type GetDataListRequest struct {
- base.Header
- GetDataListQuery
- }
- type GetDataListResponse struct {
- base.Result
- Data *v1.DataListReply `json:"dataList"`
- }
- // 数据搜索列表
- type SearchDataQuery struct {
- TableName string `json:"table_name" form:"table_name"`
- }
- type SearchDataRequest struct {
- base.Header
- SearchDataQuery
- }
- type SearchDataResponse struct {
- base.Result
- Data *v1.SearchDataReply `json:"data"`
- }
- // 所属层搜索列表
- type SearchLevelQuery struct {
- Level string `json:"level" form:"level"`
- }
- type SearchLevelRequest struct {
- base.Header
- SearchLevelQuery
- }
- type SearchLevelResponse struct {
- base.Result
- Data []string `json:"data"`
- }
- // 2.数据关系表 t_adm_task_data_relation
- type GetRelationQuery struct {
- SourceCode string `form:"source_code" json:"source_code"`
- }
- type GetRelationRequest struct {
- base.Header
- GetRelationQuery
- }
- type GetRelationResponse struct {
- base.Result
- Data *v1.RelationReply `json:"relationData"`
- }
- // 任务开关
- type GetSwitchBody struct {
- TaskId int64 `form:"task_id" json:"task_id"`
- IsOn bool `form:"is_on" json:"is_on"`
- }
- type GetSwitchRequest struct {
- base.Header
- GetSwitchBody
- }
- type GetSwitchResponse struct {
- base.Result
- }
- // 3.任务管理表 t_adm_tasks_management
- type GetTaskListQuery struct {
- TaskName string `form:"task_name" json:"task_name"`
- Desc string `form:"desc" json:"desc"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type GetTaskListRequest struct {
- base.Header
- GetTaskListQuery
- }
- type GetTaskListResponse struct {
- base.Result
- Data *v1.TaskListReply `json:"taskList"`
- }
- // 任务搜索列表
- type SearchTaskQuery struct {
- TaskName string `json:"task_name" form:"task_name"`
- }
- type SearchTaskRequest struct {
- base.Header
- SearchTaskQuery
- }
- type SearchTaskResponse struct {
- base.Result
- Data *v1.SearchTaskReply `json:"data"`
- }
- // 4.依赖表 t_adm_task_dependency
- type GetDependencyQuery struct {
- TaskId int64 `form:"task_id" json:"task_id"`
- Type int32 `form:"type" json:"type"`
- }
- type GetDependencyRequest struct {
- base.Header
- GetDependencyQuery
- }
- type GetDependencyResponse struct {
- base.Result
- Data *v1.DependencyReply `json:"dependencyData"`
- }
- // DataSourceRelation
- type GetDataSourceRelationQuery struct {
- SourceCode string `form:"source_code" json:"source_code"`
- TaskId int64 `form:"task_id" json:"task_id"`
- }
- type GetDataSourceRelationRequest struct {
- base.Header
- GetDataSourceRelationQuery
- }
- type GetDataSourceRelationResponse struct {
- base.Result
- Data *v1.DataSourceRelationReply `json:"data"`
- }
- // 手动任务列表 t_adm_offline_task
- type GetManualTaskQuery struct {
- Source string `form:"source" json:"source"`
- TaskName string `form:"task_name" json:"task_name"`
- ManualTaskName string `form:"manual_task_name" json:"manual_task_name"`
- Time1 int64 `form:"time1" json:"time1"`
- Time2 int64 `form:"time2" json:"time2"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type GetManualTaskRequest struct {
- base.Header
- GetManualTaskQuery
- }
- type GetManualTaskResponse struct {
- base.Result
- Data *v1.ManualTaskReply `json:"manualTaskData"`
- }
- // 源表搜索列表
- type SourceQuery struct {
- SourceName string `json:"source_name" form:"source_name"`
- }
- type SourceRequest struct {
- base.Header
- SourceQuery
- }
- type SourceResponse struct {
- base.Result
- Data *v1.SourceReply `json:"data"`
- }
- // 任务列表
- type TaskQuery struct {
- SourceRequest string `json:"source_request" form:"source_request"`
- }
- type TaskRequest struct {
- base.Header
- TaskQuery
- }
- type TaskResponse struct {
- base.Result
- Data *v1.TaskReply `json:"data"`
- }
- // 创建手动任务
- type CreateBody struct {
- TaskName string `form:"task_name" json:"task_name"`
- Type int64 `form:"type" json:"type"`
- Source string `form:"source" json:"source"`
- Sql string `form:"sql" json:"sql"`
- TaskIds []string `form:"task_ids" json:"task_ids"`
- }
- type CreateRequest struct {
- base.Header
- CreateBody
- }
- type CreateResponse struct {
- base.Result
- }
- // 上传
- type UploadFileBody struct {
- TaskName string `form:"task_name" json:"task_name"`
- }
- type UploadFileRequest struct {
- base.Header
- UploadFileBody
- }
- type UploadFileResponse struct {
- base.Result
- Data *v1.UploadFileReply `json:"data"`
- }
- // 字段管理表 t_adm_field_management
- type GetFieldListQuery struct {
- Field string `form:"field" json:"field"`
- Desc string `form:"desc" json:"desc"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type GetFieldListRequest struct {
- base.Header
- GetFieldListQuery
- }
- type GetFieldListResponse struct {
- base.Result
- Data *v1.FieldReply `json:"data"`
- }
- // 导出EXCEL
- type ExcelQuery struct {
- }
- type ExcelRequest struct {
- base.Header
- ExcelQuery
- }
- type ExcelResponse struct {
- base.Result
- Data *v1.ExcelReply `json:"data"`
- }
- // API管理表 t_adm_api_management
- type GetAPIListQuery struct {
- ApiNo string `form:"api_no" json:"api_no"`
- Desc string `form:"desc" json:"desc"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type GetAPIListRequest struct {
- base.Header
- GetAPIListQuery
- }
- type GetAPIListResponse struct {
- base.Result
- Data *v1.APIListReply `json:"data"`
- }
- // 查看API
- type GetCheckAPIQuery struct {
- ApiId int64 `form:"api_id" json:"api_id"`
- }
- type GetCheckAPIRequest struct {
- base.Header
- GetCheckAPIQuery
- }
- type GetCheckAPIResponse struct {
- base.Result
- Data *v1.CheckAPIReply `json:"data"`
- }
- // 删除API
- type GetDeleteAPIPath struct {
- ApiId int64 `uri:"api_id" json:"api_id"`
- }
- type GetDeleteAPIRequest struct {
- base.Header
- GetDeleteAPIPath
- }
- type GetDeleteAPIResponse struct {
- base.Result
- }
- // 密钥管理表 t_adm_api_management
- type GetKeyListQuery struct {
- Key string `form:"key" json:"key"`
- Desc string `form:"desc" json:"desc"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type GetKeyListRequest struct {
- base.Header
- GetKeyListQuery
- }
- type GetKeyListResponse struct {
- base.Result
- Data *v1.KeyListReply `json:"data"`
- }
- // 新增密钥
- type CreateKeyBody struct {
- Desc string `form:"desc" json:"desc"`
- }
- type CreateKeyRequest struct {
- base.Header
- CreateKeyBody
- }
- type CreateKeyResponse struct {
- base.Result
- }
- // 删除密钥
- type DeleteKeyPath struct {
- Key string `uri:"key" json:"key"`
- }
- type DeleteKeyRequest struct {
- base.Header
- DeleteKeyPath
- }
- type DeleteKeyResponse struct {
- base.Result
- }
- // API列表
- type AllAPIQuery struct {
- AllAPI string `json:"all_api" form:"all_api"`
- }
- type AllAPIRequest struct {
- base.Header
- AllAPIQuery
- }
- type AllAPIResponse struct {
- base.Result
- Data *v1.AllAPIReply `json:"data"`
- }
- // 密钥列表
- type AllKeyQuery struct {
- AllKey string `json:"all_key" form:"all_key"`
- }
- type AllKeyRequest struct {
- base.Header
- AllKeyQuery
- }
- type AllKeyResponse struct {
- base.Result
- Data []string `json:"data"`
- }
- // API查询
- type UseAPIQuery struct {
- ApiId int64 `form:"api_id" json:"api_id"`
- }
- type UseAPIRequest struct {
- base.Header
- UseAPIQuery
- }
- type UseAPIResponse struct {
- base.Result
- Data *v1.UseAPIReply `json:"data"`
- }
- // 查看表结构
- type TableStructQuery struct {
- TableName string `json:"table_name" form:"table_name"`
- }
- type TableStructRequest struct {
- base.Header
- TableStructQuery
- }
- type TableStructResponse struct {
- base.Result
- Data *v1.TableStructReply `json:"data"`
- }
- // 车型映射管理
- type StyleMapQuery struct {
- Source string `form:"source" json:"source"`
- State int64 `form:"state" json:"state"`
- ThirdStyleId string `form:"third_style_id" json:"third_style_id"`
- StyleId string `form:"style_id" json:"style_id"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type StyleMapRequest struct {
- base.Header
- StyleMapQuery
- }
- type StyleMapResponse struct {
- base.Result
- Data *v1.StyleMapReply `json:"data"`
- }
- // 编辑
- type EditMapBody struct {
- ThirdStyleId string `form:"third_style_id" json:"third_style_id"`
- StyleId string `form:"style_id" json:"style_id"`
- }
- type EditMapRequest struct {
- base.Header
- EditMapBody
- }
- type EditMapResponse struct {
- base.Result
- Data *v1.EditMapReply `json:"data"`
- }
- // 映射源列表
- type AllSourceQuery struct {
- AllSource string `json:"all_source" form:"all_source"`
- }
- type AllSourceRequest struct {
- base.Header
- AllSourceQuery
- }
- type AllSourceResponse struct {
- base.Result
- Data []string `json:"data"`
- }
- // 信息公告
- type GetAnnouncementQuery struct {
- VinRule string `json:"vin_rule" form:"vin_rule"`
- BrandName string `json:"brand_name" form:"brand_name"`
- ModelNo string `json:"model_no" form:"model_no"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type GetAnnouncementRequest struct {
- base.Header
- GetAnnouncementQuery
- }
- type GetAnnouncementResponse struct {
- base.Result
- Data *v1.AnnouncementReply `json:"data"`
- }
- // 编辑
- type GetEditQuery struct {
- VehicleBatch string `json:"vehicle_batch" form:"vehicle_batch"`
- ModelNo string `json:"model_no" form:"model_no"`
- }
- type GetEditRequest struct {
- base.Header
- GetEditQuery
- }
- type GetEditResponse struct {
- base.Result
- Data *v1.EditReply `json:"data"`
- }
- // 数据导入模板
- type DataImportTemplateQuery struct {
- TemplateName string `form:"template_name" json:"template_name"`
- Page int32 `form:"page" json:"page"`
- PageSize int32 `form:"page_size" json:"page_size"`
- }
- type DataImportTemplateRequest struct {
- base.Header
- DataImportTemplateQuery
- }
- type DataImportTemplateResponse struct {
- base.Result
- Data *v1.DataImportTemplateReply `json:"data"`
- }
- // 新建模板
- type CreateTemplateBody struct {
- TemplateName string `form:"template_name" json:"template_name"`
- Request []string `form:"request" json:"request"`
- TaskName []string `form:"task_name" json:"task_name"`
- }
- type CreateTemplateRequest struct {
- base.Header
- CreateTemplateBody
- }
- type CreateTemplateResponse struct {
- base.Result
- }
- // 修改模板
- type EditTemplateBody struct {
- Id int64 `form:"id" json:"id"`
- TemplateName string `form:"template_name" json:"template_name"`
- Request []string `form:"request" json:"request"`
- TaskName []string `form:"task_name" json:"task_name"`
- }
- type EditTemplateRequest struct {
- base.Header
- EditTemplateBody
- }
- type EditTemplateResponse struct {
- base.Result
- }
- // 删除模板
- type DeleteTemplatePath struct {
- Id int64 `uri:"id" json:"id"`
- }
- type DeleteTemplateRequest struct {
- base.Header
- DeleteTemplatePath
- }
- type DeleteTemplateResponse struct {
- base.Result
- }
- // 数据导入
- //type DataImport struct {
- // Request string `form:"request" json:"request"`
- // Value string `form:"value" json:"value"`
- //}
- type DataImportBody struct {
- Id int64 `form:"id" json:"id"`
- RequestList []*v1.DataImport `form:"request_list" json:"request_list"`
- }
- type DataImportRequest struct {
- base.Header
- DataImportBody
- }
- type DataImportResponse struct {
- base.Result
- }
- // 更新API信息
- type UpdateAPIBody struct {
- Api string `form:"api" json:"api"`
- Param string `form:"param" json:"param"`
- Data string `form:"data" json:"data"`
- }
- type UpdateAPIRequest struct {
- base.Header
- UpdateAPIBody
- }
- type UpdateAPIResponse struct {
- base.Result
- }
|