dto

package
v0.0.0-...-0e50a25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 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 AddProviderRequest

type AddProviderRequest struct {
	Name            string `json:"name"`
	TaskValueKey    string `json:"task_value_key"`
	TaskDurationKey string `json:"task_duration_key"`
	TaskNameKey     string `json:"task_name_key"`
	Url             string `json:"url"`
}

type ErrorResponse

type ErrorResponse struct {
	Error bool   `json:"error"`
	Msg   string `json:"msg"`
}

type Provider

type Provider struct {
	ID              primitive.ObjectID `json:"id,omitempty"`
	Name            string             `json:"name"`
	TaskValueKey    string             `json:"task_value_key"`
	TaskDurationKey string             `json:"task_duration_key"`
	TaskNameKey     string             `json:"task_name_key"`
	Url             string             `json:"url"`
	Tasks           []valueobject.Task `json:"tasks,omitempty"`
}

type SuccessResponse

type SuccessResponse struct {
	Message string `json:"message"`
}

type Task

type Task struct {
	ID         string `json:"id"`
	Difficulty int    `json:"difficulty"`
	Duration   int    `json:"duration"`
}

Jump to

Keyboard shortcuts

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