feat(frontend): optimize frontend interaction (#8)

Support auto refresh. Change authentication method. Streamline the frontend code.
This commit is contained in:
Li4n0
2021-04-25 22:15:56 +08:00
committed by GitHub
parent 50a6749070
commit 7e99d93e43
21 changed files with 347 additions and 232 deletions
+6
View File
@@ -67,6 +67,12 @@ func ListRecords(c *gin.Context) {
if ftpRecord.Flag != "" {
db.Where("flag = ?", ftpRecord.Flag)
}
if ftpRecord.User != "" {
db.Where("user like ?", "%"+ftpRecord.User+"%")
}
if ftpRecord.Password != "" {
db.Where("password like ?", "%"+ftpRecord.Password+"%")
}
if ftpRecord.Path != "" {
db.Where("path like ?", "%"+ftpRecord.Path+"%")
}