transformer

package
v2.3.38 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleTaskTransformer

type SimpleTaskTransformer struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Status    string `json:"status"`
	Type      string `json:"type"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

func SimpleTaskTransform

func SimpleTaskTransform(m *model.Task) *SimpleTaskTransformer

type TaskListTransformer

type TaskListTransformer struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Status    string `json:"status"`
	Type      string `json:"type"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

func TaskListTransform

func TaskListTransform(c *gin.Context, p *model2.Pagination[model.Task]) []TaskListTransformer

type TaskTransformer

type TaskTransformer struct {
	ID        int             `json:"id"`
	Name      string          `json:"name"`
	UserID    int             `json:"user_id"`
	Status    string          `json:"status"`
	Type      string          `json:"type"`
	Message   *model3.Message `json:"message,omitempty"`
	FileSize  *int64          `json:"file_size,omitempty"`
	CreatedAt string          `json:"created_at"`
	UpdatedAt string          `json:"updated_at"`
}

func TaskTransform

func TaskTransform(m *model.Task) *TaskTransformer

Jump to

Keyboard shortcuts

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