package com.yeshi.location.app.vo.sos;
|
|
import com.yeshi.location.app.entity.sos.EmergencyContacts;
|
import com.yeshi.location.app.vo.user.SimpleUserInfo;
|
|
/**
|
* @author hxh
|
* @title: EmergencyContactsVO
|
* @description: 紧急联系人输出
|
* @date 2021/11/22 11:20
|
*/
|
public class EmergencyContactsVO {
|
private String id;
|
private String phone;
|
private String remarks;
|
private SimpleUserInfo user;
|
|
|
public static EmergencyContactsVO create(EmergencyContacts contacts, SimpleUserInfo user) {
|
EmergencyContactsVO vo = new EmergencyContactsVO();
|
vo.setId(contacts.getId());
|
vo.setPhone(contacts.getTargetPhone());
|
user.setNickName(contacts.getTargetName());
|
vo.setUser(user);
|
vo.setRemarks(contacts.getRemarks());
|
return vo;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getPhone() {
|
return phone;
|
}
|
|
public void setPhone(String phone) {
|
this.phone = phone;
|
}
|
|
public SimpleUserInfo getUser() {
|
return user;
|
}
|
|
public void setUser(SimpleUserInfo user) {
|
this.user = user;
|
}
|
|
public String getRemarks() {
|
return remarks;
|
}
|
|
public void setRemarks(String remarks) {
|
this.remarks = remarks;
|
}
|
}
|