swift:
struct Login: Codable {
let code: UInt
let msg: String
let data: LoginInfo
enum CodingKeys: String, CodingKey {
case code = "code"
case msg = "msg"
case data = "data"
}
}
struct LoginInfo: Codable {
let userID: String
let username: String
enum CodingKeys: String, CodingKey {
case userID = "userID"
case username = "username"
}
}