叫号配置接口

This commit is contained in:
2024-09-19 10:16:50 +08:00
parent 66dc7c8581
commit 079bf18d4c
11 changed files with 210 additions and 0 deletions

View File

@@ -113,5 +113,21 @@ public class TbCallTableController {
return ResponseEntity.ok(tbCallService.getCallRecord(shopId, callTableId, page, size));
}
@AnonymousAccess
@GetMapping("config")
public ResponseEntity<?> getConfig(
@RequestParam Integer shopId
) {
return ResponseEntity.ok(tbCallService.getConfig(shopId));
}
@AnonymousAccess
@PutMapping("config")
public ResponseEntity<?> updateConfig(
@RequestBody UpdateConfigDTO configDTO
) {
return ResponseEntity.ok(tbCallService.updateConfig(configDTO));
}
}