6 changed files with 0 additions and 144 deletions
@ -1,21 +0,0 @@ |
|||||
package com.epmet.dto.form; |
|
||||
|
|
||||
import lombok.Data; |
|
||||
|
|
||||
import javax.validation.constraints.NotBlank; |
|
||||
import java.io.Serializable; |
|
||||
|
|
||||
/** |
|
||||
* @Description 测试入参 |
|
||||
* @Author yinzuomei |
|
||||
* @Date 2020/5/8 10:00 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class DemoTestFormDTO implements Serializable { |
|
||||
private static final long serialVersionUID = 4859779755214502427L; |
|
||||
@NotBlank(message = "客户id不能为空") |
|
||||
private String customerId; |
|
||||
@NotBlank(message = "网格id不能为空") |
|
||||
private String gridId; |
|
||||
} |
|
||||
|
|
@ -1,27 +0,0 @@ |
|||||
package com.epmet.controller; |
|
||||
|
|
||||
import com.epmet.commons.tools.utils.Result; |
|
||||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
||||
import com.epmet.dto.form.DemoTestFormDTO; |
|
||||
import org.slf4j.Logger; |
|
||||
import org.slf4j.LoggerFactory; |
|
||||
import org.springframework.web.bind.annotation.*; |
|
||||
|
|
||||
/** |
|
||||
* @Description 测试 |
|
||||
* @Author yinzuomei |
|
||||
* @Date 2020/5/7 22:47 |
|
||||
*/ |
|
||||
@RestController |
|
||||
@RequestMapping("demo") |
|
||||
public class GovIssueDemoController { |
|
||||
private static final Logger logger = LoggerFactory.getLogger(GovIssueDemoController.class); |
|
||||
|
|
||||
/* @PostMapping("test") |
|
||||
public Result test(@RequestBody DemoTestFormDTO formDTO) { |
|
||||
ValidatorUtils.validateEntity(formDTO); |
|
||||
logger.info(String.format("请求成功客户id[%s],网格id[%s]",formDTO.getCustomerId(),formDTO.getGridId())); |
|
||||
return new Result().ok("gov-issue-server请求成功"); |
|
||||
}*/ |
|
||||
} |
|
||||
|
|
@ -1,27 +0,0 @@ |
|||||
package com.epmet.controller; |
|
||||
|
|
||||
import com.epmet.commons.tools.utils.Result; |
|
||||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
||||
import com.epmet.dto.form.DemoTestFormDTO; |
|
||||
import org.slf4j.Logger; |
|
||||
import org.slf4j.LoggerFactory; |
|
||||
import org.springframework.web.bind.annotation.*; |
|
||||
|
|
||||
/** |
|
||||
* @Description 测试 |
|
||||
* @Author yinzuomei |
|
||||
* @Date 2020/5/7 22:47 |
|
||||
*/ |
|
||||
@RestController |
|
||||
@RequestMapping("demo") |
|
||||
public class ResiHallDemoController { |
|
||||
private static final Logger logger = LoggerFactory.getLogger(ResiHallDemoController.class); |
|
||||
|
|
||||
/* @PostMapping("test") |
|
||||
public Result test(@RequestBody DemoTestFormDTO formDTO) { |
|
||||
logger.info(String.format("请求成功客户id[%s],网格id[%s]",formDTO.getCustomerId(),formDTO.getGridId())); |
|
||||
ValidatorUtils.validateEntity(formDTO); |
|
||||
return new Result().ok("resi-hall-server请求成功"); |
|
||||
}*/ |
|
||||
} |
|
||||
|
|
@ -1,21 +0,0 @@ |
|||||
package com.epmet.dto.form; |
|
||||
|
|
||||
import lombok.Data; |
|
||||
|
|
||||
import javax.validation.constraints.NotBlank; |
|
||||
import java.io.Serializable; |
|
||||
|
|
||||
/** |
|
||||
* @Description 测试入参 |
|
||||
* @Author yinzuomei |
|
||||
* @Date 2020/5/8 10:00 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class DemoTestFormDTO implements Serializable { |
|
||||
private static final long serialVersionUID = 4859779755214502427L; |
|
||||
@NotBlank(message = "客户id不能为空") |
|
||||
private String customerId; |
|
||||
@NotBlank(message = "网格id不能为空") |
|
||||
private String gridId; |
|
||||
} |
|
||||
|
|
@ -1,27 +0,0 @@ |
|||||
package com.epmet.controller; |
|
||||
|
|
||||
import com.epmet.commons.tools.utils.Result; |
|
||||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
||||
import com.epmet.dto.form.DemoTestFormDTO; |
|
||||
import org.slf4j.Logger; |
|
||||
import org.slf4j.LoggerFactory; |
|
||||
import org.springframework.web.bind.annotation.*; |
|
||||
|
|
||||
/** |
|
||||
* @Description 测试 |
|
||||
* @Author yinzuomei |
|
||||
* @Date 2020/5/7 22:47 |
|
||||
*/ |
|
||||
@RestController |
|
||||
@RequestMapping("demo") |
|
||||
public class GovProjectDemoController { |
|
||||
private static final Logger logger = LoggerFactory.getLogger(GovProjectDemoController.class); |
|
||||
|
|
||||
@PostMapping("test") |
|
||||
public Result test(@RequestBody DemoTestFormDTO formDTO) { |
|
||||
ValidatorUtils.validateEntity(formDTO); |
|
||||
logger.info(String.format("请求成功客户id[%s],网格id[%s]",formDTO.getCustomerId(),formDTO.getGridId())); |
|
||||
return new Result().ok("gov-project-server请求成功"); |
|
||||
} |
|
||||
} |
|
||||
|
|
@ -1,21 +0,0 @@ |
|||||
package com.epmet.dto.form; |
|
||||
|
|
||||
import lombok.Data; |
|
||||
|
|
||||
import javax.validation.constraints.NotBlank; |
|
||||
import java.io.Serializable; |
|
||||
|
|
||||
/** |
|
||||
* @Description 测试入参 |
|
||||
* @Author yinzuomei |
|
||||
* @Date 2020/5/8 10:00 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class DemoTestFormDTO implements Serializable { |
|
||||
private static final long serialVersionUID = 4859779755214502427L; |
|
||||
@NotBlank(message = "客户id不能为空") |
|
||||
private String customerId; |
|
||||
@NotBlank(message = "网格id不能为空") |
|
||||
private String gridId; |
|
||||
} |
|
||||
|
|
Loading…
Reference in new issue