Small refactoring into modules.
This commit is contained in:
parent
6b50fca7e6
commit
24db5aa3a6
3 changed files with 82 additions and 74 deletions
17
2024/07/golang_demo1/handlers/structures.go
Normal file
17
2024/07/golang_demo1/handlers/structures.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package handlers
|
||||
|
||||
type PersonRequest struct {
|
||||
Name string
|
||||
Age int
|
||||
}
|
||||
|
||||
type PersonResponse struct {
|
||||
Greeting string
|
||||
Errors string
|
||||
}
|
||||
|
||||
type StatusResponse struct {
|
||||
StartDateTime string
|
||||
UpTime string
|
||||
Status string
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue