Add first login route
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
"errors"
|
||||
"ersteller-lib/starter/ent/googleauth"
|
||||
"ersteller-lib/starter/ent/predicate"
|
||||
"ersteller-lib/starter/ent/schema"
|
||||
"ersteller-lib/starter/ent/user"
|
||||
"ersteller-lib/starter/google"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
@@ -37,13 +37,13 @@ func (_u *GoogleAuthUpdate) SetUpdatedAt(v time.Time) *GoogleAuthUpdate {
|
||||
}
|
||||
|
||||
// SetCredentials sets the "credentials" field.
|
||||
func (_u *GoogleAuthUpdate) SetCredentials(v google.Credentials) *GoogleAuthUpdate {
|
||||
func (_u *GoogleAuthUpdate) SetCredentials(v schema.Credentials) *GoogleAuthUpdate {
|
||||
_u.mutation.SetCredentials(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableCredentials sets the "credentials" field if the given value is not nil.
|
||||
func (_u *GoogleAuthUpdate) SetNillableCredentials(v *google.Credentials) *GoogleAuthUpdate {
|
||||
func (_u *GoogleAuthUpdate) SetNillableCredentials(v *schema.Credentials) *GoogleAuthUpdate {
|
||||
if v != nil {
|
||||
_u.SetCredentials(*v)
|
||||
}
|
||||
@@ -190,13 +190,13 @@ func (_u *GoogleAuthUpdateOne) SetUpdatedAt(v time.Time) *GoogleAuthUpdateOne {
|
||||
}
|
||||
|
||||
// SetCredentials sets the "credentials" field.
|
||||
func (_u *GoogleAuthUpdateOne) SetCredentials(v google.Credentials) *GoogleAuthUpdateOne {
|
||||
func (_u *GoogleAuthUpdateOne) SetCredentials(v schema.Credentials) *GoogleAuthUpdateOne {
|
||||
_u.mutation.SetCredentials(v)
|
||||
return _u
|
||||
}
|
||||
|
||||
// SetNillableCredentials sets the "credentials" field if the given value is not nil.
|
||||
func (_u *GoogleAuthUpdateOne) SetNillableCredentials(v *google.Credentials) *GoogleAuthUpdateOne {
|
||||
func (_u *GoogleAuthUpdateOne) SetNillableCredentials(v *schema.Credentials) *GoogleAuthUpdateOne {
|
||||
if v != nil {
|
||||
_u.SetCredentials(*v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user