19 lines
538 B
Go
19 lines
538 B
Go
package models
|
|
|
|
// ExampleGetResponse represents the response for the GET example service
|
|
type ExampleGetResponse struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// ExamplePostRequest represents the request body for the POST example service
|
|
type ExamplePostRequest struct {
|
|
Name string `json:"name" binding:"required"`
|
|
Age int `json:"age" binding:"required"`
|
|
}
|
|
|
|
// ExamplePostResponse represents the response for the POST example service
|
|
type ExamplePostResponse struct {
|
|
ID string `json:"id"`
|
|
Message string `json:"message"`
|
|
}
|