Files
keyboard/keyBoard/Class/Search/VM/KBSearchVM.h

33 lines
901 B
C
Raw Normal View History

2025-12-17 20:30:01 +08:00
//
// 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