|
|
@ -2,13 +2,12 @@ package com.elink.esua.epdc.modules.events.controller; |
|
|
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.elink.esua.epdc.dto.events.EpdcEventsDetailDTO; |
|
|
|
import com.elink.esua.epdc.dto.events.form.EpdcEventsReviewFormDTO; |
|
|
|
import com.elink.esua.epdc.modules.events.service.EpdcEventsService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping(Constant.EPDC_APP + "work/event") |
|
|
@ -27,4 +26,17 @@ public class EpdcAppWorkEventsController { |
|
|
|
EpdcEventsDetailDTO data = epdcEventsService.getEvent(id); |
|
|
|
return new Result<EpdcEventsDetailDTO>().ok(data); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件审核 |
|
|
|
* @Params: [dto] |
|
|
|
* @Return: com.elink.esua.epdc.commons.tools.utils.Result |
|
|
|
* @Author: liuchuang |
|
|
|
* @Date: 2019/9/5 9:02 |
|
|
|
*/ |
|
|
|
@PostMapping("review") |
|
|
|
public Result eventReview(@RequestBody EpdcEventsReviewFormDTO dto) { |
|
|
|
ValidatorUtils.validateEntity(dto); |
|
|
|
return epdcEventsService.eventReview(dto); |
|
|
|
} |
|
|
|
} |
|
|
|