refactor:
This commit is contained in:
parent
717ed1f330
commit
8ac07abb30
1 changed files with 10 additions and 1 deletions
|
@ -168,7 +168,16 @@ func (u *UserService) ReadUser(ctx context.Context, token string, id int32) (*st
|
|||
//
|
||||
// Returns:
|
||||
// - error: An error if the operation fails.
|
||||
func (u *UserService) UpdateUser(ctx context.Context, token string, id int32, username *string, password *string, email *string, expiresAt *time.Time, role *int32) error {
|
||||
func (u *UserService) UpdateUser(
|
||||
ctx context.Context,
|
||||
token string,
|
||||
id int32,
|
||||
username *string,
|
||||
password *string,
|
||||
email *string,
|
||||
expiresAt *time.Time,
|
||||
role *int32,
|
||||
) error {
|
||||
me, err := u.ReadUserBySessionToken(ctx, token)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue