package com.ycl.controller;
|
|
import com.alibaba.druid.util.StringUtils;
|
import com.ycl.api.CommonResult;
|
import com.ycl.remote.dto.EventAddParamDto;
|
import com.ycl.remote.dto.EventProcessParamDto;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.*;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@Api(tags = "系统管理-测试")
|
@RestController
|
@RequestMapping("/api/unauthorized/external/event")
|
public class TestController {
|
|
@ApiOperation("添加")
|
@PostMapping("/add")
|
public String add(@RequestBody EventAddParamDto book) {
|
return "{\n" +
|
" \"code\": 0,\n" +
|
" \"msg\": \"OK\",\n" +
|
" \"result\": {\n" +
|
" \"taskcode\": \"202034150102280004\"\n" +
|
"}\n" +
|
"}\n";
|
}
|
|
|
@ApiOperation("详情")
|
@PostMapping("/process")
|
public String process(@RequestBody EventProcessParamDto book) {
|
|
|
return "{\n" +
|
"\t\"msg\": \"OK\",\n" +
|
"\t\"code\": 0,\n" +
|
"\t\"result\": {\n" +
|
"\t\t\"taskcode\": \"202034150102280004\",\n" +
|
"\t\t\"statusName\": \"已结案\",\n" +
|
"\t\t\"dealTime\": \"2020-05-25 12:15:30\",\n" +
|
"\t\t\"dealMsg\": \"已处理\",\n" +
|
"\t\t\"hcczImages\": [\n" +
|
"\t\t\t\" http:// 183.246.199.93:10000/upload/file/2020/05/20/20200520153430691576.jpg\",\n" +
|
"\t\t\t\" http:// 183.246.199.93:10000//upload/file/2020/05/20/20200520153439170369.jpg\",\n" +
|
"\t\t\t\" http:// 183.246.199.93:10000//upload/file/2020/05/20/20200520153454125143.jpg\"\n" +
|
"\t\t]\n" +
|
"\t}\n" +
|
"}";
|
}
|
}
|