reorganize code
This commit is contained in:
40
core/model/post.go
Normal file
40
core/model/post.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package model
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type NewCustomerPost struct {
|
||||
KeypadSize KeypadSize `json:"keypad_size"`
|
||||
NKodePolicy NKodePolicy `json:"nkode_policy"`
|
||||
}
|
||||
|
||||
type GenerateSignupInterfacePost struct {
|
||||
CustomerId uuid.UUID `json:"customer_id"`
|
||||
}
|
||||
|
||||
type SetNKodePost struct {
|
||||
Username string `json:"username"`
|
||||
CustomerId uuid.UUID `json:"customer_id"`
|
||||
KeySelection []int `json:"key_selection"`
|
||||
SessionId uuid.UUID `json:"session_id"`
|
||||
}
|
||||
|
||||
type ConfirmNKodePost struct {
|
||||
CustomerId uuid.UUID `json:"customer_id"`
|
||||
KeySelection []int `json:"key_selection"`
|
||||
SessionId uuid.UUID `json:"session_id"`
|
||||
}
|
||||
|
||||
type GetLoginInterfacePost struct {
|
||||
Username string `json:"username"`
|
||||
CustomerId uuid.UUID `json:"customer_id"`
|
||||
}
|
||||
|
||||
type LoginPost struct {
|
||||
CustomerId uuid.UUID `json:"customer_id"`
|
||||
Username string `json:"username"`
|
||||
KeySelection []int `json:"key_selection"`
|
||||
}
|
||||
|
||||
type RenewAttributesPost struct {
|
||||
CustomerId uuid.UUID `json:"customer_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user