17 changed files with 257 additions and 22 deletions
@ -0,0 +1,22 @@ |
|||
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; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class ExternalAppResultDTO { |
|||
|
|||
public String id; |
|||
/** |
|||
* APP名字 |
|||
*/ |
|||
private String appName; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
} |
@ -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