| | |
| | | * 获取宣教资料库详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:query')") |
| | | @GetMapping(value = "/{id}") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heLibraryService.selectHeLibraryById(id)); |
| | | } |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:add')") |
| | | @Log(title = "宣教资料库", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeLibrary heLibrary) { |
| | | return toAjax(heLibraryService.insertHeLibrary(heLibrary)); |
| | | } |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:edit')") |
| | | @Log(title = "宣教资料库", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLibrary heLibrary) { |
| | | return toAjax(heLibraryService.updateHeLibrary(heLibrary)); |
| | | } |
| | |
| | | */ |
| | | @ApiOperation("新增或修改宣教详情") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateScript") |
| | | public AjaxResult saveOrUpdateScript(@RequestBody HeLibraryVO heLibraryVO) { |
| | | @PostMapping("/saveOrUpdateHeLibrary") |
| | | public AjaxResult saveOrUpdateHeLibrary(@RequestBody HeLibraryVO heLibraryVO) { |
| | | if (ObjectUtils.isEmpty(heLibraryVO)) { |
| | | throw new BaseException("入参为空,请检查入参"); |
| | | } |