implement gin nkode api
This commit is contained in:
60
models/models.go
Normal file
60
models/models.go
Normal file
@@ -0,0 +1,60 @@
|
||||
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 SignupRestPostBody struct {
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
AttrsPerKey int `form:"attrs_per_key" binding:"required"`
|
||||
NumbOfKeys int `form:"numb_of_keys" binding:"required"`
|
||||
UserEmail string `form:"email" binding:"required"`
|
||||
Reset bool `form:"reset" binding:"required"`
|
||||
}
|
||||
|
||||
type SetNKodePost struct {
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
KeySelection []int `form:"key_selection" binding:"required"`
|
||||
SessionId string `form:"session_id" binding:"required"`
|
||||
}
|
||||
|
||||
type ConfirmNKodePost struct {
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
KeySelection entities.KeySelection `form:"key_selection" binding:"required"`
|
||||
SessionId string `form:"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 `form:"customer_id" binding:"required"`
|
||||
UserEmail string `form:"email" binding:"required"`
|
||||
KeySelection entities.KeySelection `form:"key_selection" binding:"required"`
|
||||
}
|
||||
|
||||
type RenewAttributesPost struct {
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
}
|
||||
|
||||
type ResetNKodePost struct {
|
||||
UserEmail string `form:"email" binding:"required"`
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
}
|
||||
|
||||
type CreateNewCustomerResp struct {
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user