第一次结对作业
今天将数据库连接后端创建了几个数据类,方便对数据进行读取等操作
package com.example.metro_info_front_end.DataModel; import java.util.List; public class MetroLine { private String lineNumber; private List<MetroStation> stations; public String getLineNumber() { return lineNumber; } public List<MetroStation> getStations() { return stations; } }
package com.example.metro_info_front_end.DataModel; import java.util.List; public class MetroStation { private String stationName; private String stationCode; private Boolean isTransferStation; private List<String> lineNumbers; public String getStationName() { return stationName; } public String getStationCode() { return stationCode; } public Boolean isTransferStation() { return isTransferStation; } public List<String> getLineNumbers() { return lineNumbers; } }
package com.example.metro_info_front_end.DataModel; import java.util.List; public class MetroSystem { private String systemName; private String systemCode; private List<MetroLine> lines; public String getSystemName() { return systemName; } public String getSystemCode() { return systemCode; } public List<MetroLine> getLines() { return lines; } }