叫号配置接口
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user