Package com.bytedesk.douyin.comment
Class DouyinCommentService
java.lang.Object
com.bytedesk.core.base.BaseRestService<DouyinCommentEntity,DouyinCommentRequest,DouyinCommentResponse>
com.bytedesk.douyin.comment.DouyinCommentService
@Service
public class DouyinCommentService
extends BaseRestService<DouyinCommentEntity,DouyinCommentRequest,DouyinCommentResponse>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse
(DouyinCommentEntity entity) create
(DouyinCommentRequest request) void
delete
(DouyinCommentRequest entity) void
deleteByUid
(String uid) protected DouyinCommentEntity
doSave
(DouyinCommentEntity entity) handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, DouyinCommentEntity entity) org.springframework.data.domain.Page<DouyinCommentResponse>
queryByOrg
(DouyinCommentRequest request) queryByUid
(DouyinCommentRequest request) org.springframework.data.domain.Page<DouyinCommentResponse>
queryByUser
(DouyinCommentRequest request) save
(DouyinCommentEntity entity) update
(DouyinCommentRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
getUidFromRequest, recover
-
Constructor Details
-
DouyinCommentService
public DouyinCommentService()
-
-
Method Details
-
queryByOrg
public org.springframework.data.domain.Page<DouyinCommentResponse> queryByOrg(DouyinCommentRequest request) - Specified by:
queryByOrg
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
queryByUser
public org.springframework.data.domain.Page<DouyinCommentResponse> queryByUser(DouyinCommentRequest request) - Specified by:
queryByUser
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
findByUid
- Specified by:
findByUid
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
create
- Specified by:
create
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
update
- Specified by:
update
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
doSave
- Specified by:
doSave
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
save
- Overrides:
save
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
deleteByUid
- Specified by:
deleteByUid
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
delete
- Specified by:
delete
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
handleOptimisticLockingFailureException
public DouyinCommentEntity handleOptimisticLockingFailureException(org.springframework.orm.ObjectOptimisticLockingFailureException e, DouyinCommentEntity entity) -
convertToResponse
- Specified by:
convertToResponse
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
queryByUid
- Overrides:
queryByUid
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-