controllers

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateController

type CreateController struct{}

CreateController is for insert logic

func (*CreateController) InsertDocument

func (create *CreateController) InsertDocument(c *gin.Context, mapGenerateID ...[]string) (bool, interface{})

InsertDocument is for Document insert

func (*CreateController) InsertDocumentObj

func (create *CreateController) InsertDocumentObj(jsonPost structs.JsonService, mapGenerateID ...[]string) (bool, interface{})

type DeleteController

type DeleteController struct{}

DeleteController is for insert logic

func (*DeleteController) DeleteDocument

func (u *DeleteController) DeleteDocument(c *gin.Context) (bool, interface{})

DeleteDocument is for

func (*DeleteController) DeleteDocumentObj

func (u *DeleteController) DeleteDocumentObj(jsonPost structs.JsonService) (bool, interface{})

type ReadController

type ReadController struct{}

ReadController is for insert logic

func (*ReadController) FindAggregate added in v1.14.0

func (auth *ReadController) FindAggregate(pipeline []primitive.M, collectionName string) (bool, interface{})

func (*ReadController) FindDocument

func (auth *ReadController) FindDocument(c *gin.Context, jsonService structs.JsonService, count bool, mapCon ...map[string]interface{}) (bool, interface{})

FindDocument is for Document insert

func (*ReadController) FindDocumentObj

func (auth *ReadController) FindDocumentObj(jsonPost structs.JsonService, mapCon ...map[string]interface{}) (bool, interface{})

func (*ReadController) FindDocumentObjCount

func (auth *ReadController) FindDocumentObjCount(jsonPost structs.JsonService, count bool) (bool, interface{})

/ count = true ; only count document non get data

type UpdateController

type UpdateController struct{}

UpdateController is for insert logic

func (*UpdateController) UpdateDocument

func (u *UpdateController) UpdateDocument(c *gin.Context, mapGenerateID ...[]string) (bool, interface{})

UpdateDocument is for

func (*UpdateController) UpdateDocumentObj

func (u *UpdateController) UpdateDocumentObj(jsonPost structs.JsonService, mapGenerateID ...[]string) (bool, interface{})

Jump to

Keyboard shortcuts

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