2023-11-20 15:13:42 -05:00
|
|
|
package apirequest
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"net/http"
|
|
|
|
|
2024-08-21 13:39:03 -04:00
|
|
|
"codeberg.org/vlbeaudoin/voki/v3"
|
2023-11-20 15:13:42 -05:00
|
|
|
"git.agecem.com/agecem/agecem-org/apiresponse"
|
|
|
|
)
|
|
|
|
|
2024-08-21 13:39:03 -04:00
|
|
|
var _ voki.Requester[apiresponse.V1SeedPOST] = V1SeedPOST{}
|
2023-11-20 15:13:42 -05:00
|
|
|
|
|
|
|
type V1SeedPOST struct{}
|
|
|
|
|
|
|
|
func NewV1SeedPOST() (request V1SeedPOST, err error) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r V1SeedPOST) Complete() bool { return true }
|
|
|
|
|
|
|
|
func (r V1SeedPOST) Request(v *voki.Voki) (response apiresponse.V1SeedPOST, err error) {
|
|
|
|
if !r.Complete() {
|
|
|
|
err = fmt.Errorf("Incomplete V1SeedPOST")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
return response, v.UnmarshalIfComplete(http.MethodPost, "/v1/seed", nil, true, &response)
|
|
|
|
}
|