package
0.0.0-20241212142216-9a4376b73603
Repository: https://github.com/amsatrio/gin_notes.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
MBiodataCreate godoc @Summary MBiodataCreate @Description Create MBiodata @Tags mBiodata @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mBiodata body model.MBiodata true "Add MBiodata" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_biodata [post].
MBiodataDelete godoc @Summary MBiodataDelete @Description Delete MBiodata by id @Tags mBiodata @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MBiodata id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_biodata/{id} [delete].
MBiodataHeader godoc @Summary MBiodataHeader @Description Get MBiodata header @Tags mBiodata @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_biodata/header [get].
MBiodataIndex godoc @Summary MBiodataIndex @Description Get MBiodata by id @Tags mBiodata @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MBiodata id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_biodata/{id} [get].
MBiodataPage godoc @Summary MBiodataPage @Description Get Page MBiodata @Tags mBiodata @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param _page query string false "page" default(0) @Param _size query string false "size" default(5) @Param _sort query string false "sort" @Param _filter query string false "filter" @Param _q query string false "global filter" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_biodata [get].
MBiodataSoftDelete godoc @Summary MBiodataSoftDelete @Description Soft Delete MBiodata by id @Tags mBiodata @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MBiodata id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_biodata/delete/{id} [put].
MBiodataUpdate godoc @Summary MBiodataUpdate @Description Update MBiodata @Tags mBiodata @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mBiodata body model.MBiodata true "Update MBiodata" @Param id path int true "MBiodata id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_biodata/{id} [put].
MNotesCreate godoc @Summary MNotesCreate @Description Create MNotes @Tags mNotes @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mNotes body model.MNotes true "Add MNotes" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_notes [post].
MNotesDelete godoc @Summary MNotesDelete @Description Delete MNotes by id @Tags mNotes @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MNotes id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_notes/{id} [delete].
MNotesHeader godoc @Summary MNotesHeader @Description Get MNotes header @Tags mNotes @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_notes/header [get].
MNotesIndex godoc @Summary MNotesIndex @Description Get MNotes by id @Tags mNotes @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MNotes id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_notes/{id} [get].
MNotesPage godoc @Summary MNotesPage @Description Get Page MNotes @Tags mNotes @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param _page query string false "page" default(0) @Param _size query string false "size" default(5) @Param _sort query string false "sort" @Param _filter query string false "filter" @Param _q query string false "global filter" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_notes [get].
MNotesSoftDelete godoc @Summary MNotesSoftDelete @Description Soft Delete MNotes by id @Tags mNotes @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MNotes id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_notes/delete/{id} [put].
MNotesUpdate godoc @Summary MNotesUpdate @Description Update MNotes @Tags mNotes @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mNotes body model.MNotes true "Update MNotes" @Param id path int true "MNotes id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_notes/{id} [put].
MRoleCreate godoc @Summary MRoleCreate @Description Create MRole @Tags mRole @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mRole body model.MRole true "Add MRole" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_role [post].
MRoleDelete godoc @Summary MRoleDelete @Description Delete MRole by id @Tags mRole @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MRole id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_role/{id} [delete].
MRoleHeader godoc @Summary MRoleHeader @Description Get MRole header @Tags mRole @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_role/header [get].
MRoleIndex godoc @Summary MRoleIndex @Description Get MRole by id @Tags mRole @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MRole id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_role/{id} [get].
MRolePage godoc @Summary MRolePage @Description Get Page MRole @Tags mRole @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param _page query string false "page" default(0) @Param _size query string false "size" default(5) @Param _sort query string false "sort" @Param _filter query string false "filter" @Param _q query string false "global filter" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_role [get].
MRoleSoftDelete godoc @Summary MRoleSoftDelete @Description Soft Delete MRole by id @Tags mRole @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MRole id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_role/delete/{id} [put].
MRoleUpdate godoc @Summary MRoleUpdate @Description Update MRole @Tags mRole @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mRole body model.MRole true "Update MRole" @Param id path int true "MRole id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_role/{id} [put].
MUserCreate godoc @Summary MUserCreate @Description Create MUser @Tags mUser @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mUser body model.MUser true "Add MUser" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_user [post].
MUserDelete godoc @Summary MUserDelete @Description Delete MUser by id @Tags mUser @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MUser id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_user/{id} [delete].
MUserHeader godoc @Summary MUserHeader @Description Get MUser header @Tags mUser @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_user/header [get].
MUserIndex godoc @Summary MUserIndex @Description Get MUser by id @Tags mUser @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MUser id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_user/{id} [get].
MUserPage godoc @Summary MUserPage @Description Get Page MUser @Tags mUser @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param _page query string false "page" default(0) @Param _size query string false "size" default(5) @Param _sort query string false "sort" @Param _filter query string false "filter" @Param _q query string false "global filter" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_user [get].
MUserSoftDelete godoc @Summary MUserSoftDelete @Description Soft Delete MUser by id @Tags mUser @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "MUser id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_user/delete/{id} [put].
MUserUpdate godoc @Summary MUserUpdate @Description Update MUser @Tags mUser @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param mUser body model.MUser true "Update MUser" @Param id path int true "MUser id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/m_user/{id} [put].
TResetPasswordCreate godoc @Summary TResetPasswordCreate @Description Create TResetPassword @Tags tResetPassword @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param tResetPassword body model.TResetPassword true "Add TResetPassword" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_reset_password [post].
TResetPasswordDelete godoc @Summary TResetPasswordDelete @Description Delete TResetPassword by id @Tags tResetPassword @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "TResetPassword id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_reset_password/{id} [delete].
TResetPasswordHeader godoc @Summary TResetPasswordHeader @Description Get TResetPassword header @Tags tResetPassword @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_reset_password/header [get].
TResetPasswordIndex godoc @Summary TResetPasswordIndex @Description Get TResetPassword by id @Tags tResetPassword @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "TResetPassword id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_reset_password/{id} [get].
TResetPasswordPage godoc @Summary TResetPasswordPage @Description Get Page TResetPassword @Tags tResetPassword @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param _page query string false "page" default(0) @Param _size query string false "size" default(5) @Param _sort query string false "sort" @Param _filter query string false "filter" @Param _q query string false "global filter" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_reset_password [get].
TResetPasswordSoftDelete godoc @Summary TResetPasswordSoftDelete @Description Soft Delete TResetPassword by id @Tags tResetPassword @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "TResetPassword id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_reset_password/delete/{id} [put].
TResetPasswordUpdate godoc @Summary TResetPasswordUpdate @Description Update TResetPassword @Tags tResetPassword @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param tResetPassword body model.TResetPassword true "Update TResetPassword" @Param id path int true "TResetPassword id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_reset_password/{id} [put].
TTokenCreate godoc @Summary TTokenCreate @Description Create TToken @Tags tToken @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param tToken body model.TToken true "Add TToken" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_token [post].
TTokenDelete godoc @Summary TTokenDelete @Description Delete TToken by id @Tags tToken @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "TToken id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_token/{id} [delete].
TTokenHeader godoc @Summary TTokenHeader @Description Get TToken header @Tags tToken @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_token/header [get].
TTokenIndex godoc @Summary TTokenIndex @Description Get TToken by id @Tags tToken @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "TToken id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_token/{id} [get].
TTokenPage godoc @Summary TTokenPage @Description Get Page TToken @Tags tToken @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param _page query string false "page" default(0) @Param _size query string false "size" default(5) @Param _sort query string false "sort" @Param _filter query string false "filter" @Param _q query string false "global filter" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_token [get].
TTokenSoftDelete godoc @Summary TTokenSoftDelete @Description Soft Delete TToken by id @Tags tToken @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param id path int true "TToken id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_token/delete/{id} [put].
TTokenUpdate godoc @Summary TTokenUpdate @Description Update TToken @Tags tToken @Accept json @Produce json @Param Accept-Encoding header string false "gzip" default(gzip) @Param tToken body model.TToken true "Update TToken" @Param id path int true "TToken id" @Success 200 {object} response.Response @Failure 400 {object} response.Response @Failure 404 {object} response.Response @Failure 500 {object} response.Response @Router /v1/t_token/{id} [put].