Skip to content

Commit

Permalink
#48 refactor package
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin2lee committed May 11, 2021
1 parent c0fa381 commit 705fed2
Show file tree
Hide file tree
Showing 32 changed files with 60 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
import com.webank.taskman.base.JsonResponse;
import com.webank.taskman.commons.TaskmanRuntimeException;
import com.webank.taskman.service.AttachFileService;
import com.webank.taskman.support.core.PlatformCoreServiceRestClient;
import com.webank.taskman.support.core.dto.DataModelEntityDto;
import com.webank.taskman.support.core.dto.DynamicWorkflowInstCreationInfoDto;
import com.webank.taskman.support.core.dto.ProcessDataPreviewDto;
import com.webank.taskman.support.platform.PlatformCoreServiceRestClient;
import com.webank.taskman.support.platform.dto.DataModelEntityDto;
import com.webank.taskman.support.platform.dto.DynamicWorkflowInstCreationInfoDto;
import com.webank.taskman.support.platform.dto.ProcessDataPreviewDto;
import com.webank.taskman.support.s3.dto.DownloadAttachFileResponse;

@RestController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
import com.webank.taskman.dto.platform.CoreCancelTaskDto;
import com.webank.taskman.service.FormItemTemplateService;
import com.webank.taskman.service.TaskInfoService;
import com.webank.taskman.support.core.CommonResponseDto;
import com.webank.taskman.support.core.dto.PlatformPluginRequestDto;
import com.webank.taskman.support.core.dto.PlatformPluginResponseDto;
import com.webank.taskman.support.core.dto.TaskFormMetaResponseDto;
import com.webank.taskman.support.platform.CommonResponseDto;
import com.webank.taskman.support.platform.dto.PlatformPluginRequestDto;
import com.webank.taskman.support.platform.dto.PlatformPluginResponseDto;
import com.webank.taskman.support.platform.dto.TaskFormMetaResponseDto;

