init push

This commit is contained in:
2026-07-16 22:16:45 +07:00
commit 8b068bdb10
1021 changed files with 332816 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package dto
// GenericDeleteResponse is a common success payload for DELETE endpoints.
type GenericDeleteResponse struct {
Data GenericDeleteResponseData `json:"data"`
}
type GenericDeleteResponseData struct {
Type string `json:"type" example:"delete_result"`
Attributes GenericDeleteAttributes `json:"attributes"`
}
type GenericDeleteAttributes struct {
Deleted bool `json:"deleted" example:"true"`
}
func NewGenericDeleteResponse(resourceType string) GenericDeleteResponse {
return GenericDeleteResponse{
Data: GenericDeleteResponseData{
Type: resourceType,
Attributes: GenericDeleteAttributes{
Deleted: true,
},
},
}
}