@@ -1,7 +1,9 @@ | |||
package com.tuoheng.admin.controller; | |||
import com.tuoheng.admin.service.IInspectionFileService; | |||
import com.tuoheng.common.core.utils.JsonResult; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.web.bind.annotation.GetMapping; | |||
import org.springframework.web.bind.annotation.RequestMapping; | |||
import org.springframework.web.bind.annotation.RestController; | |||
@@ -16,5 +18,14 @@ public class InspectionFileController { | |||
@Autowired | |||
private IInspectionFileService iInspectionFileService; | |||
/** | |||
* 问题类型和任务名称 | |||
* @return | |||
*/ | |||
@GetMapping("/getQuestionList") | |||
public JsonResult getQuestionList(){ | |||
return iInspectionFileService.getQuestionList(); | |||
} | |||
} |
@@ -1,8 +1,11 @@ | |||
package com.tuoheng.admin.service; | |||
import com.tuoheng.common.core.utils.JsonResult; | |||
/** | |||
* @Author ChengWang | |||
* @Date 2022/11/29 | |||
*/ | |||
public interface IInspectionFileService { | |||
JsonResult getQuestionList(); | |||
} |
@@ -1,14 +1,40 @@ | |||
package com.tuoheng.admin.service.impl; | |||
import com.tuoheng.admin.mapper.InspectionFileMapper; | |||
import com.tuoheng.admin.mapper.InspectionMapper; | |||
import com.tuoheng.admin.service.IInspectionFileService; | |||
import com.tuoheng.common.core.utils.JsonResult; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.stereotype.Service; | |||
/** | |||
* 任务问题管理 前端控制器 | |||
* | |||
* @Author ChengWang | |||
* @Date 2022/11/29 | |||
*/ | |||
@Service | |||
@Slf4j | |||
public class InspectionFileServiceImpl implements IInspectionFileService { | |||
@Autowired | |||
private InspectionFileMapper inspectionFileMapper; | |||
@Autowired | |||
private InspectionMapper inspectionMapper; | |||
/** | |||
* 问题类型和任务名称 | |||
* @return | |||
*/ | |||
@Override | |||
public JsonResult getQuestionList() { | |||
return null; | |||
} | |||
} |
@@ -0,0 +1,39 @@ | |||
package com.tuoheng.admin.vo; | |||
import lombok.Data; | |||
/** | |||
*任务问题返回实体类 | |||
* | |||
* @Author ChengWang | |||
* @Date 2022/11/29 | |||
*/ | |||
@Data | |||
public class InspectionFileVo { | |||
/** | |||
* 任务名称 | |||
*/ | |||
private String name; | |||
/** | |||
* 问题id | |||
*/ | |||
private String id; | |||
/** | |||
* 问题经度 | |||
*/ | |||
private String latitude; | |||
/** | |||
* 问题经度 | |||
*/ | |||
private String longitude; | |||
/** | |||
* 问题类型:1坑槽,2积水,3裂缝 | |||
*/ | |||
private Integer type; | |||
} |