refactor: 解决方案列表的API重构

This commit is contained in:
2025-11-11 16:35:20 +08:00
parent 0d77e97ad5
commit 706b754905
3 changed files with 26 additions and 30 deletions

View File

@ -0,0 +1,21 @@
query GetSolutionList($locale: String!) {
solutions {
id
cover {
id
}
type {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
}
sort
}
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
title
summary
}
}
}