This commit is contained in:
邹宗楠
2022-08-15 16:24:41 +08:00
parent 949dd96a0a
commit be87623211
15 changed files with 321 additions and 103 deletions

View File

@@ -96,12 +96,12 @@ func GetMenuDetail(db *sqlx.DB, id int) (menu *model.MenuDetail, err error) {
// CreateUserWx 创建微信用户
func CreateUserWx(user *model.User) error {
db := globals.GetDB()
return Insert(db, &user)
return Insert(db, user)
}
// UpdateUserWx 更新微信用户
func UpdateUserWx(user *model.User, filed []string) error {
db := globals.GetDB()
// 用户存在,判断用户
return Update(db, &user, filed...)
return Update(db, user, filed...)
}