split sign and reset
This commit is contained in:
@@ -15,24 +15,23 @@ 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 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 `form:"customer_id" binding:"required"`
|
||||
KeySelection []int `form:"key_selection" binding:"required"`
|
||||
SessionId string `form:"session_id" binding:"required"`
|
||||
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 `form:"customer_id" binding:"required"`
|
||||
KeySelection entities.KeySelection `form:"key_selection" binding:"required"`
|
||||
SessionId string `form:"session_id" binding:"required"`
|
||||
CustomerId string `json:"customer_id" binding:"required"`
|
||||
KeySelection []int `json:"key_selection" binding:"required"`
|
||||
SessionId string `json:"session_id" binding:"required"`
|
||||
}
|
||||
|
||||
type LoginInterfacePost struct {
|
||||
@@ -41,16 +40,16 @@ type LoginInterfacePost struct {
|
||||
}
|
||||
|
||||
type LoginPost struct {
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
UserEmail string `form:"email" binding:"required"`
|
||||
KeySelection entities.KeySelection `form:"key_selection" binding:"required"`
|
||||
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 ResetNKodePost struct {
|
||||
type ForgotNKodePost struct {
|
||||
UserEmail string `form:"email" binding:"required"`
|
||||
CustomerId string `form:"customer_id" binding:"required"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user