Documentation ¶
Index ¶
- type CreditCardData
- type ExampleController
- func (ctrl *ExampleController) CreateExample(ctx *gin.Context)
- func (ctrl *ExampleController) GetExampleData(ctx *gin.Context)
- func (ctrl *ExampleController) GetExamplePaginated(ctx *gin.Context)
- func (ctrl *ExampleController) GetForeignRelationData(ctx *gin.Context)
- func (ctrl *ExampleController) GetHasManyRelationCreditCardData(ctx *gin.Context)
- func (ctrl *ExampleController) GetHasManyRelationUserData(ctx *gin.Context)
- func (ctrl *ExampleController) GetNormalData(ctx *gin.Context)
- func (ctrl *ExampleController) GetSelectedFieldData(ctx *gin.Context)
- func (ctrl *ExampleController) GetUserDetails(ctx *gin.Context)
- type SelectedFiledFetch
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 ¶
SelectedFiledFetch fields fetch from defining new struct
Click to show internal directories.
Click to hide internal directories.