67 lines
1.6 KiB
Go
67 lines
1.6 KiB
Go
package models
|
|
|
|
import (
|
|
"go-nkode/pkg/nkode-core/entities"
|
|
)
|
|
|
|
type SetNKodeResp struct {
|
|
UserInterface []int `json:"user_interface"`
|
|
}
|
|
|
|
type RandomSvgInterfaceResp struct {
|
|
Svgs []string `json:"svgs"`
|
|
Colors []entities.RGBColor `json:"colors"`
|
|
}
|
|
|
|
type RefreshTokenResp struct {
|
|
AccessToken string `json:"access_token"`
|
|
}
|
|
|
|
type NewCustomerPost struct {
|
|
NKodePolicy entities.NKodePolicy `json:"nkode_policy"`
|
|
}
|
|
|
|
type GenerateSignupRestInterfacePost struct {
|
|
CustomerId string `json:"customer_id"`
|
|
AttrsPerKey int `json:"attrs_per_key"`
|
|
NumbOfKeys int `json:"numb_of_keys"`
|
|
UserEmail string `json:"email"`
|
|
Reset bool `json:"reset"`
|
|
}
|
|
|
|
type SetNKodePost struct {
|
|
CustomerId string `json:"customer_id"`
|
|
KeySelection []int `json:"key_selection"`
|
|
SessionId string `json:"session_id"`
|
|
}
|
|
|
|
type ConfirmNKodePost struct {
|
|
CustomerId string `json:"customer_id"`
|
|
KeySelection entities.KeySelection `json:"key_selection"`
|
|
SessionId string `json:"session_id"`
|
|
}
|
|
|
|
type GetLoginInterfacePost struct {
|
|
UserEmail string `json:"email"`
|
|
CustomerId string `json:"customer_id"`
|
|
}
|
|
|
|
type LoginPost struct {
|
|
CustomerId string `json:"customer_id"`
|
|
UserEmail string `json:"email"`
|
|
KeySelection entities.KeySelection `json:"key_selection"`
|
|
}
|
|
|
|
type RenewAttributesPost struct {
|
|
CustomerId string `json:"customer_id"`
|
|
}
|
|
|
|
type ResetNKodePost struct {
|
|
UserEmail string `json:"email"`
|
|
CustomerId string `json:"customer_id"`
|
|
}
|
|
|
|
type CreateNewCustomerResp struct {
|
|
CustomerId string `json:"customer_id"`
|
|
}
|