19 lines
843 B
Go
19 lines
843 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
|
|
"tyapi-server/internal/application/user/dto/commands"
|
|
"tyapi-server/internal/application/user/dto/responses"
|
|
)
|
|
|
|
// UserApplicationService 用户应用服务接口
|
|
type UserApplicationService interface {
|
|
Register(ctx context.Context, cmd *commands.RegisterUserCommand) (*responses.RegisterUserResponse, error)
|
|
LoginWithPassword(ctx context.Context, cmd *commands.LoginWithPasswordCommand) (*responses.LoginUserResponse, error)
|
|
LoginWithSMS(ctx context.Context, cmd *commands.LoginWithSMSCommand) (*responses.LoginUserResponse, error)
|
|
ChangePassword(ctx context.Context, cmd *commands.ChangePasswordCommand) error
|
|
GetUserProfile(ctx context.Context, userID string) (*responses.UserProfileResponse, error)
|
|
SendCode(ctx context.Context, cmd *commands.SendCodeCommand, clientIP, userAgent string) error
|
|
}
|