Discover Packages
github.com/shandysiswandi/gokit-service
entity
package
Version:
v0.0.0-...-f068abf
Opens a new window with list of versions in this module.
Published: Oct 7, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CreateTodoRequest struct {
Title string `json:"title"`
Description string `json:"description"`
}
type CreateTodoResponse struct {
Code int32 `json:"code"`
Status string `json:"status"`
Message string `json:"message"`
}
type DeleteTodoRequest struct {
ID string `json:"id"`
}
type DeleteTodoResponse struct {
Code int32 `json:"code"`
Status string `json:"status"`
Message string `json:"message"`
}
type GetAllTodoRequest struct{}
type GetAllTodoResponse struct {
Code int32 `json:"code"`
Status string `json:"status"`
Message string `json:"message"`
Data []Todo `json:"data"`
}
type GetTodoByIDRequest struct {
ID string `json:"id"`
}
type GetTodoByIDResponse struct {
Code int32 `json:"code"`
Status string `json:"status"`
Message string `json:"message"`
Data Todo `json:"data"`
}
type Todo struct {
ID string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Status Status `json:"status,omitempty"`
}
type UpdateTodoRequest struct {
ID string `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Status Status `json:"status,omitempty"`
}
type UpdateTodoResponse struct {
Code int32 `json:"code"`
Status string `json:"status"`
Message string `json:"message"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.