generated from ttipo/project-base
feat(backend): 장소 목록에 관광공사·확인 장소만 받는 trusted 조건 추가
CI / Backend (lint · test · e2e · build) (pull_request) Successful in 11m54s
CI / 에러 코드 SSOT 동기화 검사 (pull_request) Successful in 11m0s
CI / Frontend (lint · type-check · test) (pull_request) Successful in 11m5s
CI / Frontend (lint · type-check · test) (push) Has been cancelled
CI / 에러 코드 SSOT 동기화 검사 (push) Has been cancelled
CI / Backend (lint · test · e2e · build) (push) Has been cancelled
CI / Backend (lint · test · e2e · build) (pull_request) Successful in 11m54s
CI / 에러 코드 SSOT 동기화 검사 (pull_request) Successful in 11m0s
CI / Frontend (lint · type-check · test) (pull_request) Successful in 11m5s
CI / Frontend (lint · type-check · test) (push) Has been cancelled
CI / 에러 코드 SSOT 동기화 검사 (push) Has been cancelled
CI / Backend (lint · test · e2e · build) (push) Has been cancelled
장소 상세 '함께 가기 좋은 곳'은 확인 안 된 상가정보 매장을 빼야 한다(2026-11-02 합의). 앱이 가까운 30곳을 받아 거르면 도심처럼 상가가 빽빽한 곳은 받은 곳이 모두 상가라 칸이 비었다. 관광공사 장소 상세 860곳 중 30곳은 칸이 사라지고 186곳은 덜 보였다(봉산서원은 1.5km 안에 관광공사 장소가 53곳인데 0곳). trusted=true 면 관광공사 장소와 운영자가 확인한 장소만 주고 '추천 안 함' 판정도 뺀다. 선택 조건이라 기존 호출은 그대로다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #4.
This commit is contained in:
@@ -123,4 +123,14 @@ export class PlaceSearchQueryDto extends CursorPaginationQueryDto {
|
||||
@Transform(toBoolean)
|
||||
@IsBoolean({ message: 'indoor 는 true 또는 false 로 입력해 주세요.' })
|
||||
indoor?: boolean;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
'관광공사 장소와 운영자가 확인한 장소만 — 확인 안 된 상가정보 매장과 운영자가 추천하지 않기로 한 곳을 뺀다(장소 상세의 함께 가기 좋은 곳)',
|
||||
example: true,
|
||||
})
|
||||
@IsOptional()
|
||||
@Transform(toBoolean)
|
||||
@IsBoolean({ message: 'trusted 는 true 또는 false 로 입력해 주세요.' })
|
||||
trusted?: boolean;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,15 @@ export class PlaceService {
|
||||
settings: ['indoor', 'both'],
|
||||
});
|
||||
}
|
||||
if (query.trusted) {
|
||||
// 확인 안 된 상가정보 매장이 추천처럼 보이지 않게 뺀다(2026-11-02 합의). 앱이 받아서 거르면
|
||||
// 도심처럼 상가가 빽빽한 곳에서는 가까운 몇 곳이 모두 상가라 칸이 비었다(2026-11-04 회귀 점검)
|
||||
qb.andWhere('(v.source = :trustedSource OR v.verified_at IS NOT NULL)', {
|
||||
trustedSource: 'tour',
|
||||
}).andWhere('(v.verdict IS NULL OR v.verdict <> :notRecommend)', {
|
||||
notRecommend: 'not_recommend',
|
||||
});
|
||||
}
|
||||
|
||||
// 괄호로 감싸야 TypeORM 이 엔티티 속성 선택으로 해석하지 않는다(그러면 결과 객체가 비어 버린다)
|
||||
let sortKey = '(v.name)';
|
||||
|
||||
Reference in New Issue
Block a user