refactor(ECR-001): Phase F types/sdk 对齐并拆分超标 H5 页

抽出 OpenAPI DTO;将 Ask/Report/Profile/Star 等 8 页拆到 ≤400 行,并修 ScaleSummary、fortuneKey、Scale 选答与单测。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-05 18:19:34 +08:00
co-authored by Cursor
parent 19d3cd5945
commit e735aa43e3
64 changed files with 6198 additions and 4157 deletions
@@ -55,16 +55,20 @@ describe('StarProfilePage', () => {
const w = mount(StarProfilePage, { global: { stubs: { RouterLink: true } } })
await flushPromises()
expect(api.createStar).toHaveBeenCalled()
expect(w.find('svg.wheel').exists() || w.text().includes('本命')).toBe(true)
expect(w.text()).toContain('相位速览')
expect(w.text()).toContain('今日行运')
await w.findAll('button').find((b) => b.text() === '星盘')!.trigger('click')
await flushPromises()
expect(w.find('svg.wheel').exists()).toBe(true)
expect(w.text()).toContain('相位速览')
expect(w.text()).toContain('太阳刑相月亮')
})
it('shows lifetime fortune tab', async () => {
it('shows daily and lifetime fortune tabs', async () => {
const w = mount(StarProfilePage, { global: { stubs: { RouterLink: true } } })
await flushPromises()
await w.findAll('button').find((b) => b.text() === '运势')!.trigger('click')
await flushPromises()
expect(w.text()).toContain('今日运势')
expect(w.text()).toContain('焦点:行动')
await w.findAll('button').find((b) => b.text() === '一生')!.trigger('click')
await flushPromises()
expect(w.text()).toContain('一生运势摘要')