first commit
This commit is contained in:
18
internal/models/example.go
Normal file
18
internal/models/example.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user