Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flylink888 authored Nov 24, 2021
1 parent be6bc2f commit e7f230f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ if err != nil {

```
type Product struct {
PID string `gorm:"primaryKey"`
NAME string
Pid string `gorm:"primaryKey"`
Name string
}
```

```
//这个不是必需的
func (Product) TableName() string {
return "PRODUCT"
}
Expand Down

0 comments on commit e7f230f

Please sign in to comment.