admin
2021-11-27 4f015b8c624484e0c3b2d88b944163ce43a48d1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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;
    }
}