forked from rongchao/epmet-cloud-rizhao
19 changed files with 468 additions and 23 deletions
@ -0,0 +1,12 @@ |
|||
package com.epmet.commons.dynamic.datasource.bean; |
|||
|
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
@AllArgsConstructor |
|||
public class DataSourceParam { |
|||
|
|||
private String datasourceName; |
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
@Data |
|||
public class ExternalAppFormDTO { |
|||
|
|||
public interface AddExternalApp {} |
|||
public interface UpdateExternalApp {} |
|||
|
|||
@NotBlank(message = "缺少应用ID", groups = { UpdateExternalApp.class }) |
|||
private String appId; |
|||
|
|||
@NotBlank(message = "缺少应用名称", groups = { AddExternalApp.class, UpdateExternalApp.class }) |
|||
private String appName; |
|||
|
|||
@NotBlank(message = "缺少所属客户ID", groups = { AddExternalApp.class, UpdateExternalApp.class }) |
|||
private String customerId; |
|||
|
|||
private Integer pageNo = 1; |
|||
private Integer pageSize = 10; |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class ExternalAppResultDTO { |
|||
|
|||
public String appId; |
|||
/** |
|||
* APP名字 |
|||
*/ |
|||
private String appName; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 客户名称 |
|||
*/ |
|||
private String customerName; |
|||
|
|||
/** |
|||
* 秘钥 |
|||
*/ |
|||
private String secret; |
|||
|
|||
} |
@ -1,11 +1,14 @@ |
|||
package com.epmet.service; |
|||
|
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.dto.result.ExternalCustomerResultDTO; |
|||
|
|||
import java.util.List; |
|||
import com.epmet.entity.ExternalCustomerEntity; |
|||
|
|||
public interface ExternalCustomerService { |
|||
|
|||
public List<ExternalCustomerResultDTO> list(Integer pageNo, Integer pageSize); |
|||
PageData<ExternalCustomerResultDTO> listPage(Integer pageNo, Integer pageSize); |
|||
|
|||
ExternalCustomerEntity add(String customerName); |
|||
|
|||
ExternalCustomerEntity update(String customerId, String customerName); |
|||
} |
|||
|
Loading…
Reference in new issue