refactor: 解决方案页的API重构

This commit is contained in:
2025-11-11 16:43:08 +08:00
parent 706b754905
commit 3e7b195002
3 changed files with 21 additions and 23 deletions

View File

@ -0,0 +1,12 @@
query GetSolution($id: ID!, $locale: String!) {
solutions_by_id(id: $id) {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
title
summary
content
}
create_at
}
}