Documentation ¶
Index ¶
- type CreateController
- type DeleteController
- type ReadController
- func (auth *ReadController) FindAggregate(pipeline []primitive.M, collectionName string) (bool, interface{})
- func (auth *ReadController) FindDocument(c *gin.Context, jsonService structs.JsonService, count bool, ...) (bool, interface{})
- func (auth *ReadController) FindDocumentObj(jsonPost structs.JsonService, mapCon ...map[string]interface{}) (bool, interface{})
- func (auth *ReadController) FindDocumentObjCount(jsonPost structs.JsonService, count bool, mapCon ...map[string]interface{}) (bool, interface{})
- type UpdateController
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, mapCon ...map[string]interface{}) (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{})
Click to show internal directories.
Click to hide internal directories.