doc: 变更记录
This commit is contained in:
parent
20316abc31
commit
60cb7b8d50
@ -75,4 +75,10 @@ type User struct {
|
|||||||
Role int `gorm:"column:role;default:1;type:int;comment:1表示普通用户,2表示管理员"`
|
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注入
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user