MCPcopy Create free account
hub / github.com/TalkingData/owl / deleteUser

Method deleteUser

api/mysql.go:780–788  ·  view source on GitHub ↗

根据用户id删除用户

(userID int)

Source from the content-addressed store, hash-verified

778
779//根据用户id删除用户
780func (d *db) deleteUser(userID int) error {
781 rawSQL := fmt.Sprintf("delete from user where id=%d", userID)
782 log.Println(rawSQL)
783 if _, err := d.Exec(rawSQL); err != nil {
784 log.Println(err)
785 return err
786 }
787 return nil
788}
789
790//更新用户配置信息
791func (d *db) updateUserProfile(user *User) error {

Callers 2

SyncUsersFunction · 0.80
deleteUserFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected