This commit is contained in:
17
internal/api/requests/users/logout.go
Normal file
17
internal/api/requests/users/logout.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package users
|
||||
|
||||
import (
|
||||
"context"
|
||||
"go/types"
|
||||
|
||||
"github.com/swaggest/usecase"
|
||||
)
|
||||
|
||||
func Logout() usecase.Interactor {
|
||||
u := usecase.NewInteractor(func(ctx context.Context, input types.Nil, output *map[string]interface{}) error {
|
||||
return nil
|
||||
})
|
||||
u.SetDescription("Logout current user")
|
||||
u.SetTags("Users")
|
||||
return u
|
||||
}
|
||||
Reference in New Issue
Block a user