60 lines
1.7 KiB
Go
60 lines
1.7 KiB
Go
package models
|
|
|
|
import "git.infra.nkode.tech/dkelly/nkode-core/entities"
|
|
|
|
type SetNKodeResp struct {
|
|
UserInterface []int `json:"user_interface"`
|
|
}
|
|
|
|
type RandomSvgInterfaceResp struct {
|
|
Svgs []string `form:"svgs" binding:"required"`
|
|
Colors []entities.RGBColor `form:"colors" binding:"required"`
|
|
}
|
|
|
|
type RefreshTokenResp struct {
|
|
AccessToken string `form:"access_token" binding:"required"`
|
|
}
|
|
|
|
type SignupPostBody struct {
|
|
CustomerId string `form:"customer_id"`
|
|
AttrsPerKey int `form:"attrs_per_key"`
|
|
NumbOfKeys int `form:"numb_of_keys"`
|
|
UserEmail string `form:"email"`
|
|
}
|
|
|
|
type SetNKodePost struct {
|
|
CustomerId string `json:"customer_id" binding:"required"`
|
|
KeySelection []int `json:"key_selection" binding:"required"`
|
|
SessionId string `json:"session_id" binding:"required"`
|
|
}
|
|
|
|
type ConfirmNKodePost struct {
|
|
CustomerId string `json:"customer_id" binding:"required"`
|
|
KeySelection []int `json:"key_selection" binding:"required"`
|
|
SessionId string `json:"session_id" binding:"required"`
|
|
}
|
|
|
|
type LoginInterfacePost struct {
|
|
UserEmail string `form:"email" binding:"required"`
|
|
CustomerId string `form:"customer_id" binding:"required"`
|
|
}
|
|
|
|
type LoginPost struct {
|
|
CustomerId string `json:"customer_id" binding:"required"`
|
|
UserEmail string `json:"email" binding:"required"`
|
|
KeySelection entities.KeySelection `json:"key_selection" binding:"required"`
|
|
}
|
|
|
|
type RenewAttributesPost struct {
|
|
CustomerId string `form:"customer_id" binding:"required"`
|
|
}
|
|
|
|
type ForgotNKodePost struct {
|
|
UserEmail string `form:"email" binding:"required"`
|
|
CustomerId string `form:"customer_id" binding:"required"`
|
|
}
|
|
|
|
type CreateNewCustomerResp struct {
|
|
CustomerId string `form:"customer_id" binding:"required"`
|
|
}
|