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
Click to show internal directories.
Click to hide internal directories.