Package com.bytedesk.douyin.comment
Class DouyinCommentRestService
java.lang.Object
com.bytedesk.core.base.BaseRestService<DouyinCommentEntity,DouyinCommentRequest,DouyinCommentResponse>
com.bytedesk.douyin.comment.DouyinCommentRestService
@Service
public class DouyinCommentRestService
extends BaseRestService<DouyinCommentEntity,DouyinCommentRequest,DouyinCommentResponse>
-
Field Summary
Fields inherited from class com.bytedesk.core.base.BaseRestService
authService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToResponse
(DouyinCommentEntity entity) create
(DouyinCommentRequest request) protected org.springframework.data.jpa.domain.Specification<DouyinCommentEntity>
createSpecification
(DouyinCommentRequest request) 创建Specification对象,子类必须实现 用于queryByOrg的通用实现void
delete
(DouyinCommentRequest entity) void
deleteByUid
(String uid) protected DouyinCommentEntity
doSave
(DouyinCommentEntity entity) 子类实现具体的保存逻辑protected org.springframework.data.domain.Page<DouyinCommentEntity>
executePageQuery
(org.springframework.data.jpa.domain.Specification<DouyinCommentEntity> spec, org.springframework.data.domain.Pageable pageable) 执行分页查询,子类必须实现 用于queryByOrg的通用实现handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, DouyinCommentEntity entity) update
(DouyinCommentRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestService
deleteByOrgUid, findByOrgUid, getUidFromRequest, queryByOrg, queryByUid, queryByUser, recover, save, setUserUidToRequest
-
Constructor Details
-
DouyinCommentRestService
public DouyinCommentRestService()
-
-
Method Details
-
createSpecification
protected org.springframework.data.jpa.domain.Specification<DouyinCommentEntity> createSpecification(DouyinCommentRequest request) Description copied from class:BaseRestService
创建Specification对象,子类必须实现 用于queryByOrg的通用实现- Specified by:
createSpecification
in classBaseRestService<DouyinCommentEntity,
DouyinCommentRequest, DouyinCommentResponse>
-
executePageQuery
protected org.springframework.data.domain.Page<DouyinCommentEntity> executePageQuery(org.springframework.data.jpa.domain.Specification<DouyinCommentEntity> spec, org.springframework.data.domain.Pageable pageable) Description copied from class:BaseRestService
执行分页查询,子类必须实现 用于queryByOrg的通用实现- Specified by:
executePageQuery
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
Description copied from class:BaseRestService
子类实现具体的保存逻辑- Specified by:
doSave
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>
-