18 changed files with 409 additions and 24 deletions
			
			
		| @ -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