|
@@ -5,10 +5,12 @@ import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.entity.TranLog;
|
|
import com.diagbot.entity.TranLog;
|
|
import com.diagbot.facade.TranLogFacade;
|
|
import com.diagbot.facade.TranLogFacade;
|
|
|
|
+import com.diagbot.vo.IdVO;
|
|
import com.diagbot.vo.TranLogPageVO;
|
|
import com.diagbot.vo.TranLogPageVO;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -44,4 +46,14 @@ public class TranLogController {
|
|
IPage<TranLog> data = tranLogFacade.pageList(tranLogPageVO);
|
|
IPage<TranLog> data = tranLogFacade.pageList(tranLogPageVO);
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "查看接口记录[by:zhaops]",
|
|
|
|
+ notes = "id")
|
|
|
|
+ @PostMapping("/getRecordById")
|
|
|
|
+ @SysLogger("getRecordById")
|
|
|
|
+ @Transactional
|
|
|
|
+ public RespDTO<TranLog> getRecordById(@RequestBody @Valid IdVO idVO) {
|
|
|
|
+ TranLog data = tranLogFacade.getRecordById(idVO);
|
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
|
+ }
|
|
}
|
|
}
|