refactor: 问题列表的API重构

This commit is contained in:
2025-11-11 16:49:58 +08:00
parent 3e7b195002
commit a07d77dde7
3 changed files with 32 additions and 54 deletions

View File

@ -0,0 +1,27 @@
query GetQuestionList($locale: String!) {
questions {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
title
content
}
products {
id
products_id {
id
product_type {
id
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
}
}
translations(filter: { languages_code: { code: { _eq: $locale } } }) {
id
name
}
}
}
}
}