新增搜索
This commit is contained in:
32
keyBoard/Class/Search/VM/KBSearchVM.h
Normal file
32
keyBoard/Class/Search/VM/KBSearchVM.h
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user