Skip to content

Commit 440b765

Browse files
committed
用户模型修改完成
1 parent a3ba205 commit 440b765

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/model/user_model.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package model
22

3+
// User 用户
34
type User struct {
4-
Id int `xorm:"not null pk autoincr comment('用户id') INT(11)"`
5-
Username string `xorm:"not null comment('用户名') VARCHAR(32)"`
6-
Nickname string `xorm:"not null comment('昵称') VARCHAR(32)"`
7-
Age int `xorm:"not null comment('年龄') INT(11)"`
5+
ID int `xorm:"not null pk autoincr comment('用户id') INT(11) id"`
6+
Username string `xorm:"not null comment('用户名') VARCHAR(32) username"`
7+
Nickname string `xorm:"comment('昵称') VARCHAR(32) nickname"`
8+
Age int `xorm:"not null comment('年龄') INT(11) age"`
89
}

0 commit comments

Comments
 (0)