新增搜索
This commit is contained in:
34
keyBoard/Class/Search/M/KBSearchThemeModel.h
Normal file
34
keyBoard/Class/Search/M/KBSearchThemeModel.h
Normal 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
|
||||
|
||||
27
keyBoard/Class/Search/M/KBSearchThemeModel.m
Normal file
27
keyBoard/Class/Search/M/KBSearchThemeModel.m
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user