This commit is contained in:
2025-12-11 13:16:06 +08:00
parent e39104c431
commit d348b35984
12 changed files with 387 additions and 52 deletions

View File

@@ -0,0 +1,20 @@
//
// KBShopStyleModel.h
// keyBoard
//
// Created by Mac on 2025/12/11.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface KBShopStyleModel : NSObject
/// 风格 id
@property (nonatomic, copy, nullable) NSString *styleId;
/// 风格名称
@property (nonatomic, copy, nullable) NSString *styleName;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,18 @@
//
// KBShopStyleModel.m
// keyBoard
//
// Created by Mac on 2025/12/11.
//
#import "KBShopStyleModel.h"
@implementation KBShopStyleModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
return @{
@"styleId": @"id",
@"styleName": @"styleName"
};
}
@end

View File

@@ -0,0 +1,34 @@
//
// KBShopThemeModel.h
// keyBoard
//
// Created by Mac on 2025/12/11.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface KBShopThemeModel : NSObject
/// 主题 id
@property (nonatomic, copy, nullable) NSString *themeId;
/// 主题名称
@property (nonatomic, copy, nullable) NSString *themeName;
/// 价格(单位:接口返回的货币)
@property (nonatomic, assign) CGFloat themePrice;
/// 标签或风格名称
@property (nonatomic, copy, nullable) NSString *themeTag;
/// 下载量描述
@property (nonatomic, copy, nullable) NSString *themeDownload;
/// 风格类型(接口返回 themeStyle
@property (nonatomic, assign) NSInteger themeStyle;
/// 是否上架
@property (nonatomic, assign, getter=isThemeStatus) BOOL themeStatus;
/// 购买次数
@property (nonatomic, assign) NSInteger themePurchasesNumber;
/// 预览图
@property (nonatomic, copy, nullable) NSString *themePreviewImageUrl;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,16 @@
//
// KBShopThemeModel.m
// keyBoard
//
// Created by Mac on 2025/12/11.
//
#import "KBShopThemeModel.h"
@implementation KBShopThemeModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
return @{
@"themeId": @"id",
};
}
@end