model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	StatusCode int    `json:"-"`       // HTTPステータスコード
	Message    string `json:"message"` // エラーメッセージ
}

func (*Error) Error

func (e *Error) Error() string

type Task

type Task struct {
	ID          string `json:"id" extensions:"x-order=0"`          // タスクID(自動で生成されるUUID)
	UserID      string `json:"user_id" extensions:"x-order=1"`     // ユーザID
	Title       string `json:"title" extensions:"x-order=2"`       // タスクタイトル
	Description string `json:"description" extensions:"x-order=3"` // タスク説明文
	Status      int    `json:"status" extensions:"x-order=4"`      // タスクのステータス(0: 未着手, 1: 完了)
}

type TaskFetchParam

type TaskFetchParam struct {
	UserID string  `form:"-"`
	Status *int    `form:"status"`
	Sort   *string `form:"sort"`
}

func (*TaskFetchParam) GetSort added in v1.1.0

func (param *TaskFetchParam) GetSort() []string

Jump to

Keyboard shortcuts

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