Help us shape the future of Go! Take the 2026 Go Developer Survey

document

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package document holds the Hertz handlers of the admin help document management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDeleteDocumentHandler

func BatchDeleteDocumentHandler(service support.Service) app.HandlerFunc

BatchDeleteDocumentHandler documents Batch delete document.

@Summary Batch delete document @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.BatchDeleteDocumentRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/document/batch [delete]

func CreateDocumentHandler

func CreateDocumentHandler(service support.Service) app.HandlerFunc

CreateDocumentHandler documents Create document.

@Summary Create document @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.CreateDocumentRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/document/ [post]

func DeleteDocumentHandler

func DeleteDocumentHandler(service support.Service) app.HandlerFunc

DeleteDocumentHandler documents Delete document.

@Summary Delete document @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.DeleteDocumentRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/document/ [delete]

func GetDocumentDetailHandler

func GetDocumentDetailHandler(service support.Service) app.HandlerFunc

GetDocumentDetailHandler documents Get document detail.

@Summary Get document detail @Tags admin @Accept json @Produce json @Security BearerAuth @Param request query dto.GetDocumentDetailRequest false "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.Document} @Router /v1/admin/document/detail [get]

func GetDocumentListHandler

func GetDocumentListHandler(service support.Service) app.HandlerFunc

GetDocumentListHandler documents Get document list.

@Summary Get document list @Tags admin @Accept json @Produce json @Security BearerAuth @Param request query dto.GetDocumentListRequest false "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean{data=dto.GetDocumentListResponse} @Router /v1/admin/document/list [get]

func UpdateDocumentHandler

func UpdateDocumentHandler(service support.Service) app.HandlerFunc

UpdateDocumentHandler documents Update document.

@Summary Update document @Tags admin @Accept json @Produce json @Security BearerAuth @Param request body dto.UpdateDocumentRequest true "Request parameters" @Success 200 {object} httpx.ResponseSuccessBean @Router /v1/admin/document/ [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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