[feat] solution: 미니블로그 빌더 기능 확장 — 알림 이메일 분리·삭제·즉시발송·공급자 무관 생성

빌더 앱에서 미니블로그를 운영하는 데 필요했던 몇 가지를 묶었다.

- notify_email: 업장별 승인 메일 수신자를 계정 로그인 이메일과 분리(places.notify_email,
  migrations/0021, PlaceCRUD·protocol.py·place_service.py 검증, BlogPostsPage.tsx 설정 UI)
- 글 삭제(soft delete): 상태 제한 없이 지우고, 이미 게재된 글이면 재발행 잡까지 큐에 넣는다
  (post_crud.py, router/v1/site/post.py DELETE, BlogPostsPage.tsx 삭제 버튼)
- 지금 발송하기: 아침 9시 스윕을 안 기다리고 바로 발송(post_crud.next_due_for_mail,
  BlogPostsPage.tsx 버튼)
- blog_service.generate_one: 하드코딩된 Gemini 대신 services/llm/provider.py(LLM_PROVIDER,
  기본 openai)를 타도록 전환, 업종별 분기 구조(현재 숙소만 구현) 추가
- site_payload.publish_url(place, site): 발행 주소 조합을 한 곳에 모은 헬퍼
- 프론트: orval 로 재생성한 API 클라이언트(notify_email·삭제·즉시발송·social 엔드포인트 반영)

관련 스위트는 별도 커밋(쓰레드 연동 작업)에서 이미 PASS 확인함
This commit is contained in:
skkim committed 2026-09-22 08:37:38 +09:00
1 parent adb3460c37
commit 81ea676546
24 files changed
+1813 -44

No files matched your search

@@ -0,0 +1,14 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Web4Ai API
* OpenAPI spec version: 0.1.0
*/
export type ApprovalParams = {
/**
* @minLength 40
* @maxLength 100
*/
t: string;
};
@@ -0,0 +1,21 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Web4Ai API
* OpenAPI spec version: 0.1.0
*/
export type CallbackParams = {
/**
* @maxLength 2048
*/
state?: string;
/**
* @maxLength 4096
*/
code?: string;
/**
* @maxLength 200
*/
error?: string;
};
@@ -0,0 +1,10 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Web4Ai API
* OpenAPI spec version: 0.1.0
*/
export interface Decision {
approve: boolean;
}
@@ -5,12 +5,15 @@
* OpenAPI spec version: 0.1.0
*/
export * from "./approvalParams";
export * from "./approvePageParams";
export * from "./auditCheckData";
export * from "./auditCheckDataRecommendation";
export * from "./authProvider";
export * from "./buildStatus";
export * from "./callbackParams";
export * from "./checkSlugParams";
export * from "./decision";
export * from "./errorInfo";
export * from "./errorInfoCode";
export * from "./errorInfoDesc";
@@ -61,6 +64,7 @@ export * from "./linkData";
export * from "./linkDataConfirmedAt";
export * from "./linkDataDiscoveredAt";
export * from "./linkDataTitle";
export * from "./linkDecision";
export * from "./listContentsParams";
export * from "./listFactsParams";
export * from "./listFaqsParams";
@@ -126,6 +130,7 @@ export * from "./placeDataExternalPlaceId";
export * from "./placeDataExternalSource";
export * from "./placeDataLatitude";
export * from "./placeDataLongitude";
export * from "./placeDataNotifyEmail";
export * from "./placeDataOwnerUserId";
export * from "./placeDataPhone";
export * from "./placeDataRegionCode";
@@ -208,6 +213,7 @@ export * from "./reqUpdateMeName";
export * from "./reqUpdateMePassword";
export * from "./reqUpdatePlace";
export * from "./reqUpdatePlaceName";
export * from "./reqUpdatePlaceNotifyEmail";
export * from "./reqUpdatePlaceStatus";
export * from "./reqUpsertFact";
export * from "./reqUpsertFactExpiresAt";
@@ -372,6 +378,7 @@ export * from "./siteVersionDataBuildError";
export * from "./siteVersionDataBuiltAt";
export * from "./siteVersionDataCreatedAt";
export * from "./sourceType";
export * from "./testPost";
export * from "./unitData";
export * from "./userRole";
export * from "./validationError";
@@ -23,4 +23,6 @@ export const JobType = {
AI_CHECK: 6,
SONG: 7,
ROLLBACK: 8,
SOCIAL_DRAFT: 9,
SOCIAL_POST: 10,
} as const;
@@ -0,0 +1,15 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Web4Ai API
* OpenAPI spec version: 0.1.0
*/
export interface LinkDecision {
approve: boolean;
/**
* @minLength 40
* @maxLength 100
*/
t: string;
}
@@ -17,6 +17,7 @@ import type { PlaceDataLongitude } from "./placeDataLongitude";
import type { PlaceDataRegionCode } from "./placeDataRegionCode";
import type { PlaceDataVerifiedAt } from "./placeDataVerifiedAt";
import type { PlaceDataContentUpdatedAt } from "./placeDataContentUpdatedAt";
import type { PlaceDataNotifyEmail } from "./placeDataNotifyEmail";
import type { PlaceDataCreatedAt } from "./placeDataCreatedAt";
export interface PlaceData {
@@ -35,5 +36,6 @@ export interface PlaceData {
region_code?: PlaceDataRegionCode;
verified_at?: PlaceDataVerifiedAt;
content_updated_at?: PlaceDataContentUpdatedAt;
notify_email?: PlaceDataNotifyEmail;
created_at?: PlaceDataCreatedAt;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Web4Ai API
* OpenAPI spec version: 0.1.0
*/
export type PlaceDataNotifyEmail = string | null;
@@ -6,8 +6,10 @@
*/
import type { ReqUpdatePlaceName } from "./reqUpdatePlaceName";
import type { ReqUpdatePlaceStatus } from "./reqUpdatePlaceStatus";
import type { ReqUpdatePlaceNotifyEmail } from "./reqUpdatePlaceNotifyEmail";
export interface ReqUpdatePlace {
name?: ReqUpdatePlaceName;
status?: ReqUpdatePlaceStatus;
notify_email?: ReqUpdatePlaceNotifyEmail;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Web4Ai API
* OpenAPI spec version: 0.1.0
*/
export type ReqUpdatePlaceNotifyEmail = string | null;
@@ -0,0 +1,14 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Web4Ai API
* OpenAPI spec version: 0.1.0
*/
export interface TestPost {
/**
* @minLength 1
* @maxLength 500
*/
text: string;
}