refactor(face): 重构人脸服务接口和实现

- 修改 getById 方法返回类型为 FaceEntity 并直接调用仓库层
- 移除删除人脸时的用户权限检查逻辑
- 删除 contentListUseDefaultFace 方法的实现
- 从服务接口中移除 contentListUseDefaultFace 方法定义
This commit is contained in:
2026-01-01 19:40:45 +08:00
parent 06bc2c2020
commit 5caf9a0ebf
3 changed files with 3 additions and 18 deletions

View File

@@ -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);

View File

@@ -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);