Package com.bytedesk.core.assistant
Class AssistantService
java.lang.Object
com.bytedesk.core.base.BaseRestService<AssistantEntity,AssistantRequest,AssistantResponse>
com.bytedesk.core.assistant.AssistantService
@Service
public class AssistantService
extends BaseRestService<AssistantEntity,AssistantRequest,AssistantResponse>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AssistantRepository
private final org.modelmapper.ModelMapper
private final UidUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse
(AssistantEntity assistant) create
(AssistantRequest request) void
delete
(AssistantRequest request) void
deleteByUid
(String uid) existsByUid
(String uid) void
handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, AssistantEntity entity) org.springframework.data.domain.Page<AssistantResponse>
queryByOrg
(AssistantRequest request) org.springframework.data.domain.Page<AssistantResponse>
queryByUser
(AssistantRequest request) save
(AssistantEntity entity) update
(AssistantRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest, queryByUid
-
Field Details
-
assistantRepository
-
modelMapper
private final org.modelmapper.ModelMapper modelMapper -
uidUtils
-
-
Constructor Details
-
AssistantService
public AssistantService()
-
-
Method Details
-
queryByOrg
- Specified by:
queryByOrg
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
queryByUser
public org.springframework.data.domain.Page<AssistantResponse> queryByUser(AssistantRequest request) - Specified by:
queryByUser
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
findByUid
- Specified by:
findByUid
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
existsByUid
-
create
- Specified by:
create
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
update
- Specified by:
update
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
save
- Specified by:
save
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
deleteByUid
- Specified by:
deleteByUid
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
delete
- Specified by:
delete
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
handleOptimisticLockingFailureException
public void handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, AssistantEntity entity) - Specified by:
handleOptimisticLockingFailureException
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-
convertToResponse
- Specified by:
convertToResponse
in classBaseRestService<AssistantEntity,
AssistantRequest, AssistantResponse>
-