Files

29 lines
694 B
Swift

//
// HomeMenuItem.swift
// suixinkan
//
import Foundation
/// 首页菜单展示项,由服务端权限 URI 与本地 catalog 合并而成。
struct HomeMenuItem: Equatable, Hashable, Sendable {
let uri: String
let title: String
let iconName: String
let serverName: String
init(uri: String, title: String, iconName: String, serverName: String = "") {
self.uri = uri
self.title = title
self.iconName = iconName
self.serverName = serverName
}
/// 固定的「更多功能」入口。
static let moreFunctions = HomeMenuItem(
uri: "more_functions",
title: "更多功能",
iconName: "ellipsis"
)
}