|
@@ -2,6 +2,7 @@ package com.winhc.phoenix.example.controller;
|
|
|
|
|
|
import com.winhc.phoenix.example.aspect.Timer;
|
|
import com.winhc.phoenix.example.aspect.Timer;
|
|
import com.winhc.phoenix.example.service.LegislationService;
|
|
import com.winhc.phoenix.example.service.LegislationService;
|
|
|
|
+import com.winhc.phoenix.example.vo.legislation.LegislationSearchVo;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
@@ -27,6 +28,9 @@ public class LegislationController {
|
|
, @RequestParam(defaultValue = "0") int from
|
|
, @RequestParam(defaultValue = "0") int from
|
|
, @RequestParam(defaultValue = "10") int size
|
|
, @RequestParam(defaultValue = "10") int size
|
|
) {
|
|
) {
|
|
- return legislationService.search(content, from, size);
|
|
|
|
|
|
+
|
|
|
|
+ LegislationSearchVo of = LegislationSearchVo.of(content, from, size);
|
|
|
|
+
|
|
|
|
+ return legislationService.search(of);
|
|
}
|
|
}
|
|
}
|
|
}
|