rigged shuffle
This commit is contained in:
@@ -90,13 +90,21 @@ type GetLoginInterfaceResp struct {
|
||||
|
||||
type KeySelection []int
|
||||
|
||||
type CustomerId uuid.UUID
|
||||
type CustomerID uuid.UUID
|
||||
|
||||
func CustomerIdToString(customerId CustomerId) string {
|
||||
func CustomerIdToString(customerId CustomerID) string {
|
||||
customerUuid := uuid.UUID(customerId)
|
||||
return customerUuid.String()
|
||||
}
|
||||
|
||||
func CustomerIDFromString(customerID string) (CustomerID, error) {
|
||||
id, err := uuid.Parse(customerID)
|
||||
if err != nil {
|
||||
return CustomerID{}, err
|
||||
}
|
||||
return CustomerID(id), nil
|
||||
}
|
||||
|
||||
type SessionId uuid.UUID
|
||||
type UserId uuid.UUID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user