Package com.bytedesk.call.gateway
Class CallGatewayRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<CallGatewayRequest,CallGatewayRestService>
com.bytedesk.call.gateway.CallGatewayRestController
@RestController
@RequestMapping("/api/v1/freeswitch/gateway")
public class CallGatewayRestController
extends BaseRestController<CallGatewayRequest,CallGatewayRestService>
Call网关REST控制器
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
create
(CallGatewayRequest request) 创建网关org.springframework.http.ResponseEntity<?>
delete
(CallGatewayRequest request) 删除网关export
(CallGatewayRequest request, jakarta.servlet.http.HttpServletResponse response) 导出网关列表org.springframework.http.ResponseEntity<JsonResult<CallGatewayResponse>>
query
(CallGatewayRequest request) 查询网关详情(兼容旧接口)org.springframework.http.ResponseEntity<?>
queryByOrg
(CallGatewayRequest request) 查询网关列表org.springframework.http.ResponseEntity<?>
queryByUid
(CallGatewayRequest request) 根据uid查询网关详情org.springframework.http.ResponseEntity<?>
queryByUser
(CallGatewayRequest request) 查询网关列表org.springframework.http.ResponseEntity<?>
update
(CallGatewayRequest request) 更新网关Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
gatewayRestService
-
-
Constructor Details
-
CallGatewayRestController
public CallGatewayRestController()
-
-
Method Details
-
queryByOrg
@GetMapping("/query/org") @ActionAnnotation(title="\u7f51\u5173", action="\u67e5\u8be2", description="\u67e5\u8be2\u7f51\u5173\u5217\u8868") public org.springframework.http.ResponseEntity<?> queryByOrg(CallGatewayRequest request) 查询网关列表- Overrides:
queryByOrg
in classBaseRestController<CallGatewayRequest,
CallGatewayRestService>
-
queryByUser
@GetMapping("/query/user") @ActionAnnotation(title="\u7f51\u5173", action="\u67e5\u8be2", description="\u67e5\u8be2\u7528\u6237\u7f51\u5173\u5217\u8868") public org.springframework.http.ResponseEntity<?> queryByUser(CallGatewayRequest request) 查询网关列表- Overrides:
queryByUser
in classBaseRestController<CallGatewayRequest,
CallGatewayRestService>
-
queryByUid
@GetMapping("/query/uid") @ActionAnnotation(title="\u7f51\u5173", action="\u8be6\u60c5", description="\u67e5\u8be2\u7f51\u5173\u8be6\u60c5") public org.springframework.http.ResponseEntity<?> queryByUid(CallGatewayRequest request) 根据uid查询网关详情- Overrides:
queryByUid
in classBaseRestController<CallGatewayRequest,
CallGatewayRestService>
-
query
@GetMapping("/query") @ActionAnnotation(title="\u7f51\u5173", action="\u8be6\u60c5", description="\u67e5\u8be2\u7f51\u5173\u8be6\u60c5") public org.springframework.http.ResponseEntity<JsonResult<CallGatewayResponse>> query(CallGatewayRequest request) 查询网关详情(兼容旧接口) -
create
@PostMapping("/create") @ActionAnnotation(title="\u7f51\u5173", action="\u521b\u5efa", description="\u521b\u5efa\u7f51\u5173") public org.springframework.http.ResponseEntity<?> create(@RequestBody CallGatewayRequest request) 创建网关- Overrides:
create
in classBaseRestController<CallGatewayRequest,
CallGatewayRestService>
-
update
@PostMapping("/update") @ActionAnnotation(title="\u7f51\u5173", action="\u66f4\u65b0", description="\u66f4\u65b0\u7f51\u5173") public org.springframework.http.ResponseEntity<?> update(@RequestBody CallGatewayRequest request) 更新网关- Overrides:
update
in classBaseRestController<CallGatewayRequest,
CallGatewayRestService>
-
delete
@PostMapping("/delete") @ActionAnnotation(title="\u7f51\u5173", action="\u5220\u9664", description="\u5220\u9664\u7f51\u5173") public org.springframework.http.ResponseEntity<?> delete(@RequestBody CallGatewayRequest request) 删除网关- Overrides:
delete
in classBaseRestController<CallGatewayRequest,
CallGatewayRestService>
-
export
@GetMapping("/export") @ActionAnnotation(title="\u7f51\u5173", action="\u5bfc\u51fa", description="\u5bfc\u51fa\u7f51\u5173\u5217\u8868") public Object export(CallGatewayRequest request, jakarta.servlet.http.HttpServletResponse response) 导出网关列表- Overrides:
export
in classBaseRestController<CallGatewayRequest,
CallGatewayRestService> - Parameters:
request
- role- Returns:
- json
-