1/* 2 * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export interface FirstLevelCategory { 17 childNodes: SecondLevelCategory[] | ThirdLevelCategory[], 18 selectedImage: Resource, // The icon for the first-level category is selected 19 unselectedImage: Resource, // The icon for the first-level category is not selected 20 tabBarName: Resource // First-level category title 21} 22 23export interface SecondLevelCategory { 24 title: Resource, // Second-level category titles 25 childNodes: ThirdLevelCategory[], 26 image?: Resource 27} 28 29export interface ThirdLevelCategory { 30 image: Resource, // Third-level category icon 31 title: Resource, // Third-level category headings 32 url?: string, // Third-level category detail page URL 33 childNodes?: FourthLevelCategory[] 34} 35 36export interface FourthLevelCategory { 37 title: Resource, // Fourth-level category titles 38 url: string // Fourth-level category detail page URL 39}