- up
This commit is contained in:
@@ -14,9 +14,10 @@ type DefAuther struct {
|
||||
|
||||
// 此函数为空
|
||||
func (a *DefAuther) AddAuthBind(authBindEx *auth2.AuthBindEx, userName string) (err error) {
|
||||
dao.WrapAddIDCULDEntity(&authBindEx.AuthBind, userName)
|
||||
authBindEx.Status = model.AuthBindStatusNormal
|
||||
err = dao.CreateEntity(nil, &authBindEx.AuthBind)
|
||||
authBind := &authBindEx.AuthBind
|
||||
dao.WrapAddIDCULDEntity(authBind, userName)
|
||||
authBind.Status = model.AuthBindStatusNormal
|
||||
err = dao.CreateEntity(nil, authBind)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user