package com.newfiber.termite.controller; import com.newfiber.common.core.web.controller.BaseController; import com.newfiber.common.core.web.domain.Result; import com.newfiber.termite.domain.ProjectInfo; import com.newfiber.termite.domain.request.UploadApiRequest; import com.newfiber.termite.service.IProjectInfoService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import java.util.List; import javax.annotation.Resource; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/termiteProject") @Api(value = "项目管理", tags = "项目管理页面接口") public class ProjectInfoController extends BaseController { @Resource private IProjectInfoService projectInfoService; /** * 通过设备SN获取上传地址 */ @Deprecated @GetMapping("/getUploadApi") @ApiOperation(value = "通过设备SN获取上传地址", position = 60) public Result<List<ProjectInfo>> list(UploadApiRequest request) { List<ProjectInfo> list = projectInfoService.getUploadApi(request.getSn()); return success(list); } @Deprecated @GetMapping("/getOemConfigApi") @ApiOperation(value = "通过设备SN获取OEM厂商的配置读取接口地址(设备获取其他白蚁防治图片接口地址)", position = 70) public Result<List<ProjectInfo>> getOemConfigApi(UploadApiRequest request) { List<ProjectInfo> list = projectInfoService.getOemConfigApi(request.getSn()); return success(list); } }