1
This commit is contained in:
25
keyBoard/Class/Me/M/KBConsumptionRecord.h
Normal file
25
keyBoard/Class/Me/M/KBConsumptionRecord.h
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// KBConsumptionRecord.h
|
||||
// keyBoard
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// 消费/购买记录模型 1 消费 2充值
|
||||
typedef NS_ENUM(NSInteger, KBConsumptionRecordType) {
|
||||
KBConsumptionRecordTypeConsumption = 1,
|
||||
KBConsumptionRecordTypeRecharge = 2,
|
||||
};
|
||||
|
||||
@interface KBConsumptionRecord : NSObject
|
||||
@property (nonatomic, strong, nullable) NSNumber *amount;
|
||||
@property (nonatomic, assign) KBConsumptionRecordType type;
|
||||
@property (nonatomic, strong, nullable) NSNumber *beforeBalance;
|
||||
@property (nonatomic, strong, nullable) NSNumber *afterBalance;
|
||||
@property (nonatomic, copy, nullable) NSString *kbdescription;
|
||||
@property (nonatomic, copy, nullable) NSString *createdAt;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
16
keyBoard/Class/Me/M/KBConsumptionRecord.m
Normal file
16
keyBoard/Class/Me/M/KBConsumptionRecord.m
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// KBConsumptionRecord.m
|
||||
// keyBoard
|
||||
//
|
||||
|
||||
#import "KBConsumptionRecord.h"
|
||||
|
||||
@implementation KBConsumptionRecord
|
||||
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
|
||||
// JSON: { "id": 0, "tagName": "xxx" }
|
||||
// Model: tagId / tagName
|
||||
return @{
|
||||
@"kbdescription" : @"description",
|
||||
};
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user