-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathResultModel.swift
146 lines (129 loc) · 3.42 KB
/
ResultModel.swift
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
//
// SJ_Result.swift
// HPacs
//
// Created by shijian on 16/2/23.
// Copyright © 2017年 HH. All rights reserved.
//
struct SJ_Result {
var status: Int?
var message: String?
var data: SJ_Data?
public init?(map: Map) {
}
mutating public func mapping(map: Map) {
status <- map["status"]
message <- map["message"]
data <- map["data"]
}
}
struct SJ_Data {
var uuid: Int?
var relation: String?
var pid: String?
var createTime: Int?
var patientId: String?
var name: String?
var loginname: String?
var sex: String?
var birthday: String?
var photourl: String?
var kind: String?
var aidUuid: Int?
var aidName: String?
var coopId: String?
var exist: Bool?
var appointDoctorId: String?
var appointDoctorName: String?
var age: String?
var videoToken: String?
var product: SJ_Product?
var accountMoney: Int?
var children: String?
var companyId: String?
var test: Bool?
var buyProduct: Bool?
public init?(map: Map) {
}
mutating public func mapping(map: Map) {
uuid <- map["uuid"]
relation <- map["relation"]
pid <- map["pid"]
createTime <- map["createTime"]
patientId <- map["patientId"]
name <- map["name"]
loginname <- map["loginname"]
sex <- map["sex"]
birthday <- map["birthday"]
photourl <- map["photourl"]
kind <- map["kind"]
aidUuid <- map["aidUuid"]
aidName <- map["aidName"]
coopId <- map["coopId"]
exist <- map["exist"]
appointDoctorId <- map["appointDoctorId"]
appointDoctorName <- map["appointDoctorName"]
age <- map["age"]
videoToken <- map["videoToken"]
product <- map["product"]
accountMoney <- map["accountMoney"]
children <- map["children"]
companyId <- map["companyId"]
test <- map["test"]
buyProduct <- map["buyProduct"]
}
}
struct SJ_Product {
var productDetail: [SJ_Productdetail]?
var productServiceId: Int?
var productServiceName: String?
var productPrice: Int?
var batchType: String?
var batchNum: Int?
var createTime: Int?
var isSelfDoctor: Bool?
var expertBatchNum: Int?
var vipReferralNum: Int?
var famDoctorPrice: Int?
var appointmentHospitalNum: String?
var carNum: String?
var originPrice: String?
var expireTime: Int?
var validateMonth: Int?
var expirationTime: Int?
var selfDoctor: Bool?
public init?(map: Map) {
}
mutating public func mapping(map: Map) {
productDetail <- map["productDetail"]
productServiceId <- map["productServiceId"]
productServiceName <- map["productServiceName"]
productPrice <- map["productPrice"]
batchType <- map["batchType"]
batchNum <- map["batchNum"]
createTime <- map["createTime"]
isSelfDoctor <- map["isSelfDoctor"]
expertBatchNum <- map["expertBatchNum"]
vipReferralNum <- map["vipReferralNum"]
famDoctorPrice <- map["famDoctorPrice"]
appointmentHospitalNum <- map["appointmentHospitalNum"]
carNum <- map["carNum"]
originPrice <- map["originPrice"]
expireTime <- map["expireTime"]
validateMonth <- map["validateMonth"]
expirationTime <- map["expirationTime"]
selfDoctor <- map["selfDoctor"]
}
}
struct SJ_Productdetail {
var name: String?
var content: String?
var tips: String?
public init?(map: Map) {
}
mutating public func mapping(map: Map) {
name <- map["name"]
content <- map["content"]
tips <- map["tips"]
}
}