|
|
@@ -0,0 +1,38 @@
|
|
|
+package com.hr.controller;
|
|
|
+
|
|
|
+import com.hr.param.InterfaceCalledQueryParam;
|
|
|
+import com.hr.param.IpInterfaceParam;
|
|
|
+import com.hr.repository.service.IpOrderService;
|
|
|
+import com.hr.vo.IpInterfaceVO;
|
|
|
+import com.yy.basedevelop.common.data.BasePageResult;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.data.domain.Page;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/ipInterfaceCallback")
|
|
|
+@Tag(name = "接口调用管理")
|
|
|
+public class IpInterfaceCallbackController {
|
|
|
+
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IpOrderService ipOrderService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分页查询
|
|
|
+ *
|
|
|
+ * @param ipInterfaceParam 筛选条件
|
|
|
+ * @return 查询结果
|
|
|
+ */
|
|
|
+ @Operation(summary = "分页查询接口调用记录")
|
|
|
+ @GetMapping
|
|
|
+ public BasePageResult<IpInterfaceVO> pageQuery(@RequestBody InterfaceCalledQueryParam ipInterfaceCalledQueryParam){
|
|
|
+ Page<IpInterfaceVO> ipAccountPOS = ipOrderService.pageQuery(ipInterfaceCalledQueryParam, ipInterfaceCalledQueryParam.getPageNum(), ipInterfaceCalledQueryParam.getPageSize());
|
|
|
+ return BasePageResult.success(ipAccountPOS.getContent(), ipAccountPOS.getTotalElements(), ipInterfaceCalledQueryParam.getPageNum(), ipInterfaceCalledQueryParam.getPageSize());
|
|
|
+ }
|
|
|
+}
|