feat(peer): add alias field and support filtering by alias

This commit is contained in:
lejianwen
2025-08-31 13:39:22 +08:00
parent a7c087afbb
commit f09c898f16
4 changed files with 8 additions and 1 deletions

View File

@@ -114,6 +114,9 @@ func (ct *Peer) List(c *gin.Context) {
if query.Ip != "" {
tx.Where("last_online_ip like ?", "%"+query.Ip+"%")
}
if query.Alias != "" {
tx.Where("alias like ?", "%"+query.Alias+"%")
}
})
response.Success(c, res)
}