|
|
@ -25,7 +25,6 @@ import javax.annotation.Resource; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.validation.Valid; |
|
|
|
import java.io.IOException; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import static com.win.framework.common.pojo.CommonResult.success; |
|
|
@ -51,10 +50,9 @@ public class TrendsController { |
|
|
|
|
|
|
|
@GetMapping("/list") |
|
|
|
@Operation(summary = "获得动态记录列表") |
|
|
|
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|
|
|
@PreAuthorize("@ss.hasPermission('infra:trends:query')") |
|
|
|
public CommonResult<List<TrendsRespVO>> getTrendsList(@RequestParam("ids") Collection<Long> ids) { |
|
|
|
List<TrendsDO> list = trendsService.getTrendsList(ids); |
|
|
|
public CommonResult<List<TrendsRespVO>> getTrendsList(@Valid TrendsExportReqVO exportReqVO) { |
|
|
|
List<TrendsDO> list = trendsService.getTrendsList(exportReqVO); |
|
|
|
return success(TrendsConvert.INSTANCE.convertList(list)); |
|
|
|
} |
|
|
|
|
|
|
|