| | |
| | | * 查询宣教资料库列表 |
| | | */ |
| | | @ApiOperation("查询宣教资料库列表") |
| | | @PreAuthorize("@ss.hasPermi('system:library:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody HeLibrary heLibrary) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出宣教资料库列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:export')") |
| | | @Log(title = "宣教资料库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, HeLibrary heLibrary) { |
| | |
| | | /** |
| | | * 获取宣教资料库详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(heLibraryService.selectHeLibraryById(id)); |
| | |
| | | /** |
| | | * 新增宣教资料库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:add')") |
| | | @Log(title = "宣教资料库", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeLibrary heLibrary) { |
| | |
| | | /** |
| | | * 修改宣教资料库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:library:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:edit')") |
| | | @Log(title = "宣教资料库", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody HeLibrary heLibrary) { |
| | |
| | | * 删除宣教资料库 |
| | | */ |
| | | @ApiOperation("删除宣教资料库") |
| | | @PreAuthorize("@ss.hasPermi('system:library:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:library:remove')") |
| | | @Log(title = "宣教资料库", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * 新增或修改宣教详情 |
| | | */ |
| | | @ApiOperation("新增或修改宣教详情") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateHeLibrary") |
| | | public AjaxResult saveOrUpdateHeLibrary(@RequestBody HeLibraryVO heLibraryVO) { |
| | | if (ObjectUtils.isEmpty(heLibraryVO)) { |