Package com.bytedesk.core.webhook
Class WebhookRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<WebhookRequest,WebhookRestService>
com.bytedesk.core.webhook.WebhookRestController
@RestController
@RequestMapping("/api/v1/webhook")
public class WebhookRestController
extends BaseRestController<WebhookRequest,WebhookRestService>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
create
(WebhookRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
delete
(WebhookRequest request) 通用的delete实现 减少子类重复代码export
(WebhookRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>
queryByOrg
(WebhookRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
queryByUid
(WebhookRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
queryByUser
(WebhookRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>
update
(WebhookRequest request) 通用的update实现 减少子类重复代码Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
webhookRestService
-
-
Constructor Details
-
WebhookRestController
public WebhookRestController()
-
-
Method Details
-
queryByOrg
@ActionAnnotation(title="Webhook", action="\u7ec4\u7ec7\u67e5\u8be2", description="query webhook by org") public org.springframework.http.ResponseEntity<?> queryByOrg(WebhookRequest request) Description copied from class:BaseRestController
通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrg
in classBaseRestController<WebhookRequest,
WebhookRestService>
-
queryByUser
@ActionAnnotation(title="Webhook", action="\u7528\u6237\u67e5\u8be2", description="query webhook by user") public org.springframework.http.ResponseEntity<?> queryByUser(WebhookRequest request) Description copied from class:BaseRestController
通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUser
in classBaseRestController<WebhookRequest,
WebhookRestService>
-
queryByUid
@ActionAnnotation(title="Webhook", action="\u67e5\u8be2\u8be6\u60c5", description="query webhook by uid") public org.springframework.http.ResponseEntity<?> queryByUid(WebhookRequest request) Description copied from class:BaseRestController
通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUid
in classBaseRestController<WebhookRequest,
WebhookRestService>
-
create
@ActionAnnotation(title="Webhook", action="\u65b0\u5efa", description="create webhook") public org.springframework.http.ResponseEntity<?> create(WebhookRequest request) Description copied from class:BaseRestController
通用的create实现 减少子类重复代码- Overrides:
create
in classBaseRestController<WebhookRequest,
WebhookRestService>
-
update
@ActionAnnotation(title="Webhook", action="\u66f4\u65b0", description="update webhook") public org.springframework.http.ResponseEntity<?> update(WebhookRequest request) Description copied from class:BaseRestController
通用的update实现 减少子类重复代码- Overrides:
update
in classBaseRestController<WebhookRequest,
WebhookRestService>
-
delete
@ActionAnnotation(title="Webhook", action="\u5220\u9664", description="delete webhook") public org.springframework.http.ResponseEntity<?> delete(WebhookRequest request) Description copied from class:BaseRestController
通用的delete实现 减少子类重复代码- Overrides:
delete
in classBaseRestController<WebhookRequest,
WebhookRestService>
-
export
@ActionAnnotation(title="Webhook", action="\u5bfc\u51fa", description="export webhook") @GetMapping("/export") public Object export(WebhookRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestController
export- Overrides:
export
in classBaseRestController<WebhookRequest,
WebhookRestService> - Parameters:
request
- role- Returns:
- json
-