mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-28 21:19:02 +08:00
Error code standardization
This commit is contained in:
parent
beeb0f3e00
commit
65a4c39ab8
@ -25,6 +25,12 @@ type User struct {
|
|||||||
DB *gorm.DB `gorm:"-" json:"-"`
|
DB *gorm.DB `gorm:"-" json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NewUserDB() *User {
|
||||||
|
var user User
|
||||||
|
user.DB = initMysqlDB(&user)
|
||||||
|
return &user
|
||||||
|
}
|
||||||
|
|
||||||
func (u *User) Create(ctx context.Context, users []*User) (err error) {
|
func (u *User) Create(ctx context.Context, users []*User) (err error) {
|
||||||
defer func() {
|
defer func() {
|
||||||
trace_log.SetCtxDebug(ctx, utils.GetFuncName(1), err, "users", users)
|
trace_log.SetCtxDebug(ctx, utils.GetFuncName(1), err, "users", users)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user