Package com.bytedesk.core.email
Class EmailSyncController
java.lang.Object
com.bytedesk.core.email.EmailSyncController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EmailRepositoryprivate final EmailRestServiceprivate final EmailSyncService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>org.springframework.http.ResponseEntity<?>org.springframework.http.ResponseEntity<?>getSyncStatus(String uid) org.springframework.http.ResponseEntity<?>manualSync(String uid) org.springframework.http.ResponseEntity<?>restartSync(String uid) org.springframework.http.ResponseEntity<?>org.springframework.http.ResponseEntity<?>org.springframework.http.ResponseEntity<?>org.springframework.http.ResponseEntity<?>testConnection(String uid)
-
Field Details
-
emailSyncService
-
emailRestService
-
emailRepository
-
-
Constructor Details
-
EmailSyncController
public EmailSyncController()
-
-
Method Details
-
startSync
@ActionAnnotation(title="Email", action="\u542f\u52a8\u540c\u6b65", description="start email sync") @PostMapping("/sync/start") public org.springframework.http.ResponseEntity<?> startSync(@RequestParam String uid) -
stopSync
@ActionAnnotation(title="Email", action="\u505c\u6b62\u540c\u6b65", description="stop email sync") @PostMapping("/sync/stop") public org.springframework.http.ResponseEntity<?> stopSync(@RequestParam String uid) -
restartSync
@ActionAnnotation(title="Email", action="\u91cd\u542f\u540c\u6b65", description="restart email sync") @PostMapping("/sync/restart") public org.springframework.http.ResponseEntity<?> restartSync(@RequestParam String uid) -
manualSync
@ActionAnnotation(title="Email", action="\u624b\u52a8\u540c\u6b65", description="trigger manual sync") @PostMapping("/sync/manual") public org.springframework.http.ResponseEntity<?> manualSync(@RequestParam String uid) -
testConnection
@ActionAnnotation(title="Email", action="\u6d4b\u8bd5\u8fde\u63a5", description="test email connection") @PostMapping("/sync/test") public org.springframework.http.ResponseEntity<?> testConnection(@RequestParam String uid) -
getSyncStatus
@ActionAnnotation(title="Email", action="\u67e5\u8be2\u540c\u6b65\u72b6\u6001", description="get sync status") @GetMapping("/sync/status") public org.springframework.http.ResponseEntity<?> getSyncStatus(@RequestParam String uid) -
getSyncOverview
@ActionAnnotation(title="Email", action="\u67e5\u8be2\u540c\u6b65\u6982\u89c8", description="get sync overview") @GetMapping("/sync/overview") public org.springframework.http.ResponseEntity<?> getSyncOverview() -
stopAllSync
@ActionAnnotation(title="Email", action="\u505c\u6b62\u6240\u6709\u540c\u6b65", description="stop all sync tasks") @PostMapping("/sync/stop-all") public org.springframework.http.ResponseEntity<?> stopAllSync() -
batchStartSync
@ActionAnnotation(title="Email", action="\u6279\u91cf\u542f\u52a8\u540c\u6b65", description="batch start sync tasks") @PostMapping("/sync/batch-start") public org.springframework.http.ResponseEntity<?> batchStartSync()
-