task

package
v0.0.0-...-9665562 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	UserID      uint64 `json:"user_id"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

type CreateResponse

type CreateResponse struct {
	Data        Data              `json:"data"`
	FieldErrors map[string]string `json:"field_errors,omitempty"`
}

type Data

type Data struct {
	ID          uint64            `json:"id"`
	UserID      uint64            `json:"user_id"`
	Title       string            `json:"title"`
	Description string            `json:"description"`
	Status      entity.TaskStatus `json:"status"`
	CreatedAt   time.Time         `json:"created_at"`
	UpdatedAt   time.Time         `json:"updated_at"`
}

type FindAllByUserIDRequest

type FindAllByUserIDRequest struct {
	UserID uint64 `param:"id" json:"user_id"`
}

type FindAllByUserIDResponse

type FindAllByUserIDResponse struct {
	Data        []Data            `json:"data"`
	FieldErrors map[string]string `json:"field_errors,omitempty"`
}

type FindAllRequest

type FindAllRequest struct {
}

type FindAllResponse

type FindAllResponse struct {
	FieldErrors map[string]string `json:"field_errors,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL