Commit 93909528 authored by mcb's avatar mcb

no message

parent 35851557
package com.jz.dmp.modules.controller.DataIntegration;
import com.jz.common.constant.JsonResult;
import com.jz.dmp.modules.service.OfflineSynchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Description:数据源
* @ClassName: DataSourceController
* @Author Bellamy
* @Date 2020/12/20
*/
@RestController
@RequestMapping("/dataSource")
@Api(tags = "数据集成--数据源")
public class DataSourceController {
@Autowired
private OfflineSynchService offlineSynchService;
/**
* 数据源列表分页查询
* @return
*/
@ApiOperation(value = "数据源列表分页查询", notes = "数据源列表分页查询")
@PostMapping(value = "/delRedisKeys")
public JsonResult delRedisKeys(String key) {
return new JsonResult();
}
}
package com.jz.dmp.modules.controller.DataIntegration;
import com.jz.common.constant.JsonResult;
import com.jz.dmp.modules.controller.DataIntegration.bean.TaskListPageReq;
import com.jz.dmp.modules.service.AtomBaseCacheService;
import com.jz.dmp.modules.service.OfflineSynchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
* @Description:离线同步
* @ClassName: OfflineSynchController
* @Author Bellamy
* @Date 2020/12/20
*/
@RestController
@RequestMapping("/offlineSynch")
@Api(tags = "数据集成--离线同步")
public class OfflineSynchController {
@Autowired
private OfflineSynchService offlineSynchService;
/**
* 任务列表分页查询
* @return
*/
@ApiOperation(value = "任务列表分页查询", notes = "任务列表分页查询")
@PostMapping(value = "/taskListPage")
public JsonResult delRedisKeys(@RequestBody @Validated TaskListPageReq taskListPageReq) {
return new JsonResult();
}
}
package com.jz.dmp.modules.controller.DataIntegration.bean;
/**
* @ClassName: TaskListPageReq
* @Description: 离线任务列表参数对象
* @Author
* @Date 2020/12/21
* @Version 1.0
*/
public class TaskListPageReq {
// @NotNull(message = "父类ID不能空")
private String projectId;
//@NotNull(message = "父类ID不能空")
private String parentId;
private String sourceDb;
private String targetDb;
private String sourceTable;
private String targetTable;
private Integer pageNum = 1;
private Integer pageSize = 30;
public String getProjectId() {
return projectId;
}
public void setProjectId(String projectId) {
this.projectId = projectId;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getSourceDb() {
return sourceDb;
}
public void setSourceDb(String sourceDb) {
this.sourceDb = sourceDb;
}
public String getTargetDb() {
return targetDb;
}
public void setTargetDb(String targetDb) {
this.targetDb = targetDb;
}
public String getSourceTable() {
return sourceTable;
}
public void setSourceTable(String sourceTable) {
this.sourceTable = sourceTable;
}
public String getTargetTable() {
return targetTable;
}
public void setTargetTable(String targetTable) {
this.targetTable = targetTable;
}
public Integer getPageNum() {
return pageNum;
}
public void setPageNum(Integer pageNum) {
this.pageNum = pageNum;
}
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
}
package com.jz.dmp.modules.dao;
/**
* @author Bellamy
* @since 2020-12-020
*/
public interface OfflineSynchDao {
}
\ No newline at end of file
package com.jz.dmp.modules.service;
/**
* @ClassName: OfflineSynchService
* @Description:
* @Author:Bellamy
* @Date 2020/12/19
* @Version 1.0
*/
public interface OfflineSynchService {
}
package com.jz.dmp.modules.service.impl;
import com.jz.dmp.modules.dao.OfflineSynchDao;
import com.jz.dmp.modules.service.OfflineSynchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @Description:离线同步服务层
* @ClassName: DataGoodsApiParamsServiceImpl
* @Author Bellamy
* @Date 2020/12/20
*/
@Service("offlineSynchService")
@Transactional
public class DataGoodsApiParamsServiceImpl implements OfflineSynchService {
@Autowired
private OfflineSynchDao offlineSynchDao;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment