Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileItem ¶
func FileItem(c echo.Context) error
@Title fileitem @Summary get fileitems by given path or id. @Description @Tags file @Accept json @Produce json @Param path query string false "path to a file" @Param id query string false "file's id" @Success 200 "OK - get fileitems successfully" @Failure 500 "Fail - internal error" @Router /api/file/fileitem [get] @Security ApiKeyAuth
func PathContent ¶
func PathContent(c echo.Context) error
@Title pathcontent @Summary get content under specific path. @Description @Tags file @Accept json @Produce json @Param path query string false "path to some level" @Success 200 "OK - upload successfully" @Failure 500 "Fail - internal error" @Router /api/file/pathcontent [get] @Security ApiKeyAuth
func Upload ¶
func Upload(c echo.Context) error
@Title upload @Summary upload file action. @Description @Tags file @Accept multipart/form-data @Produce json @Param note formData string false "note for uploading file" @Param group0 formData string false "1st category for uploading file" @Param group1 formData string false "2nd category for uploading file" @Param group2 formData string false "3rd category for uploading file" @Param file formData file true "file path for uploading" @Success 200 "OK - upload successfully" @Failure 500 "Fail - internal error" @Router /api/file/upload [post] @Security ApiKeyAuth
Types ¶
This section is empty.