This commit is contained in:
苏尹岚
2020-12-02 14:12:55 +08:00
parent 4aa8787fd8
commit 70db40b68d
5 changed files with 103 additions and 19 deletions

View File

@@ -412,3 +412,13 @@ func GetUserSearch(db *DaoDB, userID, keyword string) (userSearchs []*model.User
err = GetRows(db, &userSearchs, sql, sqlParams)
return userSearchs, err
}
func GetStationList(db *DaoDB) (stations []*model.StationInfo, err error) {
sql := `
SELECT *
FROM station_info
`
sqlParams := []interface{}{}
err = GetRows(db, &stations, sql, sqlParams)
return stations, err
}