Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
549e227f90 | ||
|
|
b8afbe4e0a | ||
|
|
d7f891fddb | ||
|
|
63db0b725b |
No files matched your search
@@ -99,6 +99,8 @@
|
||||
| [ ] | 날씨 사주 해석 기준 — 사용자가 맡김(10/28 "니 알아서 하라"), 바꿀 수 있게 기록: 날씨 접목은 조후(한난조습) · 연애운은 열 때 성별 선택 입력(남/여/선택 안 함, 안 하면 도화·배우자궁만으로 본다고 표시) · 도화는 연지·일지 삼합 둘 다 · 홍염은 일간표(甲乙午 丙寅 丁未 戊己辰 庚戌 辛酉 壬子 癸申, 이견 있음 표시) · 합충형파해원진은 원국 네 지지 모두, 일지에 걸리면 연애 가중 · 절입 시각은 천문 계산식으로 1900~2100 표를 만들고 천문연 값으로 검증(패키지 안 씀) · 진태양시(출생지 경도)·서머타임 반영, 자시는 자정 기준(설정으로 변경) · 음력은 다음 단계(천문연 API) | 사용자 위임 10/28 | |
|
||||
| [ ] | **[결정 필요]** 날씨 사주 화면·문구 — '내 기운'(계절·날씨 장면 16종), 점수 → 사주 풀이 → 계절·날씨 한 스푼, 하루 풀이를 '오늘의 결정 카드'(언제·미룰 것·입을 것/갈 곳·이번 주 날짜)로 줄지, 규칙별 의미 사전·문구 검토, 기운 장면 그림 | 사용자 피드백 10/28 | 기획서 '날씨 사주 기획 v2', '계정 레벨·날씨 사주 UI 기획' |
|
||||
| [ ] | **[결정 필요]** 날씨 사주 Codex 검수(10/28) 중 반영 안 한 것: ① 금전·일 날짜 추천("큰돈 쓰거나 계약할 일은 10/31(토)") — Codex는 운세로 계약·면접 날짜를 정해 주지 말고 점검 행동만 주라고 했으나, 사주 앱 장르상 날짜가 핵심이라 유지하고 그날 점수 60 이상일 때만 고르게 함 ② 점수를 '참고 점수'로 부를지 ③ 결과 위에 출생 정보 요약·칸 이동 메뉴, 사주 글자 표 접기 ④ 11월부터 올해 운 자리에 내년 미리 보기 — 올해·내년을 따로 고르게 할지 ⑤ 연애운 성별 기준(남 재성·여 관성)을 '전통 기준'이라고 더 밝힐지 | Codex 검수 `/tmp/sweep/codex-review.md` | `backend/services/saju_service.py`, `frontend/src/b/SajuPage.tsx` |
|
||||
| [x] | 사주 보정(10/29 사용자 지적: 토 많은 未월생이 '장맛비 기운'으로 나옴) — 월령 바탕값, 흙은 계절 따라 조습, 未 0.9, 오행 세력(지장간 날 수·월지 30·일지 20·그 외 10)·신강신약, 균형 축 이름은 세력 1위 오행 쪽 | 『궁통보감』 三夏己土, 계산식 `docs/사주_계산식.md` | `backend/services/saju/climate.py`, `strength.py` |
|
||||
| [ ] | **[결정 필요]** 사주 명식 C안(요약 먼저형) 문구 확인 — 10/29 사용자 C안 선택, 구현은 `fix/saju-climate`(제목 '사주 명식', '흙(土) 기운이 가장 센 신강 사주', 오행 막대, 십성·'나'·월령 표시, 용어 풀이 10개). 문구 확인 뒤 병합 | 시안 v5, 사용자 선택 10/29 | `frontend/src/b/SajuPage.tsx` `MeCard`, `backend/router/v1/saju/saju.py` |
|
||||
|
||||
## 진행 순서
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ class SajuPillar(WebPacketProtocol):
|
||||
branch_ko: str
|
||||
stem_element: str = Field(description="木火土金水")
|
||||
branch_element: str
|
||||
stem_ten_god: Optional[str] = Field(None, description="천간 십성 (일간은 없음)")
|
||||
branch_ten_god: str = Field(description="지지 십성 (정기 기준)")
|
||||
|
||||
|
||||
class SajuMe(WebPacketProtocol):
|
||||
@@ -49,6 +51,10 @@ class SajuMe(WebPacketProtocol):
|
||||
season: Optional[str] = None
|
||||
climate: Optional[str] = Field(None, description="따뜻·마름 / 따뜻·촉촉 / 서늘·마름 / 서늘·촉촉")
|
||||
need: list[str] = Field([], description="내 기운에 필요한 것 (따뜻함·마른 공기 등)")
|
||||
elements: dict[str, float] = Field({}, description="오행 세력 점수 木火土金水 (월지 30·일지 20·나머지 10, 지지는 지장간 날 수로 나눔)")
|
||||
top_element: Optional[str] = Field(None, description="가장 센 오행")
|
||||
strong: Optional[bool] = Field(None, description="신강이면 true, 신약이면 false")
|
||||
support: Optional[float] = Field(None, description="일간을 뺀 점수 중 일간을 돕는 기운 몫 0~1")
|
||||
|
||||
|
||||
class SajuCard(WebPacketProtocol):
|
||||
|
||||
@@ -11,6 +11,8 @@ from router.v1.saju.protocol import Req_Saju, Req_SajuBirth, Req_SajuMatch, Res_
|
||||
from services import saju_text as T
|
||||
from services.level_service import UNLOCKS
|
||||
from services.saju.ganji import branch_element, ko, stem_element
|
||||
from services.saju.rules import chart_ten_gods
|
||||
from services.saju.strength import chart_strength
|
||||
from services.saju_service import Reading, SajuService, shown_saju, weather_points
|
||||
|
||||
router = APIRouter(prefix="/v1/saju", tags=["saju"])
|
||||
@@ -20,12 +22,16 @@ _WEEKDAY = "월화수목금토일"
|
||||
def _res(r: Reading) -> Res_Saju:
|
||||
c = r.chart
|
||||
pillars = [("year", c.year), ("month", c.month), ("day", c.day)] + ([("hour", c.hour)] if c.hour else [])
|
||||
gods = chart_ten_gods(c.day_stem, dict(pillars))
|
||||
strength = chart_strength(c)
|
||||
today = r.today
|
||||
best = max(r.week, key=lambda d: d.score).day if r.week else None
|
||||
return Res_Saju(
|
||||
me=SajuMe(
|
||||
pillars=[SajuPillar(position=pos, stem=p.stem, branch=p.branch, stem_ko=ko(p.stem), branch_ko=ko(p.branch), stem_element=stem_element(p.stem), branch_element=branch_element(p.branch)) for pos, p in pillars],
|
||||
pillars=[SajuPillar(position=pos, stem=p.stem, branch=p.branch, stem_ko=ko(p.stem), branch_ko=ko(p.branch), stem_element=stem_element(p.stem), branch_element=branch_element(p.branch),
|
||||
stem_ten_god=gods[pos]["stem"], branch_ten_god=gods[pos]["branch"]) for pos, p in pillars],
|
||||
hour_known=c.hour is not None, jeol_warning=c.jeol_on_birth_day, scene=r.scene[0], scene_desc=r.scene[1], scene_icon=r.scene_icon, need=r.need,
|
||||
elements=strength.elements, top_element=strength.top, strong=strength.strong, support=strength.support,
|
||||
),
|
||||
today=SajuToday(
|
||||
day=today.day, pillar=ko(today.facts.pillar.stem + today.facts.pillar.branch), ten_god=today.facts.stem_ten_god, title=T.TEN_GOD_TEXT[today.facts.stem_ten_god][0],
|
||||
|
||||
@@ -4,6 +4,7 @@ from dataclasses import dataclass
|
||||
from typing import Iterable
|
||||
|
||||
from services.saju.pillars import Chart
|
||||
from services.saju.strength import POSITION_POINTS, Strength, chart_strength
|
||||
|
||||
# 글자별 (한난, 조습) 초안 — 주인 확인 필요. 한난: 차가움 −1 … 따뜻함 +1, 조습: 마름 −1 … 습함 +1
|
||||
# 丙丁巳午는 불이라 따뜻하고 말리며, 壬癸亥子는 물이라 차고 젖는다. 庚辛申酉는 가을 쇠라 서늘하고 마르고,
|
||||
@@ -18,17 +19,20 @@ CHAR_CLIMATE: dict[str, tuple[float, float]] = {
|
||||
"寅": (-0.3, 0.0), "卯": (-0.1, 0.2),
|
||||
"辰": (0.0, 0.6), # 봄 젖은 흙 (물 창고)
|
||||
"巳": (0.8, -0.3), "午": (1.0, -0.5),
|
||||
"未": (0.6, -0.7), # 여름 끝 마른 흙
|
||||
"未": (0.9, -0.7), # 대서가 든 한여름 마른 흙 (지장간 丁火)
|
||||
"申": (-0.3, -0.3), "酉": (-0.5, -0.5),
|
||||
"戌": (0.2, -0.8), # 가을 마른 흙 (불 창고)
|
||||
"亥": (-0.7, 0.8),
|
||||
}
|
||||
# 자리별 비중. 태어난 달(월령)이 계절을 정하므로 월지를 가장 크게
|
||||
CHART_WEIGHTS = {
|
||||
("year", "stem"): 1.0, ("year", "branch"): 1.0, ("month", "stem"): 1.0, ("month", "branch"): 3.0,
|
||||
("day", "stem"): 1.0, ("day", "branch"): 1.5, ("hour", "stem"): 1.0, ("hour", "branch"): 1.0,
|
||||
}
|
||||
SEASONS = {"寅卯辰": "봄", "巳午未": "여름", "申酉戌": "가을", "亥子丑": "겨울"}
|
||||
# 월령: 태어난 달이 다른 글자를 데우거나 식힌다 (『궁통보감』 조후). 달별 한난, 계절별 조습
|
||||
MONTH_TEMP = {"寅": -0.4, "卯": -0.1, "辰": 0.2, "巳": 0.6, "午": 0.9, "未": 1.0, "申": 0.4, "酉": -0.1, "戌": -0.3, "亥": -0.6, "子": -0.9, "丑": -1.0}
|
||||
SEASON_MOIST = {"봄": 0.3, "여름": -1.0, "가을": -0.5, "겨울": 1.0}
|
||||
# 월령을 받는 세기. 흙(戊己辰戌丑未)은 계절 따라 마른 흙·젖은 흙이 되므로 더 크게 받는다 (三夏己土 取癸為要, 六月土燥)
|
||||
SEASON_PULL = {"earth": {"temp": 0.5, "moist": 0.8}, "other": {"temp": 0.3, "moist": 0.2}}
|
||||
EARTH = set("戊己辰戌丑未")
|
||||
# 축이 균형(±balanced 안)일 때 이름(따뜻/서늘, 촉촉/마름)을 정할 기울기: 가장 센 오행. 토와 목은 월령을 따른다
|
||||
ELEMENT_LEAN = {"火": (1.0, -0.5), "金": (-0.5, -0.5), "水": (-0.7, 0.9)}
|
||||
|
||||
# 날씨 → 같은 두 축. 한난: 체감 15°C 가 0, 15°C 차이마다 ±1. 조습: 습도 55% 가 0, 35%p 차이마다 ±1, 비가 오면 최소 +0.8
|
||||
WEATHER_SCALE = {"neutral_c": 15.0, "span_c": 15.0, "neutral_humidity": 55.0, "span_humidity": 35.0, "rain_moist": 0.8}
|
||||
@@ -60,8 +64,9 @@ class ChartClimate:
|
||||
moist: float
|
||||
label: str # 따뜻·마름 / 따뜻·촉촉 / 서늘·마름 / 서늘·촉촉
|
||||
season: str # 월지 계절
|
||||
strength: Strength
|
||||
need: dict[str, str] # {"temp": warm|cool|mild, "moist": dry|moist|mild}
|
||||
parts: tuple[dict, ...] # 글자별 기여 {"position", "part", "char", "temp", "moist", "weight"}
|
||||
parts: tuple[dict, ...] # 글자별 기여 {"position", "part", "char", "temp", "moist", "weight"} (월령 보정 뒤 값)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -85,12 +90,30 @@ def _clamp(x: float, lo: float = -1.0, hi: float = 1.0) -> float:
|
||||
return max(lo, min(hi, x))
|
||||
|
||||
|
||||
def season_of(branch: str) -> str:
|
||||
return next(name for group, name in SEASONS.items() if branch in group)
|
||||
|
||||
|
||||
def seasoned(char: str, month_branch: str) -> tuple[float, float]:
|
||||
"""월령을 받은 글자의 (한난, 조습). 월지 자신은 계절 그 자체라 그대로 둔다."""
|
||||
t, m = CHAR_CLIMATE[char]
|
||||
pull = SEASON_PULL["earth" if char in EARTH else "other"]
|
||||
t += pull["temp"] * MONTH_TEMP[month_branch]
|
||||
m += pull["moist"] * SEASON_MOIST[season_of(month_branch)]
|
||||
return round(_clamp(t), 3), round(_clamp(m), 3)
|
||||
|
||||
|
||||
def _lean(strength: Strength, month_branch: str) -> tuple[float, float]:
|
||||
return ELEMENT_LEAN.get(strength.top) or CHAR_CLIMATE[month_branch]
|
||||
|
||||
|
||||
def chart_climate(chart: Chart) -> ChartClimate:
|
||||
mb = chart.month.branch
|
||||
parts = []
|
||||
for pos, p in chart.pillars().items():
|
||||
for part, char in (("stem", p.stem), ("branch", p.branch)):
|
||||
t, m = CHAR_CLIMATE[char]
|
||||
parts.append({"position": pos, "part": part, "char": char, "temp": t, "moist": m, "weight": CHART_WEIGHTS[(pos, part)]})
|
||||
t, m = CHAR_CLIMATE[char] if (pos, part) == ("month", "branch") else seasoned(char, mb)
|
||||
parts.append({"position": pos, "part": part, "char": char, "temp": t, "moist": m, "weight": POSITION_POINTS[(pos, part)]})
|
||||
total = sum(x["weight"] for x in parts)
|
||||
temp = round(sum(x["temp"] * x["weight"] for x in parts) / total, 3)
|
||||
moist = round(sum(x["moist"] * x["weight"] for x in parts) / total, 3)
|
||||
@@ -99,9 +122,12 @@ def chart_climate(chart: Chart) -> ChartClimate:
|
||||
"temp": "warm" if temp < -b else "cool" if temp > b else "mild",
|
||||
"moist": "dry" if moist > b else "moist" if moist < -b else "mild",
|
||||
}
|
||||
label = f"{'따뜻' if temp >= 0 else '서늘'}·{'촉촉' if moist >= 0 else '마름'}"
|
||||
season = next(name for group, name in SEASONS.items() if chart.month.branch in group)
|
||||
return ChartClimate(temp, moist, label, season, need, tuple(parts))
|
||||
strength = chart_strength(chart)
|
||||
lean_t, lean_m = _lean(strength, mb)
|
||||
warm = temp > 0 if abs(temp) > b else lean_t >= 0
|
||||
wet = moist > 0 if abs(moist) > b else lean_m >= 0
|
||||
label = f"{'따뜻' if warm else '서늘'}·{'촉촉' if wet else '마름'}"
|
||||
return ChartClimate(temp, moist, label, season_of(mb), strength, need, tuple(parts))
|
||||
|
||||
|
||||
def weather_vector(w: HourWeather) -> dict[str, float]:
|
||||
|
||||
@@ -25,6 +25,11 @@ HIDDEN_STEMS: dict[str, tuple[str, Optional[str], str]] = {
|
||||
"戌": ("辛", "丁", "戊"),
|
||||
"亥": ("戊", "甲", "壬"),
|
||||
}
|
||||
# 지장간이 맡는 날 수 (여기, 중기, 정기), 한 달 30일. 子卯酉는 중기 없이 10·20, 午는 丙10·己9·丁11
|
||||
HIDDEN_DAYS: dict[str, tuple[int, int, int]] = {
|
||||
"子": (10, 0, 20), "丑": (9, 3, 18), "寅": (7, 7, 16), "卯": (10, 0, 20), "辰": (9, 3, 18), "巳": (7, 7, 16),
|
||||
"午": (10, 9, 11), "未": (9, 3, 18), "申": (7, 7, 16), "酉": (10, 0, 20), "戌": (9, 3, 18), "亥": (7, 7, 16),
|
||||
}
|
||||
|
||||
|
||||
def stem_element(stem: str) -> str:
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
"""오행 세력과 신강·신약. 자리마다 점수를 주고, 지지 점수는 지장간 날 수대로 나눈다."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
from services.saju.ganji import ELEMENTS, HIDDEN_DAYS, HIDDEN_STEMS, stem_element
|
||||
from services.saju.pillars import Chart
|
||||
|
||||
# 자리별 점수. 득령(월지) 30 · 득지(일지) 20 · 나머지 10. 일간을 뺀 일곱 자리 합이 100
|
||||
POSITION_POINTS = {
|
||||
("year", "stem"): 10, ("year", "branch"): 10, ("month", "stem"): 10, ("month", "branch"): 30,
|
||||
("day", "stem"): 10, ("day", "branch"): 20, ("hour", "stem"): 10, ("hour", "branch"): 10,
|
||||
}
|
||||
STRONG_FROM = 0.5 # 일간을 뺀 점수 중 비겁·인성 몫이 이 이상이면 신강
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Strength:
|
||||
elements: dict[str, float] # 오행별 점수 (일간 포함), 木火土金水 순
|
||||
top: str # 가장 센 오행
|
||||
support: float # 일간을 뺀 점수 중 일간을 돕는 오행(같은 오행·생해 주는 오행) 몫 0~1
|
||||
strong: bool
|
||||
|
||||
|
||||
def char_points(chart: Chart) -> list[tuple[str, str, str, float]]:
|
||||
"""(자리, stem|branch, 천간, 점수). 지지는 지장간 천간들로 나눈다."""
|
||||
out = []
|
||||
for pos, p in chart.pillars().items():
|
||||
out.append((pos, "stem", p.stem, float(POSITION_POINTS[(pos, "stem")])))
|
||||
points = POSITION_POINTS[(pos, "branch")]
|
||||
days = HIDDEN_DAYS[p.branch]
|
||||
for stem, d in zip(HIDDEN_STEMS[p.branch], days):
|
||||
if stem and d:
|
||||
out.append((pos, "branch", stem, points * d / sum(days)))
|
||||
return out
|
||||
|
||||
|
||||
def chart_strength(chart: Chart) -> Strength:
|
||||
me = ELEMENTS.index(stem_element(chart.day_stem))
|
||||
helpers = {ELEMENTS[me], ELEMENTS[(me - 1) % 5]}
|
||||
elements = dict.fromkeys(ELEMENTS, 0.0)
|
||||
support = others = 0.0
|
||||
for pos, part, stem, points in char_points(chart):
|
||||
el = stem_element(stem)
|
||||
elements[el] += points
|
||||
if (pos, part) == ("day", "stem"):
|
||||
continue
|
||||
others += points
|
||||
support += points if el in helpers else 0.0
|
||||
elements = {k: round(v, 1) for k, v in elements.items()}
|
||||
ratio = round(support / others, 3)
|
||||
return Strength(elements, max(elements, key=elements.get), ratio, ratio >= STRONG_FROM)
|
||||
@@ -35,6 +35,8 @@ async def test_reading_for_anyone_gives_me_today_and_cards(offline):
|
||||
r = (await c.post("/v1/saju/reading", json=BIRTH)).json()
|
||||
assert [p["stem"] + p["branch"] for p in r["me"]["pillars"]] == ["乙亥", "己卯", "甲辰"] and r["me"]["hour_known"] is False
|
||||
assert r["me"]["scene"].endswith("기운") and r["today"]["title"] and 0 <= r["today"]["score"] <= 100
|
||||
assert [(p.get("stem_ten_god"), p["branch_ten_god"]) for p in r["me"]["pillars"]] == [("겁재", "편인"), ("정재", "겁재"), (None, "편재")]
|
||||
assert r["me"]["top_element"] == "木" and r["me"]["strong"] is True and r["me"]["elements"]["木"] == 58.3
|
||||
kinds = [x["kind"] for x in r["today"]["cards"]]
|
||||
assert "when" in kinds and "do" in kinds and "wear" in kinds
|
||||
# 근거 줄은 쉬운 말 + 괄호 용어, 숫자 없이
|
||||
|
||||
@@ -4,13 +4,14 @@ import pytest
|
||||
|
||||
from common.utils.kma_time import KST
|
||||
from services.saju.birth import to_solar_time
|
||||
from services.saju.climate import HourWeather, axis_effect, chart_climate, climate_match
|
||||
from services.saju.climate import HourWeather, axis_effect, chart_climate, climate_match, seasoned
|
||||
from services.saju.daily import SCORE_WEIGHTS, daily_facts
|
||||
from services.saju.pillars import day_pillar, make_chart
|
||||
from services.saju.rules import (
|
||||
branch_relations, branch_ten_god, chart_ten_gods, dohwa_of, hongyeom_of, stem_relations, ten_god, triple_relations,
|
||||
)
|
||||
from services.saju.solar_terms import JEOL, jeol_of_year, nutation_longitude, sun_apparent_longitude
|
||||
from services.saju.strength import chart_strength
|
||||
|
||||
EXAMPLE = make_chart(date(1995, 3, 14))
|
||||
|
||||
@@ -254,6 +255,24 @@ def test_example_chart_climate_and_best_window():
|
||||
assert moist == {"axis": "moist", "need": "dry", "effect": "dries", "helps": True, "points": moist["points"], "weather": "체감 13°, 습도 40%"}
|
||||
|
||||
|
||||
|
||||
def test_example_strength_counts_hidden_stems_and_month_branch():
|
||||
s = chart_strength(EXAMPLE) # 乙亥 己卯 甲辰
|
||||
assert s.elements == {"木": 58.3, "火": 0.0, "土": 24.3, "金": 0.0, "水": 7.3}
|
||||
assert s.top == "木" and s.strong and s.support == 0.696
|
||||
|
||||
|
||||
def test_summer_earth_chart_reads_hot_and_dry_not_rainy():
|
||||
chart = make_chart(date(1959, 7, 16)) # 己亥 辛未 己亥: 未월 토가 많고 물이 둘
|
||||
climate = chart_climate(chart)
|
||||
assert climate.season == "여름" and climate.label == "따뜻·마름" and climate.need["temp"] == "cool"
|
||||
assert climate.strength.top == "土" and climate.strength.strong
|
||||
|
||||
|
||||
def test_month_dries_summer_earth_and_soaks_winter_earth():
|
||||
assert seasoned("己", "未")[1] < 0 < seasoned("己", "子")[1]
|
||||
assert seasoned("壬", "未")[0] > seasoned("壬", "子")[0]
|
||||
|
||||
def test_balanced_axis_prefers_mild_weather_and_rain_moistens():
|
||||
assert axis_effect(0.0, 0.0) > axis_effect(0.0, 0.6) and axis_effect(0.0, 0.0) > axis_effect(0.0, -0.6)
|
||||
assert axis_effect(-0.4, 0.8) > axis_effect(-0.4, 0.0) > axis_effect(-0.4, -0.8)
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
# 날씨 사주 계산식
|
||||
|
||||
코드가 기준이다. 값을 바꾸면 이 문서도 같이 고친다. 해석 기준 결정은 `TODO.md` '날씨 사주 해석 기준' 줄.
|
||||
|
||||
## 요약
|
||||
|
||||
| 단계 | 하는 일 | 코드 |
|
||||
|---|---|---|
|
||||
| 1. 네 기둥 | 연주는 입춘, 월주는 절입 시각(천문 계산), 일주·시주는 출생지 지방평균시(서머타임 걷어냄)로 가른다 | `services/saju/pillars.py`, `birth.py`, `solar_terms.py` |
|
||||
| 2. 오행 세력 | 자리 점수(월지 30·일지 20·나머지 10)를 지지는 지장간 날 수대로 나눠 오행별로 더한다. 일간을 돕는 몫이 50% 이상이면 신강 | `services/saju/strength.py` |
|
||||
| 3. 조후(내 기운) | 글자마다 한난·조습 값을 두고, 태어난 달(월령)이 다른 글자를 데우거나 식힌다. 흙은 계절 따라 마르고 젖는다. 자리 점수로 평균 → '따뜻·마름' 같은 결 + 계절 = 기운 장면 | `services/saju/climate.py` |
|
||||
| 4. 사주 점수 | 50에서 시작, 오늘 일진의 십성·원국과의 합충형파해·도화·홍염을 더한다 | `services/saju/daily.py` |
|
||||
| 5. 날씨 궁합 | 시간별 체감·습도·비가 내 조후를 균형 쪽으로 옮기는지. 50이 보통 | `services/saju/climate.py` |
|
||||
| 6. 오늘 점수 | 사주 점수를 68 중심으로 늘리고 (날씨 궁합 − 50) × 0.6 을 더한다 | `services/saju_service.py` |
|
||||
| 7. 궁합 | 서로의 일간 십성 평균 + 일간 합 + 일지 합·충 + 조후가 서로 채워 주는지 | `services/saju_service.py` `match_reading` |
|
||||
|
||||
## 1. 네 기둥
|
||||
|
||||
- 날짜 범위 1900-01-01 ~ 2100-12-31.
|
||||
- 절입 시각: 태양 시황경을 Meeus 25장(VSOP87 요약표·장동·광행차)으로 계산, ΔT 는 Espenak–Meeus 다항식. 연주는 입춘(315°), 월주는 직전 절.
|
||||
- 시간: 시계 시각 → 표준시 변경·서머타임을 걷어내고 지방평균시로. 평소 서울은 (경도 − 135) × 4분 ≈ −32분. 기본 경도 126.978(서울시청).
|
||||
- 일주: 1900-01-01 甲戌부터 60일 주기. 시주: 23시부터 두 시간씩, 시간(時干)은 甲己→甲子 규칙.
|
||||
- 자시: 기본 자정 기준(`midnight`), 설정으로 23시 기준(`23h`). 둘 다 23~01시 시주 간지는 같다.
|
||||
- 시간을 모르면 시주 없이, 연·월주는 그날 12시 기준. 그날 절이 들면 `jeol_on_birth_day` 로 표시.
|
||||
|
||||
## 2. 오행 세력·신강신약
|
||||
|
||||
자리 점수 `POSITION_POINTS`:
|
||||
|
||||
| | 연 | 월 | 일 | 시 |
|
||||
|---|---|---|---|---|
|
||||
| 천간 | 10 | 10 | 10(일간) | 10 |
|
||||
| 지지 | 10 | **30** | 20 | 10 |
|
||||
|
||||
- 지지 점수는 지장간 날 수(`HIDDEN_DAYS`, 30일)대로 나눈다. 고지(辰戌丑未) 9·3·18, 생지(寅申巳亥) 7·7·16, 子卯酉 10·20, 午 丙10·己9·丁11.
|
||||
- 예: 월지 未 30점 → 丁(화) 9, 乙(목) 3, 己(토) 18.
|
||||
- `elements`: 일간 포함 오행별 합. `top`: 가장 큰 오행(같으면 木火土金水 순 앞).
|
||||
- `support` = (일간 빼고) 일간과 같은 오행 + 일간을 생하는 오행 점수 ÷ 일간 뺀 점수 합. 시주가 있으면 분모 100.
|
||||
- `strong` = support ≥ 0.5 (신강).
|
||||
- 근거: 득령(월지)·득지(일지)·득세 판단, 월지 30·일지 20·그 외 10 배점은 흔히 쓰는 예시 배점.
|
||||
- 화면: API `me.elements`·`top_element`·`strong`·`support`, 기둥별 `stem_ten_god`·`branch_ten_god`(지지는 정기 기준) → 사주 명식 카드.
|
||||
|
||||
## 3. 조후 (내 기운)
|
||||
|
||||
1. 글자별 바탕값 `CHAR_CLIMATE` (한난 −1 차가움 … +1 따뜻, 조습 −1 마름 … +1 습함).
|
||||
- 불 丙丁巳午: 따뜻·마름 / 물 壬癸亥子: 차고 젖음 / 쇠 庚辛申酉: 서늘·마름
|
||||
- 흙: 戊未戌 마른 흙, 己丑辰 젖은 흙. 未는 대서가 든 한여름이라 (0.9, −0.7)
|
||||
2. 월령 보정 `seasoned()` — 월지 자신 말고 모든 글자에:
|
||||
- 한난 += 세기 × `MONTH_TEMP[월지]` (寅 −0.4, 卯 −0.1, 辰 0.2, 巳 0.6, 午 0.9, 未 1.0, 申 0.4, 酉 −0.1, 戌 −0.3, 亥 −0.6, 子 −0.9, 丑 −1.0)
|
||||
- 조습 += 세기 × `SEASON_MOIST[계절]` (봄 0.3, 여름 −1, 가을 −0.5, 겨울 1)
|
||||
- 세기 `SEASON_PULL`: 흙(戊己辰戌丑未) 한난 0.5·조습 0.8, 나머지 한난 0.3·조습 0.2. 결과는 −1~1 로 자름
|
||||
- 근거: 『궁통보감』 三夏己土 "取癸為要,次用丙火", 六月 명례 평주 "六月土燥木枯" — 여름 흙은 마른 흙으로 본다
|
||||
3. 평균: 보정된 값을 자리 점수(2번 표와 같음)로 가중 평균 → `temp`, `moist`.
|
||||
4. 필요(`need`): 축 값이 ±0.1 밖이면 반대쪽이 필요 (차가우면 warm, 습하면 dry). 안이면 mild.
|
||||
5. 이름(`label`): 축 값이 ±0.1 밖이면 부호대로. 안(균형)이면 세력 1위 오행 쪽으로 — 火 따뜻·마름, 金 서늘·마름, 水 서늘·촉촉, 土·木은 월지 글자 값.
|
||||
6. 기운 장면 `SCENES[(계절, label)]` 16종 (`services/saju_text.py`). 계절은 월지 삼회(寅卯辰 봄 …).
|
||||
|
||||
## 4. 사주 점수 (`SCORE_WEIGHTS`)
|
||||
|
||||
- 50 + 오늘 천간 십성(비견 2, 겁재 −2, 식신 4, 상관 −2, 편재 3, 정재 4, 편관 −4, 정관 3, 편인 −1, 정인 4)
|
||||
+ 오늘 지지(정기) 십성 × 0.5
|
||||
+ 원국과의 관계(천간합 4, 천간충 −5, 육합 5, 삼합 6, 반합 3, 충 −6, 형 −4, 삼형 −6, 자형 −2, 파 −2, 해 −2, 원진 −3) × 자리 비중(연 0.8, 월 1, 일 1.5, 시 0.8, 삼합·삼형은 1)
|
||||
+ 도화 3(연지·일지 기준) + 홍염 2 → 0~100 으로 자름.
|
||||
- 삼합·삼형이 완성되면 같은 묶음의 반합·형은 겹쳐 세지 않는다. 용신은 보지 않는다.
|
||||
|
||||
## 5. 날씨 궁합 (`climate_match`)
|
||||
|
||||
- 날씨 → 두 축: 한난 = (체감 − 15) ÷ 15, 조습 = (습도 − 55) ÷ 35, 비가 오면 조습 최소 0.8. −1~1.
|
||||
- 축 효과 = |사주| − |사주 + 0.3 × 날씨| (균형 쪽으로 옮기면 +). 이미 균형(±0.1)인 축은 순한 날씨(±0.3 안)에 +, 거센 날씨에 −.
|
||||
- 시간 점수 = 50 + 120 × (0.6 × 한난 효과 + 0.4 × 조습 효과), 0~100.
|
||||
- 하루 점수 = 06~21시 평균. 좋은 시간대 = 평균이 가장 높은 연속 3시간(체감 5~30° 안), 끝 시간이 5점 넘게 처지면 2시간.
|
||||
|
||||
## 6. 오늘 점수
|
||||
|
||||
- 화면 사주 점수 = 68 + (사주 점수 − 50) × 1.2, 25~98.
|
||||
- 오늘 점수 = 화면 사주 점수 + round((날씨 궁합 − 50) × 0.6 × 1.2), 25~98. 날씨가 없으면 사주만.
|
||||
- 앞으로 7일 '좋은 날'은 점수 60 이상만. 금전은 편재·정재 날, 일은 정관·정인·상관 날, 돈 조심은 비견·겁재 날 중 최저.
|
||||
|
||||
## 7. 궁합 (`MATCH_SCORE`)
|
||||
|
||||
- 55 + (내가 본 상대 일간 십성 묶음 점수 + 상대가 본 나) ÷ 2 — 인성 8, 재성 5, 식상 5, 비겁 2, 관성 0.
|
||||
- 일간 천간합 +12, 일지 육합·반합 +8, 일지 충·형 등 −8.
|
||||
- 조후가 서로 채워 주면(한쪽은 따뜻함이, 다른 쪽은 서늘함이 필요 등) 축마다 +5. 0~100.
|
||||
|
||||
## 연애운 (`love_facts`)
|
||||
|
||||
- 남자는 재성, 여자는 관성이 오늘 천간·지지에 들면. 성별을 안 고르면 이건 빼고 도화·홍염·일지 관계(육합·반합·충·형·자형·원진)만.
|
||||
+1
-1
@@ -54,7 +54,7 @@ GA4 태그(`gtag.js`, 측정 ID `G-D378J4X373`)를 `index.html`에 심고, 화
|
||||
| `day_log` | 저녁 체크인을 적어 둠 (고쳐 적어도 보냄). 다녀온 곳 이름은 보내지 않음 | `mood`(1~5), `went_out`, `card_hit`(맞았어요 true·글쎄요 false·안 고름 null) | `fortune.tsx` `useTodayCard` |
|
||||
| `today_icon` | 오늘 탭 아이콘 줄에서 아이콘을 누름 | `icon`(`tarot`·`saju`·`game`·`foliage`·`shorts`·`myGak`·`talk`) | `todayIcons.tsx` `TodayIcons` |
|
||||
| `saju_input` | 날씨 사주 생년월일을 넣음 (생년월일 값은 보내지 않음) | `with_time` | `SajuPage.tsx` `BirthForm` |
|
||||
| `saju_view` | 날씨 사주 결과가 뜸 | `scene`(내 기운 이름), `score` | `SajuPage.tsx` `Reading` |
|
||||
| `saju_view` | 날씨 사주 결과가 뜸 | `scene`(내 기운 이름), `score`, `strength`(신강·신약), `top_element`(가장 센 오행) | `SajuPage.tsx` `Reading` |
|
||||
| `game_start` | 구름 합치기 한 판의 첫 그림을 떨어뜨림 (페이지만 열고 안 한 사람과 구분) | `again`(다시 하기로 시작), `logged_in`, `wind_ms`(오늘 우리 구 풍속) | `CloudMergePage.tsx` `onUp` |
|
||||
| `game_round` | 구름 합치기 라운드를 깸 | `round`(깬 라운드), `score`(그때 총점), `logged_in`(각을 받는지) | `CloudMergePage.tsx` `onScore` |
|
||||
| `game_over` | 구름 합치기가 넘쳐서 끝남 | `round`(끝난 라운드), `score`, `best`(최고 기록 갱신), `drops`(떨어뜨린 횟수) | `CloudMergePage.tsx` `onOver` |
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 8.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
+74
-11
@@ -17,6 +17,21 @@ const SEEN_KEY = 'nalssigak.b.sajuSeen'
|
||||
const EL_COLOR: Record<string, [string, string]> = { 木: ['#2f8a4c', '#e3f6ea'], 火: ['#d9442f', '#ffe6e0'], 土: ['#a8761a', '#fbf0d6'], 金: ['#6b7486', '#eef0f4'], 水: ['#2d4a8a', '#e3ebfb'] }
|
||||
const CARD_ICON: Record<string, string> = { when: 'alarm_clock', do: 'check_mark_button', avoid: 'warning', good: 'sparkles', wear: 'tshirt' }
|
||||
const POS_WORD: Record<string, string> = { hour: '시', day: '일', month: '월', year: '연' }
|
||||
const EL_WORD: Record<string, string> = { 木: '나무', 火: '불', 土: '흙', 金: '쇠', 水: '물' }
|
||||
const EL_ART: Record<string, string> = { 木: 'wood', 火: 'fire', 土: 'earth', 金: 'metal', 水: 'water' }
|
||||
const STRENGTH_WORD: Record<string, string> = { 신강: '나를 돕는 기운이 절반이 넘는 사주', 신약: '나를 돕는 기운이 절반보다 적은 사주' }
|
||||
const TEN_GOD_WORD: Record<string, string> = {
|
||||
비견: '나와 같은 기운',
|
||||
겁재: '나와 같지만 겨루는 기운',
|
||||
식신: '내가 만들어 내는 기운',
|
||||
상관: '내가 드러내는 기운',
|
||||
편재: '내가 크게 굴리는 재물',
|
||||
정재: '내가 차곡차곡 모으는 재물',
|
||||
편관: '나를 세게 다잡는 기운',
|
||||
정관: '나를 바르게 이끄는 기운',
|
||||
편인: '나를 돕는 남다른 지혜',
|
||||
정인: '나를 돕는 배움·도움',
|
||||
}
|
||||
const HOURS = Array.from({ length: 24 }, (_, i) => i)
|
||||
const MINUTES = Array.from({ length: 60 }, (_, i) => i)
|
||||
const dayWord = (iso: string, weekday: string) => `${Number(iso.slice(5, 7))}/${Number(iso.slice(8, 10))}(${weekday})`
|
||||
@@ -192,7 +207,7 @@ function Reading({ birth, onEdit }: { birth: Birth; onEdit: () => void }) {
|
||||
useEffect(() => {
|
||||
if (!r?.today) return
|
||||
markSeen()
|
||||
track('saju_view', { scene: r.me?.scene ?? '', score: r.today.score })
|
||||
track('saju_view', { scene: r.me?.scene ?? '', score: r.today.score, strength: r.me?.strong == null ? '' : r.me.strong ? '신강' : '신약', top_element: r.me?.top_element ?? '' })
|
||||
}, [r])
|
||||
|
||||
if (q.isPending) return <p className="m-0 px-4 py-16 text-center font-semibold text-(--ink2)">사주를 풀고 있어요…</p>
|
||||
@@ -292,37 +307,85 @@ function DecisionCard({ c }: { c: SajuCard }) {
|
||||
function MeCard({ r, onEdit }: { r: ResSaju; onEdit: () => void }) {
|
||||
const me = r.me!
|
||||
const cols = [...me.pillars].reverse()
|
||||
const els = Object.entries(me.elements ?? {})
|
||||
const total = els.reduce((a, [, v]) => a + v, 0)
|
||||
const gods = [...new Set(me.pillars.flatMap((p) => [p.stem_ten_god, p.branch_ten_god]).filter((g): g is string => !!g && g in TEN_GOD_WORD))]
|
||||
const strength = me.strong == null ? null : me.strong ? '신강' : '신약'
|
||||
return (
|
||||
<Panel icon={me.scene_icon} title={`내 기운 · ${me.scene.replace(/ 기운$/, '')}`} right={<button type="button" onClick={onEdit} className="cursor-pointer text-xs font-extrabold text-(--orange)">생년월일 바꾸기</button>}>
|
||||
<p className="m-0 text-[14px] font-semibold text-(--ink2)">{me.scene_desc}</p>
|
||||
<Panel icon={me.scene_icon} title="사주 명식" right={<button type="button" onClick={onEdit} className="cursor-pointer text-xs font-extrabold text-(--orange)">생년월일 바꾸기</button>}>
|
||||
{me.top_element && strength && (
|
||||
<div className="flex items-center gap-3">
|
||||
<img src={`/saju/${EL_ART[me.top_element]}.webp`} alt="" className="size-16 shrink-0 object-contain" />
|
||||
<div className="min-w-0">
|
||||
<p className="m-0 font-jua text-[18px] leading-snug">
|
||||
{EL_WORD[me.top_element]}({me.top_element}) 기운이 가장 센 {strength} 사주
|
||||
</p>
|
||||
<p className="m-0 mt-0.5 text-[13px] font-semibold text-(--ink2)">
|
||||
나를 돕는 기운 {Math.round((me.support ?? 0) * 100)}% · {me.scene}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{total > 0 && (
|
||||
<>
|
||||
<div className="mt-2.5 flex h-2.5 overflow-hidden rounded-full" role="img" aria-label={els.map(([k, v]) => `${k} ${Math.round(v)}`).join(', ')}>
|
||||
{els.map(([k, v]) => (
|
||||
<span key={k} style={{ width: `${(v / total) * 100}%`, background: EL_COLOR[k]?.[0] }} />
|
||||
))}
|
||||
</div>
|
||||
<div className="mt-1.5 flex justify-between text-[12px] font-extrabold">
|
||||
{els.map(([k, v]) => (
|
||||
<span key={k} className="flex items-center gap-0.5" style={{ color: EL_COLOR[k]?.[0] }}>
|
||||
<img src={`/saju/${EL_ART[k]}.webp`} alt="" className="size-5 object-contain" />
|
||||
{k} {Math.round(v)}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
<div className="mt-3 grid grid-cols-4 gap-1.5 text-center">
|
||||
{(me.hour_known ? cols : [null, ...cols]).map((p, i) => (
|
||||
<div key={p?.position ?? `none-${i}`} className="flex flex-col gap-1">
|
||||
<span className="text-[11px] font-extrabold text-(--ink3)">{p ? POS_WORD[p.position] : '시'}</span>
|
||||
<span className="text-[11px] font-extrabold text-(--ink3)">{p ? `${POS_WORD[p.position]}주` : '시주'}</span>
|
||||
{p ? (
|
||||
<>
|
||||
<Char c={p.stem} ko={p.stem_ko} el={p.stem_element} />
|
||||
<span className={cx('text-[11.5px] font-extrabold', p.position === 'day' ? 'text-(--orange)' : 'text-(--ink2)')}>{p.position === 'day' ? '나' : p.stem_ten_god}</span>
|
||||
<Char c={p.stem} ko={p.stem_ko} el={p.stem_element} me={p.position === 'day'} />
|
||||
<Char c={p.branch} ko={p.branch_ko} el={p.branch_element} />
|
||||
<span className="text-[11.5px] font-extrabold text-(--ink2)">{p.branch_ten_god}</span>
|
||||
{p.position === 'month' && <span className="text-[10.5px] font-extrabold text-(--ink3)">월령</span>}
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<span className="grid flex-1 place-items-center rounded-xl bg-[#f1f3f7] text-[12px] font-extrabold text-[#a0a8ba]">시각 모름</span>
|
||||
</>
|
||||
<span className="grid flex-1 place-items-center rounded-xl bg-[#f1f3f7] px-1 text-[12px] font-extrabold text-[#a0a8ba]">시각 모름</span>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<p className="m-0 mt-2 text-[11.5px] font-semibold text-(--ink3)">태어난 연·월·일·시의 여덟 글자(사주팔자)예요. 색은 나무·불·흙·쇠·물 다섯 기운이에요.</p>
|
||||
<ul className="m-0 mt-3 list-none border-t border-(--line) p-0 pt-2.5 text-[12.5px] leading-relaxed font-semibold text-(--ink2)">
|
||||
{strength && (
|
||||
<li>
|
||||
<b className="text-(--ink)">{strength}</b> = {STRENGTH_WORD[strength]}
|
||||
</li>
|
||||
)}
|
||||
{gods.map((g) => (
|
||||
<li key={g}>
|
||||
<b className="text-(--ink)">{g}</b> = {TEN_GOD_WORD[g]}
|
||||
</li>
|
||||
))}
|
||||
<li>
|
||||
<b className="text-(--ink)">월령</b> = 태어난 달의 계절 기운. 명식에서 가장 크게 봐요
|
||||
</li>
|
||||
</ul>
|
||||
{(me.need?.length ?? 0) > 0 && <p className="m-0 mt-2 text-[13px] font-bold">내 기운에 좋은 날씨: {me.need!.join(' · ')}</p>}
|
||||
{me.jeol_warning && <p className="m-0 mt-1 text-xs font-semibold text-[#c2471b]">태어난 날에 절기가 바뀌어요. 태어난 시각을 넣어야 달 기둥이 정확해요.</p>}
|
||||
</Panel>
|
||||
)
|
||||
}
|
||||
|
||||
function Char({ c, ko, el }: { c: string; ko: string; el: string }) {
|
||||
function Char({ c, ko, el, me }: { c: string; ko: string; el: string; me?: boolean }) {
|
||||
const [fg, bg] = EL_COLOR[el] ?? ['#28304a', '#f3f6fb']
|
||||
return (
|
||||
<span className="rounded-xl py-1.5" style={{ background: bg, color: fg }}>
|
||||
<span className={cx('rounded-xl py-1.5', me && 'ring-2 ring-(--orange)')} style={{ background: bg, color: fg }}>
|
||||
<b className="block font-batang text-[22px] leading-tight">{c}</b>
|
||||
<small className="text-[10.5px] font-extrabold">{ko}</small>
|
||||
</span>
|
||||
|
||||
@@ -32,7 +32,7 @@ type Events = {
|
||||
day_log: { mood: number; went_out: boolean; card_hit: boolean | null }
|
||||
today_icon: { icon: string }
|
||||
saju_input: { with_time: boolean }
|
||||
saju_view: { scene: string; score: number }
|
||||
saju_view: { scene: string; score: number; strength: string; top_element: string }
|
||||
game_start: { again: boolean; logged_in: boolean; wind_ms: number }
|
||||
game_round: { round: number; score: number; logged_in: boolean }
|
||||
game_over: { round: number; score: number; best: boolean; drops: number }
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import { type DefaultError, type InfiniteData, infiniteQueryOptions, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
|
||||
|
||||
import { client } from '../client.gen';
|
||||
import { addComment, addMyGak, addTalk, agreeTerms, attend, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteBirth, deleteComment, deleteMyGak, deleteTalk, drawFortune, gameRound, gameStart, getArticle, getBirth, getCardImage, getFeed, getFortuneToday, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, importFortune, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, login, logout, match, me, myLevel, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, putBirth, reading, refresh, rejectCard, reportComment, reportTalk, saveDayLog, savePost, scoreMyGak, searchFortunePlaces, shared, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from '../sdk.gen';
|
||||
import type { AddCommentData, AddCommentError, AddCommentResponse, AddMyGakData, AddMyGakError, AddMyGakResponse, AddTalkData, AddTalkError, AddTalkResponse, AgreeTermsData, AgreeTermsError, AgreeTermsResponse, AttendData, AttendError, AttendResponse, AuthConfigData, AuthConfigResponse, BlockAuthorData, BlockAuthorError, BlockAuthorResponse, BlockTalkAuthorData, BlockTalkAuthorError, BlockTalkAuthorResponse, CreateCardData, CreateCardError, CreateCardResponse, CreateReelData, CreateReelError, CreateReelResponse, DeleteBirthData, DeleteBirthError, DeleteBirthResponse, DeleteCommentData, DeleteCommentError, DeleteCommentResponse, DeleteMyGakData, DeleteMyGakError, DeleteMyGakResponse, DeleteTalkData, DeleteTalkError, DeleteTalkResponse, DrawFortuneData, DrawFortuneError, DrawFortuneResponse, GameRoundData, GameRoundError, GameRoundResponse, GameStartData, GameStartError, GameStartResponse, GetArticleData, GetArticleError, GetArticleResponse, GetBirthData, GetBirthError, GetBirthResponse, GetCardImageData, GetCardImageError, GetFeedData, GetFeedError, GetFeedResponse, GetFortuneTodayData, GetFortuneTodayError, GetFortuneTodayResponse, GetImageData, GetImageError, GetIndexData, GetIndexError, GetIndexResponse, GetPostData, GetPostError, GetPostResponse, GetReelCoverData, GetReelCoverError, GetReelVideoData, GetReelVideoError, GetSeasonWeekData, GetSeasonWeekResponse, GetSkyData, GetSkyError, GetSkyRankingData, GetSkyRankingResponse, GetSkyResponse, GetTalkImageData, GetTalkImageError, GetTodayGuPageData, GetTodayGuPageError, GetTodayGuPageResponse, GetTodayPageData, GetTodayPageError, GetTodayPageResponse, GetTomorrowGuPageData, GetTomorrowGuPageError, GetTomorrowGuPageResponse, GetTomorrowPageData, GetTomorrowPageError, GetTomorrowPageResponse, GetWatchSummaryData, GetWatchSummaryError, GetWatchSummaryResponse, GetWeatherNowData, GetWeatherNowError, GetWeatherNowResponse, GetWeatherTodayData, GetWeatherTodayError, GetWeatherTodayResponse, GetWeekData, GetWeekError, GetWeekRankingData, GetWeekRankingResponse, GetWeekResponse, GoogleLoginData, GoogleLoginError, GoogleLoginResponse, HealthzHealthzGetData, HealthzHealthzGetResponse, ImportFortuneData, ImportFortuneError, ImportFortuneResponse, LikeCommentData, LikeCommentError, LikeCommentResponse, LikePostData, LikePostError, LikePostResponse, LikeTalkData, LikeTalkError, LikeTalkResponse, ListArticlesData, ListArticlesError, ListArticlesResponse, ListBlockedData, ListBlockedError, ListBlockedResponse, ListCardsData, ListCardsError, ListCardsResponse, ListCommentsData, ListCommentsError, ListCommentsResponse, ListEventsData, ListEventsError, ListEventsResponse, ListIndicesData, ListIndicesError, ListIndicesResponse, ListMyGakData, ListMyGakError, ListMyGakResponse, ListMyTalksData, ListMyTalksError, ListMyTalksResponse, ListPlacesData, ListPlacesError, ListPlacesResponse, ListPresetsData, ListPresetsResponse, ListReelsData, ListReelsError, ListReelsResponse, ListRegionsData, ListRegionsError, ListRegionsResponse, ListSavedData, ListSavedError, ListSavedResponse, ListShortsData, ListShortsResponse, ListTalksData, ListTalksError, ListTalksResponse, LoginData, LoginError, LoginResponse, LogoutData, LogoutError, LogoutResponse, MatchData, MatchError, MatchResponse, MeData, MeError, MeResponse, MyLevelData, MyLevelError, MyLevelResponse, NearestRegionData, NearestRegionError, NearestRegionResponse, PublishCardData, PublishCardError, PublishCardResponse, PublishInstagram2Data, PublishInstagram2Error, PublishInstagram2Response, PublishInstagramData, PublishInstagramError, PublishInstagramResponse, PutBirthData, PutBirthError, PutBirthResponse, ReadingData, ReadingError, ReadingResponse, RefreshData, RefreshError, RefreshResponse, RejectCardData, RejectCardError, RejectCardResponse, ReportCommentData, ReportCommentError, ReportCommentResponse, ReportTalkData, ReportTalkError, ReportTalkResponse, SaveDayLogData, SaveDayLogError, SaveDayLogResponse, SavePostData, SavePostError, SavePostResponse, ScoreMyGakData, ScoreMyGakError, ScoreMyGakResponse, SearchFortunePlacesData, SearchFortunePlacesError, SearchFortunePlacesResponse, SharedData, SharedError, SharedResponse, SignupData, SignupError, SignupResponse, TalkGroupsData, TalkGroupsError, TalkGroupsResponse, TossData, TossError, TossResponse, TossUnlinkData, TossUnlinkError, TossUnlinkResponse, UnblockData, UnblockError, UnblockResponse, UnlikeCommentData, UnlikeCommentError, UnlikeCommentResponse, UnlikePostData, UnlikePostError, UnlikePostResponse, UnlikeTalkData, UnlikeTalkError, UnlikeTalkResponse, UnsavePostData, UnsavePostError, UnsavePostResponse, UpdateMeData, UpdateMeError, UpdateMeResponse, UploadTalkImageData, UploadTalkImageError, UploadTalkImageResponse, WithdrawData, WithdrawError, WithdrawResponse } from '../types.gen';
|
||||
import { addComment, addMyGak, addTalk, agreeTerms, attend, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteBirth, deleteComment, deleteMyGak, deleteTalk, drawFortune, gameRound, gameStart, getArticle, getBirth, getCardImage, getFeed, getFortuneToday, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, importFortune, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, listUsers, login, logout, match, me, myLevel, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, putBirth, reading, refresh, rejectCard, reportComment, reportTalk, saveDayLog, savePost, scoreMyGak, searchFortunePlaces, shared, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from '../sdk.gen';
|
||||
import type { AddCommentData, AddCommentError, AddCommentResponse, AddMyGakData, AddMyGakError, AddMyGakResponse, AddTalkData, AddTalkError, AddTalkResponse, AgreeTermsData, AgreeTermsError, AgreeTermsResponse, AttendData, AttendError, AttendResponse, AuthConfigData, AuthConfigResponse, BlockAuthorData, BlockAuthorError, BlockAuthorResponse, BlockTalkAuthorData, BlockTalkAuthorError, BlockTalkAuthorResponse, CreateCardData, CreateCardError, CreateCardResponse, CreateReelData, CreateReelError, CreateReelResponse, DeleteBirthData, DeleteBirthError, DeleteBirthResponse, DeleteCommentData, DeleteCommentError, DeleteCommentResponse, DeleteMyGakData, DeleteMyGakError, DeleteMyGakResponse, DeleteTalkData, DeleteTalkError, DeleteTalkResponse, DrawFortuneData, DrawFortuneError, DrawFortuneResponse, GameRoundData, GameRoundError, GameRoundResponse, GameStartData, GameStartError, GameStartResponse, GetArticleData, GetArticleError, GetArticleResponse, GetBirthData, GetBirthError, GetBirthResponse, GetCardImageData, GetCardImageError, GetFeedData, GetFeedError, GetFeedResponse, GetFortuneTodayData, GetFortuneTodayError, GetFortuneTodayResponse, GetImageData, GetImageError, GetIndexData, GetIndexError, GetIndexResponse, GetPostData, GetPostError, GetPostResponse, GetReelCoverData, GetReelCoverError, GetReelVideoData, GetReelVideoError, GetSeasonWeekData, GetSeasonWeekResponse, GetSkyData, GetSkyError, GetSkyRankingData, GetSkyRankingResponse, GetSkyResponse, GetTalkImageData, GetTalkImageError, GetTodayGuPageData, GetTodayGuPageError, GetTodayGuPageResponse, GetTodayPageData, GetTodayPageError, GetTodayPageResponse, GetTomorrowGuPageData, GetTomorrowGuPageError, GetTomorrowGuPageResponse, GetTomorrowPageData, GetTomorrowPageError, GetTomorrowPageResponse, GetWatchSummaryData, GetWatchSummaryError, GetWatchSummaryResponse, GetWeatherNowData, GetWeatherNowError, GetWeatherNowResponse, GetWeatherTodayData, GetWeatherTodayError, GetWeatherTodayResponse, GetWeekData, GetWeekError, GetWeekRankingData, GetWeekRankingResponse, GetWeekResponse, GoogleLoginData, GoogleLoginError, GoogleLoginResponse, HealthzHealthzGetData, HealthzHealthzGetResponse, ImportFortuneData, ImportFortuneError, ImportFortuneResponse, LikeCommentData, LikeCommentError, LikeCommentResponse, LikePostData, LikePostError, LikePostResponse, LikeTalkData, LikeTalkError, LikeTalkResponse, ListArticlesData, ListArticlesError, ListArticlesResponse, ListBlockedData, ListBlockedError, ListBlockedResponse, ListCardsData, ListCardsError, ListCardsResponse, ListCommentsData, ListCommentsError, ListCommentsResponse, ListEventsData, ListEventsError, ListEventsResponse, ListIndicesData, ListIndicesError, ListIndicesResponse, ListMyGakData, ListMyGakError, ListMyGakResponse, ListMyTalksData, ListMyTalksError, ListMyTalksResponse, ListPlacesData, ListPlacesError, ListPlacesResponse, ListPresetsData, ListPresetsResponse, ListReelsData, ListReelsError, ListReelsResponse, ListRegionsData, ListRegionsError, ListRegionsResponse, ListSavedData, ListSavedError, ListSavedResponse, ListShortsData, ListShortsResponse, ListTalksData, ListTalksError, ListTalksResponse, ListUsersData, ListUsersError, ListUsersResponse, LoginData, LoginError, LoginResponse, LogoutData, LogoutError, LogoutResponse, MatchData, MatchError, MatchResponse, MeData, MeError, MeResponse, MyLevelData, MyLevelError, MyLevelResponse, NearestRegionData, NearestRegionError, NearestRegionResponse, PublishCardData, PublishCardError, PublishCardResponse, PublishInstagram2Data, PublishInstagram2Error, PublishInstagram2Response, PublishInstagramData, PublishInstagramError, PublishInstagramResponse, PutBirthData, PutBirthError, PutBirthResponse, ReadingData, ReadingError, ReadingResponse, RefreshData, RefreshError, RefreshResponse, RejectCardData, RejectCardError, RejectCardResponse, ReportCommentData, ReportCommentError, ReportCommentResponse, ReportTalkData, ReportTalkError, ReportTalkResponse, SaveDayLogData, SaveDayLogError, SaveDayLogResponse, SavePostData, SavePostError, SavePostResponse, ScoreMyGakData, ScoreMyGakError, ScoreMyGakResponse, SearchFortunePlacesData, SearchFortunePlacesError, SearchFortunePlacesResponse, SharedData, SharedError, SharedResponse, SignupData, SignupError, SignupResponse, TalkGroupsData, TalkGroupsError, TalkGroupsResponse, TossData, TossError, TossResponse, TossUnlinkData, TossUnlinkError, TossUnlinkResponse, UnblockData, UnblockError, UnblockResponse, UnlikeCommentData, UnlikeCommentError, UnlikeCommentResponse, UnlikePostData, UnlikePostError, UnlikePostResponse, UnlikeTalkData, UnlikeTalkError, UnlikeTalkResponse, UnsavePostData, UnsavePostError, UnsavePostResponse, UpdateMeData, UpdateMeError, UpdateMeResponse, UploadTalkImageData, UploadTalkImageError, UploadTalkImageResponse, WithdrawData, WithdrawError, WithdrawResponse } from '../types.gen';
|
||||
|
||||
export type QueryKey<TOptions extends Options> = [
|
||||
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
||||
@@ -1796,6 +1796,24 @@ export const listShortsOptions = (options?: Options<ListShortsData>) => queryOpt
|
||||
queryKey: listShortsQueryKey(options)
|
||||
});
|
||||
|
||||
export const listUsersQueryKey = (options?: Options<ListUsersData>) => createQueryKey('listUsers', options);
|
||||
|
||||
/**
|
||||
* 가입자 목록 (관리자). 가입 경로·레벨·각. 아이디·생년월일은 안 준다
|
||||
*/
|
||||
export const listUsersOptions = (options?: Options<ListUsersData>) => queryOptions<ListUsersResponse, ListUsersError, ListUsersResponse, ReturnType<typeof listUsersQueryKey>>({
|
||||
queryFn: async ({ queryKey, signal }) => {
|
||||
const { data } = await listUsers({
|
||||
...options,
|
||||
...queryKey[0],
|
||||
signal,
|
||||
throwOnError: true
|
||||
});
|
||||
return data;
|
||||
},
|
||||
queryKey: listUsersQueryKey(options)
|
||||
});
|
||||
|
||||
export const healthzHealthzGetQueryKey = (options?: Options<HealthzHealthzGetData>) => createQueryKey('healthzHealthzGet', options);
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file is auto-generated by @hey-api/openapi-ts
|
||||
|
||||
export { addComment, addMyGak, addTalk, agreeTerms, attend, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteBirth, deleteComment, deleteMyGak, deleteTalk, drawFortune, gameRound, gameStart, getArticle, getBirth, getCardImage, getFeed, getFortuneToday, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, importFortune, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, login, logout, match, me, myLevel, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, putBirth, reading, refresh, rejectCard, reportComment, reportTalk, saveDayLog, savePost, scoreMyGak, searchFortunePlaces, shared, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from './sdk.gen';
|
||||
export { type AddCommentData, type AddCommentError, type AddCommentErrors, type AddCommentResponse, type AddCommentResponses, type AddMyGakData, type AddMyGakError, type AddMyGakErrors, type AddMyGakResponse, type AddMyGakResponses, type AddTalkData, type AddTalkError, type AddTalkErrors, type AddTalkResponse, type AddTalkResponses, type AgreeTermsData, type AgreeTermsError, type AgreeTermsErrors, type AgreeTermsResponse, type AgreeTermsResponses, type AirData, AirGrade, ArticleCategory, type ArticleSummary, type AttendData, type AttendError, type AttendErrors, type AttendResponse, type AttendResponses, type AuthConfigData, type AuthConfigResponse, type AuthConfigResponses, AuthProvider, type BandArticle, type BandEvent, type Bands, type BestTime, type BlockAuthorData, type BlockAuthorError, type BlockAuthorErrors, type BlockAuthorResponse, type BlockAuthorResponses, type BlockedUser, type BlockTalkAuthorData, type BlockTalkAuthorError, type BlockTalkAuthorErrors, type BlockTalkAuthorResponse, type BlockTalkAuthorResponses, type BodyUploadTalkImageV1TalkImagePost, type CardItem, CardStatus, type ClientOptions, type CommentData, type CommuteData, Confidence, type CreateCardData, type CreateCardError, type CreateCardErrors, type CreateCardResponse, type CreateCardResponses, type CreateReelData, type CreateReelError, type CreateReelErrors, type CreateReelResponse, type CreateReelResponses, type Cut, type DayData, type DayLogData, type DeleteBirthData, type DeleteBirthError, type DeleteBirthErrors, type DeleteBirthResponse, type DeleteBirthResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteMyGakData, type DeleteMyGakError, type DeleteMyGakErrors, type DeleteMyGakResponse, type DeleteMyGakResponses, type DeleteTalkData, type DeleteTalkError, type DeleteTalkErrors, type DeleteTalkResponse, type DeleteTalkResponses, type DrawFortuneData, type DrawFortuneError, type DrawFortuneErrors, type DrawFortuneResponse, type DrawFortuneResponses, type ErrorInfo, type EventData, type Factor, type FortuneCard, type FortuneLuck, type FortunePlace, type GakSlide, type GameRoundData, type GameRoundError, type GameRoundErrors, type GameRoundResponse, type GameRoundResponses, type GameStartData, type GameStartError, type GameStartErrors, type GameStartResponse, type GameStartResponses, type GetArticleData, type GetArticleError, type GetArticleErrors, type GetArticleResponse, type GetArticleResponses, type GetBirthData, type GetBirthError, type GetBirthErrors, type GetBirthResponse, type GetBirthResponses, type GetCardImageData, type GetCardImageError, type GetCardImageErrors, type GetCardImageResponses, type GetFeedData, type GetFeedError, type GetFeedErrors, type GetFeedResponse, type GetFeedResponses, type GetFortuneTodayData, type GetFortuneTodayError, type GetFortuneTodayErrors, type GetFortuneTodayResponse, type GetFortuneTodayResponses, type GetImageData, type GetImageError, type GetImageErrors, type GetImageResponses, type GetIndexData, type GetIndexError, type GetIndexErrors, type GetIndexResponse, type GetIndexResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetReelCoverData, type GetReelCoverError, type GetReelCoverErrors, type GetReelCoverResponses, type GetReelVideoData, type GetReelVideoError, type GetReelVideoErrors, type GetReelVideoResponses, type GetSeasonWeekData, type GetSeasonWeekResponse, type GetSeasonWeekResponses, type GetSkyData, type GetSkyError, type GetSkyErrors, type GetSkyRankingData, type GetSkyRankingResponse, type GetSkyRankingResponses, type GetSkyResponse, type GetSkyResponses, type GetTalkImageData, type GetTalkImageError, type GetTalkImageErrors, type GetTalkImageResponses, type GetTodayGuPageData, type GetTodayGuPageError, type GetTodayGuPageErrors, type GetTodayGuPageResponse, type GetTodayGuPageResponses, type GetTodayPageData, type GetTodayPageError, type GetTodayPageErrors, type GetTodayPageResponse, type GetTodayPageResponses, type GetTomorrowGuPageData, type GetTomorrowGuPageError, type GetTomorrowGuPageErrors, type GetTomorrowGuPageResponse, type GetTomorrowGuPageResponses, type GetTomorrowPageData, type GetTomorrowPageError, type GetTomorrowPageErrors, type GetTomorrowPageResponse, type GetTomorrowPageResponses, type GetWatchSummaryData, type GetWatchSummaryError, type GetWatchSummaryErrors, type GetWatchSummaryResponse, type GetWatchSummaryResponses, type GetWeatherNowData, type GetWeatherNowError, type GetWeatherNowErrors, type GetWeatherNowResponse, type GetWeatherNowResponses, type GetWeatherTodayData, type GetWeatherTodayError, type GetWeatherTodayErrors, type GetWeatherTodayResponse, type GetWeatherTodayResponses, type GetWeekData, type GetWeekError, type GetWeekErrors, type GetWeekRankingData, type GetWeekRankingResponse, type GetWeekRankingResponses, type GetWeekResponse, type GetWeekResponses, type GoogleLogLine truncated
|
||||
export { addComment, addMyGak, addTalk, agreeTerms, attend, authConfig, blockAuthor, blockTalkAuthor, createCard, createReel, deleteBirth, deleteComment, deleteMyGak, deleteTalk, drawFortune, gameRound, gameStart, getArticle, getBirth, getCardImage, getFeed, getFortuneToday, getImage, getIndex, getPost, getReelCover, getReelVideo, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, importFortune, likeComment, likePost, likeTalk, listArticles, listBlocked, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listReels, listRegions, listSaved, listShorts, listTalks, listUsers, login, logout, match, me, myLevel, nearestRegion, type Options, publishCard, publishInstagram, publishInstagram2, putBirth, reading, refresh, rejectCard, reportComment, reportTalk, saveDayLog, savePost, scoreMyGak, searchFortunePlaces, shared, signup, talkGroups, toss, tossUnlink, unblock, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage, withdraw } from './sdk.gen';
|
||||
export { type AddCommentData, type AddCommentError, type AddCommentErrors, type AddCommentResponse, type AddCommentResponses, type AddMyGakData, type AddMyGakError, type AddMyGakErrors, type AddMyGakResponse, type AddMyGakResponses, type AddTalkData, type AddTalkError, type AddTalkErrors, type AddTalkResponse, type AddTalkResponses, type AdminUser, type AgreeTermsData, type AgreeTermsError, type AgreeTermsErrors, type AgreeTermsResponse, type AgreeTermsResponses, type AirData, AirGrade, ArticleCategory, type ArticleSummary, type AttendData, type AttendError, type AttendErrors, type AttendResponse, type AttendResponses, type AuthConfigData, type AuthConfigResponse, type AuthConfigResponses, AuthProvider, type BandArticle, type BandEvent, type Bands, type BestTime, type BlockAuthorData, type BlockAuthorError, type BlockAuthorErrors, type BlockAuthorResponse, type BlockAuthorResponses, type BlockedUser, type BlockTalkAuthorData, type BlockTalkAuthorError, type BlockTalkAuthorErrors, type BlockTalkAuthorResponse, type BlockTalkAuthorResponses, type BodyUploadTalkImageV1TalkImagePost, type CardItem, CardStatus, type ClientOptions, type CommentData, type CommuteData, Confidence, type CreateCardData, type CreateCardError, type CreateCardErrors, type CreateCardResponse, type CreateCardResponses, type CreateReelData, type CreateReelError, type CreateReelErrors, type CreateReelResponse, type CreateReelResponses, type Cut, type DayData, type DayLogData, type DeleteBirthData, type DeleteBirthError, type DeleteBirthErrors, type DeleteBirthResponse, type DeleteBirthResponses, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteMyGakData, type DeleteMyGakError, type DeleteMyGakErrors, type DeleteMyGakResponse, type DeleteMyGakResponses, type DeleteTalkData, type DeleteTalkError, type DeleteTalkErrors, type DeleteTalkResponse, type DeleteTalkResponses, type DrawFortuneData, type DrawFortuneError, type DrawFortuneErrors, type DrawFortuneResponse, type DrawFortuneResponses, type ErrorInfo, type EventData, type Factor, type FortuneCard, type FortuneLuck, type FortunePlace, type GakSlide, type GameRoundData, type GameRoundError, type GameRoundErrors, type GameRoundResponse, type GameRoundResponses, type GameStartData, type GameStartError, type GameStartErrors, type GameStartResponse, type GameStartResponses, type GetArticleData, type GetArticleError, type GetArticleErrors, type GetArticleResponse, type GetArticleResponses, type GetBirthData, type GetBirthError, type GetBirthErrors, type GetBirthResponse, type GetBirthResponses, type GetCardImageData, type GetCardImageError, type GetCardImageErrors, type GetCardImageResponses, type GetFeedData, type GetFeedError, type GetFeedErrors, type GetFeedResponse, type GetFeedResponses, type GetFortuneTodayData, type GetFortuneTodayError, type GetFortuneTodayErrors, type GetFortuneTodayResponse, type GetFortuneTodayResponses, type GetImageData, type GetImageError, type GetImageErrors, type GetImageResponses, type GetIndexData, type GetIndexError, type GetIndexErrors, type GetIndexResponse, type GetIndexResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetReelCoverData, type GetReelCoverError, type GetReelCoverErrors, type GetReelCoverResponses, type GetReelVideoData, type GetReelVideoError, type GetReelVideoErrors, type GetReelVideoResponses, type GetSeasonWeekData, type GetSeasonWeekResponse, type GetSeasonWeekResponses, type GetSkyData, type GetSkyError, type GetSkyErrors, type GetSkyRankingData, type GetSkyRankingResponse, type GetSkyRankingResponses, type GetSkyResponse, type GetSkyResponses, type GetTalkImageData, type GetTalkImageError, type GetTalkImageErrors, type GetTalkImageResponses, type GetTodayGuPageData, type GetTodayGuPageError, type GetTodayGuPageErrors, type GetTodayGuPageResponse, type GetTodayGuPageResponses, type GetTodayPageData, type GetTodayPageError, type GetTodayPageErrors, type GetTodayPageResponse, type GetTodayPageResponses, type GetTomorrowGuPageData, type GetTomorrowGuPageError, type GetTomorrowGuPageErrors, type GetTomorrowGuPageResponse, type GetTomorrowGuPageResponses, type GetTomorrowPageData, type GetTomorrowPageError, type GetTomorrowPageErrors, type GetTomorrowPageResponse, type GetTomorrowPageResponses, type GetWatchSummaryData, type GetWatchSummaryError, type GetWatchSummaryErrors, type GetWatchSummaryResponse, type GetWatchSummaryResponses, type GetWeatherNowData, type GetWeatherNowError, type GetWeatherNowErrors, type GetWeatherNowResponse, type GetWeatherNowResponses, type GetWeatherTodayData, type GetWeatherTodayError, type GetWeatherTodayErrors, type GetWeatherTodayResponse, type GetWeatherTodayResponses, type GetWeekData, type GetWeekError, type GetWeekErrors, type GetWeekRankingData, type GetWeekRankingResponse, type GetWeekRankingResponses, type GetWeekResponse, type GetWeekResponsesLine truncated
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { type Client, type ClientMeta, formDataBodySerializer, type Options as Options2, type RequestResult, type TDataShape } from './client';
|
||||
import { client } from './client.gen';
|
||||
import type { AddCommentData, AddCommentErrors, AddCommentResponses, AddMyGakData, AddMyGakErrors, AddMyGakResponses, AddTalkData, AddTalkErrors, AddTalkResponses, AgreeTermsData, AgreeTermsErrors, AgreeTermsResponses, AttendData, AttendErrors, AttendResponses, AuthConfigData, AuthConfigResponses, BlockAuthorData, BlockAuthorErrors, BlockAuthorResponses, BlockTalkAuthorData, BlockTalkAuthorErrors, BlockTalkAuthorResponses, CreateCardData, CreateCardErrors, CreateCardResponses, CreateReelData, CreateReelErrors, CreateReelResponses, DeleteBirthData, DeleteBirthErrors, DeleteBirthResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteMyGakData, DeleteMyGakErrors, DeleteMyGakResponses, DeleteTalkData, DeleteTalkErrors, DeleteTalkResponses, DrawFortuneData, DrawFortuneErrors, DrawFortuneResponses, GameRoundData, GameRoundErrors, GameRoundResponses, GameStartData, GameStartErrors, GameStartResponses, GetArticleData, GetArticleErrors, GetArticleResponses, GetBirthData, GetBirthErrors, GetBirthResponses, GetCardImageData, GetCardImageErrors, GetCardImageResponses, GetFeedData, GetFeedErrors, GetFeedResponses, GetFortuneTodayData, GetFortuneTodayErrors, GetFortuneTodayResponses, GetImageData, GetImageErrors, GetImageResponses, GetIndexData, GetIndexErrors, GetIndexResponses, GetPostData, GetPostErrors, GetPostResponses, GetReelCoverData, GetReelCoverErrors, GetReelCoverResponses, GetReelVideoData, GetReelVideoErrors, GetReelVideoResponses, GetSeasonWeekData, GetSeasonWeekResponses, GetSkyData, GetSkyErrors, GetSkyRankingData, GetSkyRankingResponses, GetSkyResponses, GetTalkImageData, GetTalkImageErrors, GetTalkImageResponses, GetTodayGuPageData, GetTodayGuPageErrors, GetTodayGuPageResponses, GetTodayPageData, GetTodayPageErrors, GetTodayPageResponses, GetTomorrowGuPageData, GetTomorrowGuPageErrors, GetTomorrowGuPageResponses, GetTomorrowPageData, GetTomorrowPageErrors, GetTomorrowPageResponses, GetWatchSummaryData, GetWatchSummaryErrors, GetWatchSummaryResponses, GetWeatherNowData, GetWeatherNowErrors, GetWeatherNowResponses, GetWeatherTodayData, GetWeatherTodayErrors, GetWeatherTodayResponses, GetWeekData, GetWeekErrors, GetWeekRankingData, GetWeekRankingResponses, GetWeekResponses, GoogleLoginData, GoogleLoginErrors, GoogleLoginResponses, HealthzHealthzGetData, HealthzHealthzGetResponses, ImportFortuneData, ImportFortuneErrors, ImportFortuneResponses, LikeCommentData, LikeCommentErrors, LikeCommentResponses, LikePostData, LikePostErrors, LikePostResponses, LikeTalkData, LikeTalkErrors, LikeTalkResponses, ListArticlesData, ListArticlesErrors, ListArticlesResponses, ListBlockedData, ListBlockedErrors, ListBlockedResponses, ListCardsData, ListCardsErrors, ListCardsResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListIndicesData, ListIndicesErrors, ListIndicesResponses, ListMyGakData, ListMyGakErrors, ListMyGakResponses, ListMyTalksData, ListMyTalksErrors, ListMyTalksResponses, ListPlacesData, ListPlacesErrors, ListPlacesResponses, ListPresetsData, ListPresetsResponses, ListReelsData, ListReelsErrors, ListReelsResponses, ListRegionsData, ListRegionsErrors, ListRegionsResponses, ListSavedData, ListSavedErrors, ListSavedResponses, ListShortsData, ListShortsResponses, ListTalksData, ListTalksErrors, ListTalksResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MatchData, MatchErrors, MatchResponses, MeData, MeErrors, MeResponses, MyLevelData, MyLevelErrors, MyLevelResponses, NearestRegionData, NearestRegionErrors, NearestRegionResponses, PublishCardData, PublishCardErrors, PublishCardResponses, PublishInstagram2Data, PublishInstagram2Errors, PublishInstagram2Responses, PublishInstagramData, PublishInstagramErrors, PublishInstagramResponses, PutBirthData, PutBirthErrors, PutBirthResponses, ReadingData, ReadingErrors, ReadingResponses, RefreshData, RefreshErrors, RefreshResponses, RejectCardData, RejectCardErrors, RejectCardResponses, ReportCommentData, ReportCommentErrors, ReportCommentResponses, ReportTalkData, ReportTalkErrors, ReportTalkResponses, SaveDayLogData, SaveDayLogErrors, SaveDayLogResponses, SavePostData, SavePostErrors, SavePostResponses, ScoreMyGakData, ScoreMyGakErrors, ScoreMyGakResponses, SearchFortunePlacesData, SearchFortunePlacesErrors, SearchFortunePlacesResponses, SharedData, SharedErrors, SharedResponses, SignupData, SignupErrors, SignupResponses, TalkGroupsData, TalkGroupsErrors, TalkGroupsResponses, TossData, TossErrors, TossResponses, TossUnlinkData, TossUnlinkErrors, TossUnlinkResponses, UnblockData, UnblockErrors, UnblockResponses, UnlikeCommentData, UnlikeCommentErrors, UnlikeCommentResponses, UnlikePostData, UnlikePostErrors, UnlikePostResponses, UnlikeTalkData, UnlikeTalkErrors, UnlikeTalkResponses, UnsavePostData, UnsavePostErrors, UnsavePostResponses, UpdateMeData, UpdateMeErrors, UpdateMeResponses, UploadTalkImageData, UploadTalkImageErrors, UpLine truncated
|
||||
import type { AddCommentData, AddCommentErrors, AddCommentResponses, AddMyGakData, AddMyGakErrors, AddMyGakResponses, AddTalkData, AddTalkErrors, AddTalkResponses, AgreeTermsData, AgreeTermsErrors, AgreeTermsResponses, AttendData, AttendErrors, AttendResponses, AuthConfigData, AuthConfigResponses, BlockAuthorData, BlockAuthorErrors, BlockAuthorResponses, BlockTalkAuthorData, BlockTalkAuthorErrors, BlockTalkAuthorResponses, CreateCardData, CreateCardErrors, CreateCardResponses, CreateReelData, CreateReelErrors, CreateReelResponses, DeleteBirthData, DeleteBirthErrors, DeleteBirthResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteMyGakData, DeleteMyGakErrors, DeleteMyGakResponses, DeleteTalkData, DeleteTalkErrors, DeleteTalkResponses, DrawFortuneData, DrawFortuneErrors, DrawFortuneResponses, GameRoundData, GameRoundErrors, GameRoundResponses, GameStartData, GameStartErrors, GameStartResponses, GetArticleData, GetArticleErrors, GetArticleResponses, GetBirthData, GetBirthErrors, GetBirthResponses, GetCardImageData, GetCardImageErrors, GetCardImageResponses, GetFeedData, GetFeedErrors, GetFeedResponses, GetFortuneTodayData, GetFortuneTodayErrors, GetFortuneTodayResponses, GetImageData, GetImageErrors, GetImageResponses, GetIndexData, GetIndexErrors, GetIndexResponses, GetPostData, GetPostErrors, GetPostResponses, GetReelCoverData, GetReelCoverErrors, GetReelCoverResponses, GetReelVideoData, GetReelVideoErrors, GetReelVideoResponses, GetSeasonWeekData, GetSeasonWeekResponses, GetSkyData, GetSkyErrors, GetSkyRankingData, GetSkyRankingResponses, GetSkyResponses, GetTalkImageData, GetTalkImageErrors, GetTalkImageResponses, GetTodayGuPageData, GetTodayGuPageErrors, GetTodayGuPageResponses, GetTodayPageData, GetTodayPageErrors, GetTodayPageResponses, GetTomorrowGuPageData, GetTomorrowGuPageErrors, GetTomorrowGuPageResponses, GetTomorrowPageData, GetTomorrowPageErrors, GetTomorrowPageResponses, GetWatchSummaryData, GetWatchSummaryErrors, GetWatchSummaryResponses, GetWeatherNowData, GetWeatherNowErrors, GetWeatherNowResponses, GetWeatherTodayData, GetWeatherTodayErrors, GetWeatherTodayResponses, GetWeekData, GetWeekErrors, GetWeekRankingData, GetWeekRankingResponses, GetWeekResponses, GoogleLoginData, GoogleLoginErrors, GoogleLoginResponses, HealthzHealthzGetData, HealthzHealthzGetResponses, ImportFortuneData, ImportFortuneErrors, ImportFortuneResponses, LikeCommentData, LikeCommentErrors, LikeCommentResponses, LikePostData, LikePostErrors, LikePostResponses, LikeTalkData, LikeTalkErrors, LikeTalkResponses, ListArticlesData, ListArticlesErrors, ListArticlesResponses, ListBlockedData, ListBlockedErrors, ListBlockedResponses, ListCardsData, ListCardsErrors, ListCardsResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListIndicesData, ListIndicesErrors, ListIndicesResponses, ListMyGakData, ListMyGakErrors, ListMyGakResponses, ListMyTalksData, ListMyTalksErrors, ListMyTalksResponses, ListPlacesData, ListPlacesErrors, ListPlacesResponses, ListPresetsData, ListPresetsResponses, ListReelsData, ListReelsErrors, ListReelsResponses, ListRegionsData, ListRegionsErrors, ListRegionsResponses, ListSavedData, ListSavedErrors, ListSavedResponses, ListShortsData, ListShortsResponses, ListTalksData, ListTalksErrors, ListTalksResponses, ListUsersData, ListUsersErrors, ListUsersResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MatchData, MatchErrors, MatchResponses, MeData, MeErrors, MeResponses, MyLevelData, MyLevelErrors, MyLevelResponses, NearestRegionData, NearestRegionErrors, NearestRegionResponses, PublishCardData, PublishCardErrors, PublishCardResponses, PublishInstagram2Data, PublishInstagram2Errors, PublishInstagram2Responses, PublishInstagramData, PublishInstagramErrors, PublishInstagramResponses, PutBirthData, PutBirthErrors, PutBirthResponses, ReadingData, ReadingErrors, ReadingResponses, RefreshData, RefreshErrors, RefreshResponses, RejectCardData, RejectCardErrors, RejectCardResponses, ReportCommentData, ReportCommentErrors, ReportCommentResponses, ReportTalkData, ReportTalkErrors, ReportTalkResponses, SaveDayLogData, SaveDayLogErrors, SaveDayLogResponses, SavePostData, SavePostErrors, SavePostResponses, ScoreMyGakData, ScoreMyGakErrors, ScoreMyGakResponses, SearchFortunePlacesData, SearchFortunePlacesErrors, SearchFortunePlacesResponses, SharedData, SharedErrors, SharedResponses, SignupData, SignupErrors, SignupResponses, TalkGroupsData, TalkGroupsErrors, TalkGroupsResponses, TossData, TossErrors, TossResponses, TossUnlinkData, TossUnlinkErrors, TossUnlinkResponses, UnblockData, UnblockErrors, UnblockResponses, UnlikeCommentData, UnlikeCommentErrors, UnlikeCommentResponses, UnlikePostData, UnlikePostErrors, UnlikePostResponses, UnlikeTalkData, UnlikeTalkErrors, UnlikeTalkResponses, UnsavePostData, UnsavePostErrors, UnsavePostResponses, UpdateMeData, UpdateMeErrors, UpdateMeRespoLine truncated
|
||||
|
||||
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
||||
/**
|
||||
@@ -640,6 +640,11 @@ export const getReelCover = <ThrowOnError extends boolean = true>(options: Optio
|
||||
*/
|
||||
export const listShorts = <ThrowOnError extends boolean = true>(options?: Options<ListShortsData, ThrowOnError>): RequestResult<ListShortsResponses, unknown, ThrowOnError> => (options?.client ?? client).get<ListShortsResponses, unknown, ThrowOnError>({ url: '/v1/shorts', ...options });
|
||||
|
||||
/**
|
||||
* 가입자 목록 (관리자). 가입 경로·레벨·각. 아이디·생년월일은 안 준다
|
||||
*/
|
||||
export const listUsers = <ThrowOnError extends boolean = true>(options?: Options<ListUsersData, ThrowOnError>): RequestResult<ListUsersResponses, ListUsersErrors, ThrowOnError> => (options?.client ?? client).get<ListUsersResponses, ListUsersErrors, ThrowOnError>({ url: '/v1/admin/users', ...options });
|
||||
|
||||
/**
|
||||
* 헬스체크
|
||||
*/
|
||||
|
||||
@@ -4,6 +4,45 @@ export type ClientOptions = {
|
||||
baseUrl: `${string}://${string}` | (string & {});
|
||||
};
|
||||
|
||||
/**
|
||||
* AdminUser
|
||||
*/
|
||||
export type AdminUser = {
|
||||
/**
|
||||
* Nickname
|
||||
*/
|
||||
nickname: string;
|
||||
provider: AuthProvider;
|
||||
/**
|
||||
* Points
|
||||
*
|
||||
* 모은 각 총량
|
||||
*/
|
||||
points: number;
|
||||
/**
|
||||
* Level
|
||||
*/
|
||||
level: number;
|
||||
/**
|
||||
* Level Name
|
||||
*/
|
||||
level_name: string;
|
||||
/**
|
||||
* Suspended
|
||||
*/
|
||||
suspended: boolean;
|
||||
/**
|
||||
* Created At
|
||||
*/
|
||||
created_at: string;
|
||||
/**
|
||||
* Last Active
|
||||
*
|
||||
* 각을 마지막으로 받은 날
|
||||
*/
|
||||
last_active?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* AirData
|
||||
*/
|
||||
@@ -2298,6 +2337,33 @@ export type ReqUpdateMe = {
|
||||
mood?: string | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_AdminUsers
|
||||
*/
|
||||
export type ResAdminUsers = {
|
||||
result?: ErrorInfo;
|
||||
/**
|
||||
* Msg
|
||||
*/
|
||||
msg?: string | null;
|
||||
/**
|
||||
* Total
|
||||
*/
|
||||
total?: number;
|
||||
/**
|
||||
* Counts
|
||||
*
|
||||
* 가입 경로(AuthProvider)별 인원
|
||||
*/
|
||||
counts?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
/**
|
||||
* Items
|
||||
*/
|
||||
items?: Array<AdminUser>;
|
||||
};
|
||||
|
||||
/**
|
||||
* Res_Article
|
||||
*/
|
||||
@@ -3769,6 +3835,32 @@ export type SajuMe = {
|
||||
* 내 기운에 필요한 것 (따뜻함·마른 공기 등)
|
||||
*/
|
||||
need?: Array<string>;
|
||||
/**
|
||||
* Elements
|
||||
*
|
||||
* 오행 세력 점수 木火土金水 (월지 30·일지 20·나머지 10, 지지는 지장간 날 수로 나눔)
|
||||
*/
|
||||
elements?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
/**
|
||||
* Top Element
|
||||
*
|
||||
* 가장 센 오행
|
||||
*/
|
||||
top_element?: string | null;
|
||||
/**
|
||||
* Strong
|
||||
*
|
||||
* 신강이면 true, 신약이면 false
|
||||
*/
|
||||
strong?: boolean | null;
|
||||
/**
|
||||
* Support
|
||||
*
|
||||
* 일간을 뺀 점수 중 일간을 돕는 기운 몫 0~1
|
||||
*/
|
||||
support?: number | null;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -3845,6 +3937,18 @@ export type SajuPillar = {
|
||||
* Branch Element
|
||||
*/
|
||||
branch_element: string;
|
||||
/**
|
||||
* Stem Ten God
|
||||
*
|
||||
* 천간 십성 (일간은 없음)
|
||||
*/
|
||||
stem_ten_god?: string | null;
|
||||
/**
|
||||
* Branch Ten God
|
||||
*
|
||||
* 지지 십성 (정기 기준)
|
||||
*/
|
||||
branch_ten_god: string;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -8026,6 +8130,42 @@ export type ListShortsResponses = {
|
||||
|
||||
export type ListShortsResponse = ListShortsResponses[keyof ListShortsResponses];
|
||||
|
||||
export type ListUsersData = {
|
||||
body?: never;
|
||||
headers?: {
|
||||
/**
|
||||
* X-Admin-Key
|
||||
*/
|
||||
'x-admin-key'?: string | null;
|
||||
};
|
||||
path?: never;
|
||||
query?: {
|
||||
/**
|
||||
* Limit
|
||||
*/
|
||||
limit?: number;
|
||||
};
|
||||
url: '/v1/admin/users';
|
||||
};
|
||||
|
||||
export type ListUsersErrors = {
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HttpValidationError;
|
||||
};
|
||||
|
||||
export type ListUsersError = ListUsersErrors[keyof ListUsersErrors];
|
||||
|
||||
export type ListUsersResponses = {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: ResAdminUsers;
|
||||
};
|
||||
|
||||
export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
|
||||
|
||||
export type HealthzHealthzGetData = {
|
||||
body?: never;
|
||||
path?: never;
|
||||
|
||||
Reference in new issue
Block a user