/* Options: Date: 2026-10-13 05:42:06 Version: 10.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://vue-spa.web-templates.io //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateTodo.* //ExcludeTypes: //DefaultImports: */ package dtos type Todo struct { Id int64 `json:"id,omitempty"` Text string `json:"text"` IsFinished bool `json:"isFinished,omitempty"` } // @Route("/todos", "POST") type CreateTodo struct { // @Validate(Validator="NotEmpty") Text string `json:"text"` } func (CreateTodo) CreateResponse() (r Todo) { return } func (CreateTodo) HttpMethod() string { return "POST" }