rigged shuffle
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user