refactor types

This commit is contained in:
2024-08-23 11:23:18 -05:00
parent 19c922a00e
commit f9354196dd
2 changed files with 23 additions and 20 deletions

View File

@@ -1,20 +0,0 @@
package model
import "github.com/google/uuid"
type CreateNewCustomerResp struct {
CustomerId uuid.UUID `json:"customer_id"`
}
type GenerateSignupInterfaceResp struct {
SessionId uuid.UUID `json:"session_id"`
UserInterface []int `json:"user_interface"`
}
type SetNKodeResp struct {
UserInterface []int `json:"user_interface"`
}
type GetLoginInterfaceResp struct {
UserInterface []int `json:"user_interface"`
}

View File

@@ -2,6 +2,10 @@ package model
import "github.com/google/uuid"
type SetNKodeResp struct {
UserInterface []int `json:"user_interface"`
}
type NewCustomerPost struct {
KeypadSize KeypadSize `json:"keypad_size"`
NKodePolicy NKodePolicy `json:"nkode_policy"`
@@ -38,3 +42,22 @@ type LoginPost struct {
type RenewAttributesPost struct {
CustomerId uuid.UUID `json:"customer_id"`
}
type CreateNewCustomerResp struct {
CustomerId uuid.UUID `json:"customer_id"`
}
type GenerateSignupInterfaceResp struct {
SessionId uuid.UUID `json:"session_id"`
UserInterface []int `json:"user_interface"`
}
type GetLoginInterfaceResp struct {
UserInterface []int `json:"user_interface"`
}
type KeySelection []int
type CustomerId uuid.UUID
type SessionId uuid.UUID
type Username string
type UserInterface []int