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