25 lines
598 B
Go
25 lines
598 B
Go
|
|
package usecase
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
|
||
|
|
"gateway/internal/model/auth/domain/enum"
|
||
|
|
)
|
||
|
|
|
||
|
|
// RecordRegistrationRequest stores registration audit metadata.
|
||
|
|
type RecordRegistrationRequest struct {
|
||
|
|
TenantID string
|
||
|
|
UID string
|
||
|
|
InviteCodeID string
|
||
|
|
AcceptTermsVersion string
|
||
|
|
MarketingOptIn bool
|
||
|
|
Channel enum.RegistrationChannel
|
||
|
|
ClientIP string
|
||
|
|
UserAgent string
|
||
|
|
}
|
||
|
|
|
||
|
|
// RegistrationMetaUseCase records registration audit metadata.
|
||
|
|
type RegistrationMetaUseCase interface {
|
||
|
|
Record(ctx context.Context, req *RecordRegistrationRequest) error
|
||
|
|
}
|