todo.go 302 B

1234567891011121314151617181920212223242526
  1. package reqrep
  2. import "github.com/cryptix/exp/todoKitSvc/todosvc"
  3. // Add
  4. type AddRequest struct {
  5. Title string
  6. }
  7. type AddResponse struct {
  8. ID todosvc.ID
  9. Err error
  10. }
  11. // List
  12. type ListRequest struct {
  13. // TODO filtering options?
  14. }
  15. type ListResponse struct {
  16. List []todosvc.Item
  17. Err error
  18. }