| | |
| | | import com.ruoyi.system.dto.SysVisitorConfigSaveRequest; |
| | | import com.ruoyi.system.service.ISysVisitorConfigService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | * 查询当前配置 |
| | | */ |
| | | @Log(title = "访客系统配置", businessType = BusinessType.SELECT) |
| | | @PreAuthorize("@ss.hasPermi('visitor:config:view')") |
| | | @PostMapping("/detail") |
| | | public AjaxResult detail() |
| | | { |
| | |
| | | * 保存配置,支持全量或局部 JSON 更新 |
| | | */ |
| | | @Log(title = "访客系统配置", businessType = BusinessType.UPDATE) |
| | | @PreAuthorize("@ss.hasPermi('visitor:config:edit')") |
| | | @PostMapping("/save") |
| | | public AjaxResult save(@RequestBody SysVisitorConfigSaveRequest request) |
| | | { |