Package com.bytedesk.wechat.kefu
Class WeChatKefuService
java.lang.Object
com.bytedesk.core.base.BaseRestService<WeChatKefuEntity,WeChatKefuRequest,WeChatKefuResponse>
com.bytedesk.wechat.kefu.WeChatKefuService
@Service
public class WeChatKefuService
extends BaseRestService<WeChatKefuEntity,WeChatKefuRequest,WeChatKefuResponse>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.modelmapper.ModelMapper
private final WeChatKefuRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse
(WeChatKefuEntity entity) create
(WeChatKefuRequest request) void
delete
(WeChatKefuRequest entity) void
deleteByUid
(String uid) void
handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, WeChatKefuEntity entity) org.springframework.data.domain.Page<WeChatKefuResponse>
queryByOrg
(WeChatKefuRequest request) queryByUid
(WeChatKefuRequest request) org.springframework.data.domain.Page<WeChatKefuResponse>
queryByUser
(WeChatKefuRequest request) save
(WeChatKefuEntity entity) update
(WeChatKefuRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest
-
Field Details
-
weChatKefuRepository
-
modelMapper
private org.modelmapper.ModelMapper modelMapper
-
-
Constructor Details
-
WeChatKefuService
public WeChatKefuService()
-
-
Method Details
-
queryByOrg
public org.springframework.data.domain.Page<WeChatKefuResponse> queryByOrg(WeChatKefuRequest request) - Specified by:
queryByOrg
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
queryByUser
public org.springframework.data.domain.Page<WeChatKefuResponse> queryByUser(WeChatKefuRequest request) - Specified by:
queryByUser
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
findByUid
- Specified by:
findByUid
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
create
- Specified by:
create
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
update
- Specified by:
update
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
save
- Specified by:
save
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
deleteByUid
- Specified by:
deleteByUid
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
delete
- Specified by:
delete
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
handleOptimisticLockingFailureException
public void handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, WeChatKefuEntity entity) - Specified by:
handleOptimisticLockingFailureException
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
convertToResponse
- Specified by:
convertToResponse
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-
queryByUid
- Overrides:
queryByUid
in classBaseRestService<WeChatKefuEntity,
WeChatKefuRequest, WeChatKefuResponse>
-