新增搜索

This commit is contained in:
2025-12-17 20:30:01 +08:00
parent 904a6c932a
commit 1ecb7d60e5
8 changed files with 293 additions and 59 deletions

View File

@@ -0,0 +1,34 @@
//
// KBSearchThemeModel.h
// keyBoard
//
// Created by Mac on 2025/12/17.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
@class KBShopThemeTagModel;
NS_ASSUME_NONNULL_BEGIN
/// /themes/search 返回的主题模型
@interface KBSearchThemeModel : NSObject
@property (nonatomic, copy, nullable) NSString *themeId;
@property (nonatomic, copy, nullable) NSString *themeName;
@property (nonatomic, assign) CGFloat themePrice;
@property (nonatomic, strong, nullable) NSArray<KBShopThemeTagModel *> *themeTag;
@property (nonatomic, copy, nullable) NSString *themeDownload;
@property (nonatomic, assign) NSInteger themeStyle;
@property (nonatomic, copy, nullable) NSString *themePreviewImageUrl;
@property (nonatomic, copy, nullable) NSString *themeDownloadUrl;
@property (nonatomic, assign) NSInteger themePurchasesNumber;
@property (nonatomic, assign) NSInteger sort;
@property (nonatomic, assign) BOOL isFree;
@property (nonatomic, assign) BOOL isPurchased;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,27 @@
//
// KBSearchThemeModel.m
// keyBoard
//
// Created by Mac on 2025/12/17.
//
#import "KBSearchThemeModel.h"
#import "KBShopThemeTagModel.h"
#import <MJExtension/MJExtension.h>
@implementation KBSearchThemeModel
+ (NSDictionary *)mj_objectClassInArray {
return @{
@"themeTag": KBShopThemeTagModel.class
};
}
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
return @{
@"themeId": @"id",
};
}
@end