This commit is contained in:
wangchuxiao
2023-01-30 19:49:18 +08:00
parent 1e3e243a7f
commit 1693359010
4 changed files with 89 additions and 216 deletions
+5
View File
@@ -19,6 +19,11 @@ type Friend struct {
DB *gorm.DB `gorm:"-"`
}
type FriendUser struct {
Friend
Nickname string `gorm:"column:name;size:255"`
}
func NewFriendDB(db *gorm.DB) *Friend {
var friend Friend
friend.DB = initModel(db, friend)