controllers

package
v0.0.0-...-34e0d52 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreditCardData

type CreditCardData struct {
	Number string `json:"number"`
}

type ExampleController

type ExampleController struct{}

func (*ExampleController) CreateExample

func (ctrl *ExampleController) CreateExample(ctx *gin.Context)

func (*ExampleController) GetExampleData

func (ctrl *ExampleController) GetExampleData(ctx *gin.Context)

func (*ExampleController) GetExamplePaginated

func (ctrl *ExampleController) GetExamplePaginated(ctx *gin.Context)

func (*ExampleController) GetForeignRelationData

func (ctrl *ExampleController) GetForeignRelationData(ctx *gin.Context)

GetForeignRelationData Get Foreign Data with Preload

func (*ExampleController) GetHasManyRelationCreditCardData

func (ctrl *ExampleController) GetHasManyRelationCreditCardData(ctx *gin.Context)

GetHasManyRelationCreditCardData fetch credit-card data with preload

func (*ExampleController) GetHasManyRelationUserData

func (ctrl *ExampleController) GetHasManyRelationUserData(ctx *gin.Context)

GetHasManyRelationUserData fetch user data with preload

func (*ExampleController) GetNormalData

func (ctrl *ExampleController) GetNormalData(ctx *gin.Context)

GetNormalData get normal data if added pagination see example_controller

func (*ExampleController) GetSelectedFieldData

func (ctrl *ExampleController) GetSelectedFieldData(ctx *gin.Context)

func (*ExampleController) GetUserDetails

func (ctrl *ExampleController) GetUserDetails(ctx *gin.Context)

GetUserDetails based on user_id

type SelectedFiledFetch

type SelectedFiledFetch struct {
	ID    uint   `json:"id"`
	Title string `json:"title"`
}

SelectedFiledFetch fields fetch from defining new struct

Jump to

Keyboard shortcuts

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