class PackageController {

    @Autowired
    private PackagesService packagesService;

    @WebAspect
    @Operation(summary = "添加安装包信息", description = "添加安装包信息")
    @PutMapping
    public RespModel<String> save(@Validated @RequestBody PackageDTO pkg) {
        packagesService.save(pkg.convertTo());
        return new RespModel<>(RespEnum.UPDATE_OK);
    }

    @WebAspect
    @Operation(summary = "查找所有安装包", description = "查找所有安装包")
    @GetMapping("/list")
    public RespModel<CommentPage<PackageDTO>> findAll(@RequestParam(name = "projectId") int projectId,
                                                      @RequestParam(name = "branch", required = false) String branch,
                                                      @RequestParam(name = "platform", required = false) String platform,
                                                      @RequestParam(name = "packageName", required = false) String packageName,
                                                      @RequestParam(name = "page") int page,
                                                      @RequestParam(name = "pageSize") int pageSize) {<FILL_FUNCTION_BODY>}
}


        Page<Packages> pageable = new Page<>(page, pageSize);

        return new RespModel<>(RespEnum.SEARCH_OK, packagesService.findByProjectId(projectId, branch, platform,
                packageName, pageable));
    
<no_super_class>