33 lines
901 B
C
33 lines
901 B
C
|
|
//
|
|||
|
|
// 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
|
|||
|
|
|