| | |
| | | import com.mzl.flower.base.BaseController; |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.dto.request.sms.SmsTaskDetailQueryDTO; |
| | | import com.mzl.flower.dto.request.sms.SmsTaskQueryDTO; |
| | | import com.mzl.flower.dto.response.sms.SmsPhoneResultVO; |
| | | import com.mzl.flower.dto.response.sms.SmsTaskDetailVO; |
| | | import com.mzl.flower.service.sms.SmsTaskDetailService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * @author @TaoJie |
| | |
| | | public class SmsTaskDetailController extends BaseController { |
| | | |
| | | private final SmsTaskDetailService smsTaskDetailService; |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "任务详情列表", httpMethod = "GET") |
| | | public ResponseEntity<ReturnDataDTO<Page<SmsTaskDetailVO>>> getSmsTaskList(Page page, SmsTaskQueryDTO dto) { |
| | | public ResponseEntity<ReturnDataDTO<Page<SmsPhoneResultVO>>> getSmsTaskList(Page page, SmsTaskDetailQueryDTO dto) { |
| | | return returnData(R.SUCCESS.getCode(), smsTaskDetailService.queryPage(dto, page)); |
| | | } |
| | | @GetMapping("/taskStatistics") |
| | | @ApiOperation(value = "任务详情列表", httpMethod = "GET") |
| | | public ResponseEntity<ReturnDataDTO<SmsTaskDetailVO> >taskStatistics(@NotNull(message = "id不能为空") Long id ) { |
| | | return returnData(R.SUCCESS.getCode(), smsTaskDetailService.getCountBySmsTaskId(id)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |