|
@@ -1,9 +1,12 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.entity.ServiceInfo;
|
|
|
+import com.diagbot.entity.wrapper.ProductServiceWrapper;
|
|
|
import com.diagbot.facade.ServiceInfoFacade;
|
|
|
import com.diagbot.vo.ServiceSaveVO;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -13,8 +16,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
@@ -66,5 +67,14 @@ public class ServiceInfoController {
|
|
|
List<ServiceInfo> list = serviceInfoFacade.getServiceListByCurrentUser();
|
|
|
return RespDTO.onSuc(list);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取当前登录用户的服务分页列表")
|
|
|
+ @PostMapping("/getServiceListPageByCurrentUser")
|
|
|
+ @SysLogger("getServiceListPageByCurrentUser")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO getServiceListPageByCurrentUser(Page<ServiceInfo> page) {
|
|
|
+ IPage<ServiceInfo> list = serviceInfoFacade.getServiceListPageByCurrentUser(page);
|
|
|
+ return RespDTO.onSuc(list);
|
|
|
+ }
|
|
|
}
|
|
|
|