mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
replace find with take
This commit is contained in:
parent
7b6ef76d54
commit
04f8a7247d
@ -51,18 +51,6 @@ func UserRegister(user db.User) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type User struct {
|
|
||||||
UserID string `gorm:"column:user_id;primaryKey;"`
|
|
||||||
Nickname string `gorm:"column:name"`
|
|
||||||
FaceUrl string `gorm:"column:icon"`
|
|
||||||
Gender int32 `gorm:"column:gender"`
|
|
||||||
PhoneNumber string `gorm:"column:phone_number"`
|
|
||||||
Birth string `gorm:"column:birth"`
|
|
||||||
Email string `gorm:"column:email"`
|
|
||||||
Ex string `gorm:"column:ex"`
|
|
||||||
CreateTime time.Time `gorm:"column:create_time"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func DeleteUser(userID string) (i int64) {
|
func DeleteUser(userID string) (i int64) {
|
||||||
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user