Files
keyboard/keyBoard/Class/Search/VM/KBSearchVM.h
2025-12-17 20:30:01 +08:00

33 lines
901 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// KBSearchVM.h
// keyBoard
//
// Created by Mac on 2025/12/17.
//
#import <Foundation/Foundation.h>
@class KBShopThemeModel;
@class KBSearchThemeModel;
NS_ASSUME_NONNULL_BEGIN
typedef void(^KBSearchRecommendedCompletion)(NSArray<KBShopThemeModel *> *_Nullable themes,
NSError *_Nullable error);
typedef void(^KBSearchThemesCompletion)(NSArray<KBSearchThemeModel *> *_Nullable themes,
NSError *_Nullable error);
@interface KBSearchVM : NSObject
/// 推荐主题列表(复用 KBShopVM 的 API_THEME_RECOMMENDED
- (void)fetchRecommendedThemesWithCompletion:(KBSearchRecommendedCompletion)completion;
/// 搜索主题GET /themes/search?themeName=xxx
- (void)searchThemesWithName:(NSString *)themeName
completion:(KBSearchThemesCompletion)completion;
@end
NS_ASSUME_NONNULL_END