12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //
- // RQUserModel.m
- // RQCommon
- //
- // Created by 张嵘 on 2018/11/16.
- // Copyright © 2018 张嵘. All rights reserved.
- //
- #import "RQUserModel.h"
- @implementation AccountInfoItem
- @end
- @implementation LoginBindInfosItem
- + (NSDictionary *)modelCustomPropertyMapper {
- return @{
- @"_id" : @"id",
- };
- }
- @end
- @implementation ParamsItem
- @end
- @implementation SchInfo
- + (NSDictionary *)modelCustomPropertyMapper {
- return @{
- @"_id" : @"id",
- };
- }
- @end
- @implementation RQUserModel
- // 返回容器类中的所需要存放的数据类型 (以 Class 或 Class Name 的形式)。
- + (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
- return @{
- @"accountInfo" : [AccountInfoItem class],
- @"params" : [ParamsItem class],
- @"schInfo" : [SchInfo class],
- @"loginBindInfos" : [LoginBindInfosItem class],
- };
- }
- + (NSDictionary *)modelCustomPropertyMapper {
- return @{
- @"_id" : @"id",
- @"a_c" : @"a c",
- };
- }
- - (void)updatePxjdWithPxjd:(NSString *)pxjd {
- self.pxjd = pxjd;
- /// 存储用户数据
- [RQ_USER_MANAGER saveUser:self];
- }
- - (void)updateNickNameWithNickName:(NSString *)nickName {
- self.nickName = nickName;
- /// 存储用户数据
- [RQ_USER_MANAGER saveUser:self];
- }
- - (void)updateSchInfoWithSchInfo:(SchInfo *)schInfo {
- self.schInfo = schInfo;
- /// 存储用户数据
- [RQ_USER_MANAGER saveUser:self];
- }
- @end
|