mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-22 06:45:17 +00:00
Commit from m3o/m3o action
This commit is contained in:
18
user/user.go
18
user/user.go
@@ -4,6 +4,24 @@ import (
|
||||
"go.m3o.com/client"
|
||||
)
|
||||
|
||||
type User interface {
|
||||
Create(*CreateRequest) (*CreateResponse, error)
|
||||
Delete(*DeleteRequest) (*DeleteResponse, error)
|
||||
List(*ListRequest) (*ListResponse, error)
|
||||
Login(*LoginRequest) (*LoginResponse, error)
|
||||
Logout(*LogoutRequest) (*LogoutResponse, error)
|
||||
Read(*ReadRequest) (*ReadResponse, error)
|
||||
ReadSession(*ReadSessionRequest) (*ReadSessionResponse, error)
|
||||
ResetPassword(*ResetPasswordRequest) (*ResetPasswordResponse, error)
|
||||
SendMagicLink(*SendMagicLinkRequest) (*SendMagicLinkResponse, error)
|
||||
SendPasswordResetEmail(*SendPasswordResetEmailRequest) (*SendPasswordResetEmailResponse, error)
|
||||
SendVerificationEmail(*SendVerificationEmailRequest) (*SendVerificationEmailResponse, error)
|
||||
UpdatePassword(*UpdatePasswordRequest) (*UpdatePasswordResponse, error)
|
||||
Update(*UpdateRequest) (*UpdateResponse, error)
|
||||
VerifyEmail(*VerifyEmailRequest) (*VerifyEmailResponse, error)
|
||||
VerifyToken(*VerifyTokenRequest) (*VerifyTokenResponse, error)
|
||||
}
|
||||
|
||||
func NewUserService(token string) *UserService {
|
||||
return &UserService{
|
||||
client: client.NewClient(&client.Options{
|
||||
|
||||
Reference in New Issue
Block a user