mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
694 B
Go
20 lines
694 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-sonic/sonic/model/dto"
|
|
"github.com/go-sonic/sonic/model/entity"
|
|
"github.com/go-sonic/sonic/model/param"
|
|
)
|
|
|
|
type AdminService interface {
|
|
Authenticate(ctx context.Context, loginParam param.LoginParam) (*entity.User, error)
|
|
Auth(ctx context.Context, loginParam param.LoginParam) (*dto.AuthTokenDTO, error)
|
|
ClearToken(ctx context.Context) error
|
|
SendResetPasswordCode(ctx context.Context, resetParam param.ResetPasswordParam) error
|
|
RefreshToken(ctx context.Context, refreshToken string) (*dto.AuthTokenDTO, error)
|
|
GetEnvironments(ctx context.Context) *dto.EnvironmentDTO
|
|
GetLogFiles(ctx context.Context, lines int64) (string, error)
|
|
}
|