| | |
| | | import com.ruoyi.system.dto.SysProtocolConfigSaveRequest; |
| | | import com.ruoyi.system.service.ISysProtocolConfigService; |
| | | 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:protocol:view')") |
| | | @PostMapping("/detail") |
| | | public AjaxResult detail(@RequestBody(required = false) SysProtocolConfigDetailRequest request) |
| | | { |
| | |
| | | * 保存协议配置 |
| | | */ |
| | | @Log(title = "协议配置", businessType = BusinessType.UPDATE) |
| | | @PreAuthorize("@ss.hasPermi('visitor:protocol:edit')") |
| | | @PostMapping("/save") |
| | | public AjaxResult save(@RequestBody SysProtocolConfigSaveRequest request) |
| | | { |