You've already forked FrameTour-BE
refactor(face): 重构人脸服务接口和实现
- 修改 getById 方法返回类型为 FaceEntity 并直接调用仓库层 - 移除删除人脸时的用户权限检查逻辑 - 删除 contentListUseDefaultFace 方法的实现 - 从服务接口中移除 contentListUseDefaultFace 方法定义
This commit is contained in:
@@ -40,8 +40,6 @@ public interface FaceService {
|
||||
|
||||
List<ContentPageVO> faceContentList(Long faceId);
|
||||
|
||||
ApiResponse<List<ContentPageVO>> contentListUseDefaultFace();
|
||||
|
||||
void bindFace(Long faceId, Long memberId);
|
||||
|
||||
String bindWxaCode(Long faceId);
|
||||
|
||||
@@ -677,13 +677,6 @@ public class FaceServiceImpl implements FaceService {
|
||||
return contentList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApiResponse<List<ContentPageVO>> contentListUseDefaultFace() {
|
||||
FaceRespVO lastFaceByUserId = faceMapper.findLastFaceByUserId(BaseContextHandler.getUserId());
|
||||
List<ContentPageVO> contentPageVOS = faceContentList(lastFaceByUserId.getId());
|
||||
return ApiResponse.success(contentPageVOS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bindFace(Long faceId, Long memberId) {
|
||||
FaceEntity face = faceRepository.getFace(faceId);
|
||||
|
||||
Reference in New Issue
Block a user