@ -75,4 +75,10 @@ type User struct {
Role int `gorm:"column:role;default:1;type:int;comment:1表示普通用户,2表示管理员"`
}
```
## 版本变更记录(从v1.0.5开始记录)
### v1.0.5 2025-08-02
#### 变更
- 修改GORM封装方法中的AND,使其代替原本的Ors函数,防止SQL注入
The note is not visible to the blocked user.