18 lines
645 B
Go
18 lines
645 B
Go
package interfaces
|
|
|
|
import (
|
|
"context"
|
|
"github.com/winc-link/hummingbird/internal/dtos"
|
|
//"gitlab.com/tedge/edgex/internal/dtos"
|
|
)
|
|
|
|
type UserItf interface {
|
|
UserLogin(ctx context.Context, req dtos.LoginRequest) (res dtos.LoginResponse, err error)
|
|
InitInfo() (res dtos.InitInfoResponse, err error)
|
|
InitPassword(ctx context.Context, req dtos.InitPasswordRequest) error
|
|
UpdateUserPassword(ctx context.Context, username string, req dtos.UpdatePasswordRequest) error
|
|
OpenApiUserLogin(ctx context.Context, req dtos.LoginRequest) (res *dtos.TokenDetail, err error)
|
|
CreateTokenDetail(userName string) (*dtos.TokenDetail, error)
|
|
InitJwtKey()
|
|
}
|