//
//  SLHomeMsgTableViewCell.m
//  SLAiELTS
//
//  Created by Gusont on 2023/5/16.
//

#import "SLHomeMsgTableViewCell.h"

@implementation SLHomeMsgTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)confignCellWithModel:(SLChatListModel *)chatMode {
  NSString *userImg = [NSString stringWithFormat:@"%@%@",[SLHttpCenter SharedInstance].serverUrl, chatMode.dataHead];
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:userImg] placeholderImage:ImageName(@"icon_ellipse")];
    self.nameLabel.text = chatMode.dataName;
    self.msgLabel.text = [NSString replaceHasPrefix:@"\n" str:chatMode.message];
    self.timeLabel.text = chatMode.sendDate;
}

@end
