transformer

package
v2.3.27 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewsListTransformer

type NewsListTransformer struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

func NewsListTransform

func NewsListTransform(c *gin.Context, p *model2.Pagination[model.News]) []NewsListTransformer

type NewsTransformer

type NewsTransformer struct {
	ID      int     `json:"id"`
	Title   string  `json:"title"`
	Content *string `json:"content"`
}

func NewsTransform

func NewsTransform(m *model.News) *NewsTransformer

Jump to

Keyboard shortcuts

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