Package com.bytedesk.ticket.process
Class TicketProcessRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<TicketProcessRequest>
com.bytedesk.ticket.process.TicketProcessRestController
@RestController
@RequestMapping("/api/v1/ticket/process")
public class TicketProcessRestController
extends BaseRestController<TicketProcessRequest>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TicketProcessRestService
private final TicketProcessService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
create
(TicketProcessRequest request) createorg.springframework.http.ResponseEntity<?>
delete
(TicketProcessRequest request) deleteorg.springframework.http.ResponseEntity<?>
deployProcess
(TicketProcessRequest request) export
(TicketProcessRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>
queryByOrg
(TicketProcessRequest request) org.springframework.http.ResponseEntity<?>
queryByUid
(TicketProcessRequest request) query by uidorg.springframework.http.ResponseEntity<?>
queryByUser
(TicketProcessRequest request) query department usersorg.springframework.http.ResponseEntity<?>
queryProcesses
(TicketProcessRequest request) org.springframework.http.ResponseEntity<?>
undeployProcess
(TicketProcessRequest request) org.springframework.http.ResponseEntity<?>
update
(TicketProcessRequest request) update
-
Field Details
-
processRestService
-
processService
-
-
Constructor Details
-
TicketProcessRestController
public TicketProcessRestController()
-
-
Method Details
-
queryByOrg
- Specified by:
queryByOrg
in classBaseRestController<TicketProcessRequest>
- Returns:
-
queryByUser
Description copied from class:BaseRestController
query department users- Specified by:
queryByUser
in classBaseRestController<TicketProcessRequest>
- Returns:
- json
-
create
Description copied from class:BaseRestController
create- Specified by:
create
in classBaseRestController<TicketProcessRequest>
- Parameters:
request
- role- Returns:
- json
-
update
Description copied from class:BaseRestController
update- Specified by:
update
in classBaseRestController<TicketProcessRequest>
- Parameters:
request
- role- Returns:
- json
-
delete
Description copied from class:BaseRestController
delete- Specified by:
delete
in classBaseRestController<TicketProcessRequest>
- Parameters:
request
- role- Returns:
- json
-
queryProcesses
@RequestMapping("/query/deployments") public org.springframework.http.ResponseEntity<?> queryProcesses(TicketProcessRequest request) -
deployProcess
@PostMapping("/deploy") public org.springframework.http.ResponseEntity<?> deployProcess(@RequestBody TicketProcessRequest request) -
undeployProcess
@PostMapping("/undeploy") public org.springframework.http.ResponseEntity<?> undeployProcess(@RequestBody TicketProcessRequest request) -
export
public Object export(TicketProcessRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestController
export- Specified by:
export
in classBaseRestController<TicketProcessRequest>
- Parameters:
request
- role- Returns:
- json
-
queryByUid
Description copied from class:BaseRestController
query by uid- Specified by:
queryByUid
in classBaseRestController<TicketProcessRequest>
- Parameters:
request
- role- Returns:
- json
-