diff --git a/core/model/response.go b/core/model/response.go deleted file mode 100644 index 745b9f4..0000000 --- a/core/model/response.go +++ /dev/null @@ -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"` -} diff --git a/core/model/post.go b/core/model/type.go similarity index 66% rename from core/model/post.go rename to core/model/type.go index 83f1a76..d2fea45 100644 --- a/core/model/post.go +++ b/core/model/type.go @@ -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