rigged shuffle

This commit is contained in:
2025-08-01 10:49:46 -05:00
parent 3ed12cee68
commit 8d4c8f71b0
21 changed files with 578 additions and 146 deletions

View File

@@ -11,7 +11,7 @@ import (
)
type Customer struct {
Id models.CustomerId
ID models.CustomerID
NKodePolicy models.NKodePolicy
Attributes CustomerAttributes
}
@@ -22,7 +22,7 @@ func NewCustomer(nkodePolicy models.NKodePolicy) (*Customer, error) {
return nil, err
}
customer := Customer{
Id: models.CustomerId(uuid.New()),
ID: models.CustomerID(uuid.New()),
NKodePolicy: nkodePolicy,
Attributes: *customerAttrs,
}
@@ -88,7 +88,7 @@ func (c *Customer) RenewKeys() ([]uint64, []uint64, error) {
func (c *Customer) ToSqlcCreateCustomerParams() sqlc.CreateCustomerParams {
return sqlc.CreateCustomerParams{
ID: uuid.UUID(c.Id).String(),
ID: uuid.UUID(c.ID).String(),
MaxNkodeLen: int64(c.NKodePolicy.MaxNkodeLen),
MinNkodeLen: int64(c.NKodePolicy.MinNkodeLen),
DistinctSets: int64(c.NKodePolicy.DistinctSets),