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.
18 lines
626 B
Go
18 lines
626 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 ApplicationPasswordService interface {
|
|
CreatePwd(ctx context.Context, appPwdParam *param.ApplicationPasswordParam) (*dto.ApplicationPasswordDTO, error)
|
|
DeletePwd(ctx context.Context, appPwdParam *param.ApplicationPasswordParam) error
|
|
List(ctx context.Context) ([]*dto.ApplicationPasswordDTO, error)
|
|
Verify(ctx context.Context, userID int32, pwd string) (*entity.ApplicationPassword, error)
|
|
Update(ctx context.Context, entityID int32, ip string) error
|
|
}
|