1
This commit is contained in:
20
keyBoard/Class/Shop/M/KBShopStyleModel.h
Normal file
20
keyBoard/Class/Shop/M/KBShopStyleModel.h
Normal 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
|
||||
18
keyBoard/Class/Shop/M/KBShopStyleModel.m
Normal file
18
keyBoard/Class/Shop/M/KBShopStyleModel.m
Normal 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
|
||||
34
keyBoard/Class/Shop/M/KBShopThemeModel.h
Normal file
34
keyBoard/Class/Shop/M/KBShopThemeModel.h
Normal 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
|
||||
16
keyBoard/Class/Shop/M/KBShopThemeModel.m
Normal file
16
keyBoard/Class/Shop/M/KBShopThemeModel.m
Normal 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
|
||||
Reference in New Issue
Block a user