package api import ( "atlas9.dev/c/core" "atlas9.dev/c/demo/lib/domains" "atlas9.dev/c/demo/tasks" ) const ( Path_Domain_Create = "POST /Domain_Create" Path_Domain_Get = "POST /Domain_Get" Path_Domain_List = "POST /Domain_List" Path_Domain_Delete = "POST /Domain_Delete" Path_Domain_Verify = "POST /Domain_Verify" ) type Domain_CreateReq struct { Tenant core.ID Domain string } type Domain_CreateRes struct { Domain domains.Domain } type Domain_GetReq struct { ID core.ID Tenant core.ID } type Domain_GetRes struct { Domain domains.Domain } type Domain_ListReq struct { Tenant core.ID Page core.PageReq } type Domain_ListRes struct { Page core.Page[domains.Domain] } type Domain_DeleteReq struct { ID core.ID Tenant core.ID } type Domain_DeleteRes struct{} type Domain_VerifyReq struct { ID core.ID Tenant core.ID } type Domain_VerifyRes struct { Verified bool // Task tells the worker how the run ended when this endpoint executes // as a background task. Task tasks.Result } // Prepare methods func (d *Domain_CreateReq) Prepare() error { return nil } func (d *Domain_GetReq) Prepare() error { return nil } func (d *Domain_ListReq) Prepare() error { return nil } func (d *Domain_DeleteReq) Prepare() error { return nil } func (d *Domain_VerifyReq) Prepare() error { return nil }