10 changed files with 154 additions and 28 deletions
@ -0,0 +1,18 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @dscription 党建园地-项目Constant |
|||
* @author sun |
|||
*/ |
|||
public interface ProjectConstant { |
|||
|
|||
/** |
|||
* 调用gov-project服务,查询项目数据失败 |
|||
*/ |
|||
String SELECT_PROJECT_EXCEPTION = "获取项目数据失败"; |
|||
/** |
|||
* 调用gov-issue服务,查询议题数据失败 |
|||
*/ |
|||
String SELECT_ISSUE_EXCEPTION = "获取议题数据失败"; |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.dto.DemoTestFormDTO; |
|||
import com.epmet.service.GroupService; |
|||
import com.epmet.service.IssueService; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @dscription 党建园地-小组Controller |
|||
* @author sun |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("group") |
|||
public class GroupController { |
|||
|
|||
@Autowired |
|||
private GroupService groupService; |
|||
|
|||
|
|||
} |
@ -1,28 +0,0 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.dto.DemoTestFormDTO; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/5/21 10:24 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/") |
|||
public class ResiHomeController { |
|||
private static final Logger logger = LoggerFactory.getLogger(ResiHomeController.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("resi-home-server请求成功"); |
|||
} |
|||
} |
@ -0,0 +1,8 @@ |
|||
package com.epmet.service; |
|||
|
|||
/** |
|||
* @dscription 党建园地-小组Service |
|||
* @author sun |
|||
*/ |
|||
public interface GroupService { |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.epmet.service.impl; |
|||
|
|||
import com.epmet.service.GroupService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* @dscription 党建园地-小组ServiceImpl |
|||
* @author sun |
|||
*/ |
|||
@Service |
|||
public class GroupServiceImpl implements GroupService { |
|||
} |
Loading…
Reference in new issue