Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewsListTransformer ¶
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
Click to show internal directories.
Click to hide internal directories.