refactor types
This commit is contained in:
@@ -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"`
|
|
||||||
}
|
|
||||||
@@ -2,6 +2,10 @@ package model
|
|||||||
|
|
||||||
import "github.com/google/uuid"
|
import "github.com/google/uuid"
|
||||||
|
|
||||||
|
type SetNKodeResp struct {
|
||||||
|
UserInterface []int `json:"user_interface"`
|
||||||
|
}
|
||||||
|
|
||||||
type NewCustomerPost struct {
|
type NewCustomerPost struct {
|
||||||
KeypadSize KeypadSize `json:"keypad_size"`
|
KeypadSize KeypadSize `json:"keypad_size"`
|
||||||
NKodePolicy NKodePolicy `json:"nkode_policy"`
|
NKodePolicy NKodePolicy `json:"nkode_policy"`
|
||||||
@@ -38,3 +42,22 @@ type LoginPost struct {
|
|||||||
type RenewAttributesPost struct {
|
type RenewAttributesPost struct {
|
||||||
CustomerId uuid.UUID `json:"customer_id"`
|
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
|
||||||
Reference in New Issue
Block a user