修改邀请
This commit is contained in:
20
keyBoard/Class/Me/M/KBInviteCodeModel.h
Normal file
20
keyBoard/Class/Me/M/KBInviteCodeModel.h
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// KBInviteCodeModel.h
|
||||
// keyBoard
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// 邀请码信息
|
||||
@interface KBInviteCodeModel : NSObject
|
||||
@property (nonatomic, copy, nullable) NSString *inviteCode;
|
||||
@property (nonatomic, copy, nullable) NSString *h5Link;
|
||||
@property (nonatomic, assign) NSInteger status;
|
||||
@property (nonatomic, assign) NSInteger usedCount;
|
||||
@property (nonatomic, strong, nullable) NSNumber *maxUses;
|
||||
@property (nonatomic, copy, nullable) NSString *expiresAt;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
17
keyBoard/Class/Me/M/KBInviteCodeModel.m
Normal file
17
keyBoard/Class/Me/M/KBInviteCodeModel.m
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// KBInviteCodeModel.m
|
||||
// keyBoard
|
||||
//
|
||||
|
||||
#import "KBInviteCodeModel.h"
|
||||
#import <MJExtension/MJExtension.h>
|
||||
|
||||
@implementation KBInviteCodeModel
|
||||
|
||||
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
|
||||
return @{
|
||||
@"inviteCode": @"code"
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user