public
go
import "github.com/prescriptoo/prescriptoo-api/services/admin/public"Package public exposes admin-owned verification data without repositories or domain entities.
Index
- type AuthorizationMembership
- type AuthorizationMembershipReader
- type DoctorVerification
- type VerificationPage
- type VerificationStatuses
type AuthorizationMembership
AuthorizationMembership is the live platform-admin membership boundary.
go
type AuthorizationMembership struct {
ID string
}type AuthorizationMembershipReader
AuthorizationMembershipReader exposes pure membership lookups without permission callbacks.
go
type AuthorizationMembershipReader interface {
GetAdminAuthorizationMembership(context.Context, string) (AuthorizationMembership, error)
}type DoctorVerification
DoctorVerification is the persisted credential submission and authoritative review record.
go
type DoctorVerification struct {
ID string `json:"id"`
DoctorID string `json:"doctor_id"`
UserID string `json:"user_id"`
DoctorName string `json:"doctor_name"`
LicenseNumber string `json:"license_number"`
Specialization string `json:"specialization"`
Documents []string `json:"documents"`
Status string `json:"status" enum:"pending,verified,rejected"`
ReviewedBy *string `json:"reviewed_by,omitempty"`
ReviewedAt *time.Time `json:"reviewed_at,omitempty"`
RejectionReason *string `json:"rejection_reason,omitempty"`
Notes string `json:"notes"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}type VerificationPage
VerificationPage is a newest-first cursor page shared with doctor self-service views.
go
type VerificationPage struct {
Items []DoctorVerification `json:"items" nullable:"false"`
NextCursor string `json:"next_cursor,omitempty"`
}type VerificationStatuses
VerificationStatuses exposes credential display state without review evidence.
go
type VerificationStatuses interface {
// VerificationStatuses returns a display state for every requested doctor,
// including not_submitted when no review exists; it must not expose review evidence.
VerificationStatuses(context.Context, []string) (map[string]string, error)
}Generated by gomarkdoc