Documentation ¶
Index ¶
- Constants
- Variables
- func Create[T any](model *T, c *gin.Context, ...)
- func CreateBatch[T any](model []T, c *gin.Context, ...)
- func DeletePermanentlyById[T any](c *gin.Context, fnServiceDeletePermanentlyById func(id string) (int64, error))
- func DeleteSoftlyById[T any](c *gin.Context, fnServiceDeleteSoftlyById func(id string) (int64, error))
- func GetAll[T any](c *gin.Context, fnServiceGetAll func() ([]T, error))
- func GetAllByClientId[T any](c *gin.Context, fnServiceGetAll func(id string) ([]T, error))
- func GetAllByOtherPathParamsId[T any](c *gin.Context, ...)
- func GetOneById[T any](c *gin.Context, fnServiceGetOneById func(id string) (T, error))
- func PatchById[T any](model *models.PatchByIdModel, c *gin.Context, ...)
- func UpdateById[T any](model *T, c *gin.Context, fnServiceUpdate func(t T, id string) (T, error))
Constants ¶
View Source
const BadRequest = http.StatusBadRequest
View Source
const Created = http.StatusCreated
View Source
const InternalServerError = http.StatusInternalServerError
View Source
const NotFound = http.StatusNotFound
View Source
const OK = http.StatusOK
View Source
const UnAuthorized = http.StatusUnauthorized
Variables ¶
View Source
var Validate = validator.New()
Functions ¶
func CreateBatch ¶
func DeletePermanentlyById ¶
func DeleteSoftlyById ¶
func GetAllByClientId ¶
func GetAllByOtherPathParamsId ¶
func GetAllByOtherPathParamsId[T any](c *gin.Context, fnServiceGetAll func(pathParams ...genericcrud_repositories_gorm.PathParams) ([]T, error), pathParams ...string)
func GetOneById ¶
func PatchById ¶
func PatchById[T any](model *models.PatchByIdModel, c *gin.Context, fnServicePatch func(object models.PatchByIdModel) (T, error))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.