MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / UpdateUser

Function UpdateUser

internal/db/user.go:48–50  ·  view source on GitHub ↗
(u *model.User)

Source from the content-addressed store, hash-verified

46}
47
48func UpdateUser(u *model.User) error {
49 return errors.WithStack(db.Save(u).Error)
50}
51
52func GetUsers(pageIndex, pageSize int) (users []model.User, count int64, err error) {
53 userDB := db.Model(&model.User{})

Callers 3

UpdateUserFunction · 0.92
HashPwdForOldVersionFunction · 0.92
UpdateAuthnForOldVersionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected