//
//  SLFriendsModel.m
//  SLAiELTS
//
//  Created by Gusont on 2023/4/12.
//

#import "SLFriendsModel.h"

@interface SLFriendsModel()

@property (nonatomic, copy) NSString *head;

@property (nonatomic, copy) NSString *name;

@property (nonatomic, copy) NSString *contactsId;

@property (nonatomic, copy) NSString *friendId;

@end

@implementation SLFriendsModel

+ (NSDictionary *)mj_replacedKeyFromPropertyName {
   return @{
            @"friendId" : @"id",
   };
}

- (void)setHead:(NSString *)head {
    _head = head;
    _userHead = head;
}

- (void)setName:(NSString *)name {
    _name = name;
    _userName = name;
}

- (void)setFriendId:(NSString *)friendId {
    _friendId = friendId;
    _userId = _friendId;
}

- (void)setContactsId:(NSString *)contactsId {
    _contactsId = contactsId;
    _userId = _contactsId;
}

- (NSString *)getUserHeadUrl {
    NSString *userImg = [NSString stringWithFormat:@"%@%@",[SLHttpCenter SharedInstance].serverUrl, self.userHead];
    return userImg;
}

@end