@RestController
@RequestMapping("/v1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.webank.taskman.base.BaseConverter;
import com.webank.taskman.domain.RoleRelation;
import com.webank.taskman.dto.RoleDto;
import com.webank.taskman.support.core.dto.RolesDataResponse;
import com.webank.taskman.support.platform.dto.RolesDataResponse;

@Service
public class RoleRelationConverter implements BaseConverter<RoleDto, RoleRelation> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.webank.taskman.dto.CreateTaskDto;
import com.webank.taskman.dto.req.RequestInfoQueryReqDto;
import com.webank.taskman.dto.resp.RequestInfoQueryResultDto;
import com.webank.taskman.support.core.dto.DynamicWorkflowInstInfoDto;
import com.webank.taskman.support.platform.dto.DynamicWorkflowInstInfoDto;

public interface RequestInfoService extends IService<RequestInfo> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.webank.taskman.dto.req.TaskInfoQueryReqDto;
import com.webank.taskman.dto.resp.RequestInfoInstanceResqDto;
import com.webank.taskman.dto.resp.TaskInfoRespDto;
import com.webank.taskman.support.core.CommonResponseDto;
import com.webank.taskman.support.platform.CommonResponseDto;

public interface TaskInfoService extends IService<TaskInfo> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
import com.webank.taskman.service.FormTemplateService;
import com.webank.taskman.service.RequestInfoService;
import com.webank.taskman.service.RequestTemplateService;
import com.webank.taskman.support.core.PlatformCoreServiceRestClient;
import com.webank.taskman.support.core.dto.DynamicEntityValueDto;
import com.webank.taskman.support.core.dto.DynamicEntityValueDto.DynamicEntityAttrValueDto;
import com.webank.taskman.support.core.dto.DynamicTaskNodeBindInfoDto;
import com.webank.taskman.support.core.dto.DynamicWorkflowInstCreationInfoDto;
import com.webank.taskman.support.core.dto.DynamicWorkflowInstInfoDto;
import com.webank.taskman.support.platform.PlatformCoreServiceRestClient;
import com.webank.taskman.support.platform.dto.DynamicEntityValueDto;
import com.webank.taskman.support.platform.dto.DynamicTaskNodeBindInfoDto;
import com.webank.taskman.support.platform.dto.DynamicWorkflowInstCreationInfoDto;
import com.webank.taskman.support.platform.dto.DynamicWorkflowInstInfoDto;
import com.webank.taskman.support.platform.dto.DynamicEntityValueDto.DynamicEntityAttrValueDto;

@Service
public class RequestInfoServiceImpl extends ServiceImpl<RequestInfoMapper, RequestInfo> implements RequestInfoService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import com.webank.taskman.service.RequestTemplateGroupService;
import com.webank.taskman.service.RequestTemplateService;
import com.webank.taskman.service.RoleRelationService;
import com.webank.taskman.support.core.PlatformCoreServiceRestClient;
import com.webank.taskman.support.platform.PlatformCoreServiceRestClient;

@Service
public class RequestTemplateServiceImpl extends ServiceImpl<RequestTemplateMapper, RequestTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
import com.webank.taskman.service.FormItemInfoService;
import com.webank.taskman.service.RequestInfoService;
import com.webank.taskman.service.TaskInfoService;
import com.webank.taskman.support.core.CommonResponseDto;
import com.webank.taskman.support.core.PlatformCoreServiceRestClient;
import com.webank.taskman.support.platform.CommonResponseDto;
import com.webank.taskman.support.platform.PlatformCoreServiceRestClient;

@Service
public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> implements TaskInfoService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core;
package com.webank.taskman.support.platform;

public class CommonResponseDto {
public final static String STATUS_OK = "OK";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.webank.taskman.support.core;
package com.webank.taskman.support.platform;


import com.webank.taskman.support.RemoteCallException;
import com.webank.taskman.support.core.dto.PlatformResponseDto;
import com.webank.taskman.support.platform.dto.PlatformResponseDto;

public class CoreRemoteCallException extends RemoteCallException {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core;
package com.webank.taskman.support.platform;

import java.util.HashMap;
import java.util.Map;
Expand All @@ -11,8 +11,8 @@

import com.webank.taskman.base.JsonResponse;
import com.webank.taskman.commons.AppProperties.ServiceTaskmanProperties;
import com.webank.taskman.support.core.dto.PlatformResponseDto;
import com.webank.taskman.support.core.dto.PlatformResponseDto.DefaultCoreResponse;
import com.webank.taskman.support.platform.dto.PlatformResponseDto;
import com.webank.taskman.support.platform.dto.PlatformResponseDto.DefaultCoreResponse;
import com.webank.taskman.utils.GsonUtil;
import com.webank.taskman.utils.JsonUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core;
package com.webank.taskman.support.platform;

import java.util.ArrayList;
import java.util.Collections;
Expand All @@ -16,20 +16,20 @@

import com.google.gson.reflect.TypeToken;
import com.webank.taskman.commons.AppProperties.ServiceTaskmanProperties;
import com.webank.taskman.support.platform.dto.DataModelEntityDto;
import com.webank.taskman.support.platform.dto.DynamicWorkflowInstCreationInfoDto;
import com.webank.taskman.support.platform.dto.DynamicWorkflowInstInfoDto;
import com.webank.taskman.support.platform.dto.PluginPackageAttributeDto;
import com.webank.taskman.support.platform.dto.PluginPackageDataModelDto;
import com.webank.taskman.support.platform.dto.ProcessDataPreviewDto;
import com.webank.taskman.support.platform.dto.RolesDataResponse;
import com.webank.taskman.support.platform.dto.TaskNodeDefObjectBindInfoDto;
import com.webank.taskman.support.platform.dto.WorkflowDefInfoDto;
import com.webank.taskman.support.platform.dto.WorkflowNodeDefInfoDto;
import com.webank.taskman.support.platform.dto.PlatformResponseDto.DefaultCoreResponse;
import com.webank.taskman.support.platform.dto.PlatformResponseDto.LinkedHashMapResponse;
import com.webank.taskman.support.platform.dto.PlatformResponseDto.ListDataResponse;
import com.webank.taskman.commons.AuthenticationContextHolder;
import com.webank.taskman.support.core.dto.DataModelEntityDto;
import com.webank.taskman.support.core.dto.DynamicWorkflowInstCreationInfoDto;
import com.webank.taskman.support.core.dto.DynamicWorkflowInstInfoDto;
import com.webank.taskman.support.core.dto.PlatformResponseDto.DefaultCoreResponse;
import com.webank.taskman.support.core.dto.PlatformResponseDto.LinkedHashMapResponse;
import com.webank.taskman.support.core.dto.PlatformResponseDto.ListDataResponse;
import com.webank.taskman.support.core.dto.PluginPackageAttributeDto;
import com.webank.taskman.support.core.dto.PluginPackageDataModelDto;
import com.webank.taskman.support.core.dto.ProcessDataPreviewDto;
import com.webank.taskman.support.core.dto.RolesDataResponse;
import com.webank.taskman.support.core.dto.TaskNodeDefObjectBindInfoDto;
import com.webank.taskman.support.core.dto.WorkflowDefInfoDto;
import com.webank.taskman.support.core.dto.WorkflowNodeDefInfoDto;
import com.webank.taskman.utils.GsonUtil;

@Service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

public class DynamicWorkflowInstInfoDto {
private String id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.LinkedHashMap;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;


import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

public class RolesDataResponse {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

public class TaskFormItemMetaDto {
private String formItemMetaId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

public class TaskFormMetaResponseDto {
public final static String STATUS_OK = "OK";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

public class WorkflowDefInfoDto {
private String procDefId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.webank.taskman.support.core.dto;
package com.webank.taskman.support.platform.dto;

public class WorkflowNodeDefInfoDto {
private String nodeId;
Expand Down

0 comments on commit 705fed2

Please sign in to comment.