mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-22 06:40:43 +08:00
feat(frontend): optimize frontend interaction (#8)
Support auto refresh. Change authentication method. Streamline the frontend code.
This commit is contained in:
@@ -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+"%")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user