官网开发 0810
This commit is contained in:
@@ -35,7 +35,7 @@ export function fetchDuplicateSection(id: number) {
|
||||
|
||||
// ===== 参数分组 =====
|
||||
export function fetchGetSpecGroups(sectionId: number) {
|
||||
return request<Api.Www.SpecGroup[]>({ url: `/www/sections/${sectionId}/spec-groups`, method: 'get' });
|
||||
return request<{ items: Api.Www.SpecGroup[]; total: number }>({ url: `/www/sections/${sectionId}/spec-groups`, method: 'get' });
|
||||
}
|
||||
|
||||
export function fetchCreateSpecGroup(sectionId: number, data: { title_zh: string; title_en: string; default_visible?: number }) {
|
||||
@@ -56,7 +56,7 @@ export function fetchSortSpecGroups(sectionId: number, data: Array<{ id: number;
|
||||
|
||||
// ===== 参数项 =====
|
||||
export function fetchGetSpecItems(groupId: number) {
|
||||
return request<Api.Www.SpecItem[]>({ url: `/www/spec-groups/${groupId}/items`, method: 'get' });
|
||||
return request<{ items: Api.Www.SpecItem[]; total: number }>({ url: `/www/spec-groups/${groupId}/items`, method: 'get' });
|
||||
}
|
||||
|
||||
export function fetchCreateSpecItem(groupId: number, data: { name_zh: string; name_en: string; value_zh: string; value_en: string }) {
|
||||
|
||||
Reference in New Issue
Block a user