package
0.0.0-20241216061321-f8dbffb207ff
Repository: https://github.com/apabird/fileswithtag.git
Documentation: pkg.go.dev
# Functions
@Summary Добавление тегов @Tags file @Description Добавление тегов по пути до файла @ID addTags @Accept json @Produce json @Param AddTagsRequest body AddTagsRequest true "path" @Success 200 {object} Responce "tags" @Failure 400,500 {object} ResponceError "error" @Router /AddMeta [post].
@Summary Получение настроек @Tags setting @Description Получение настроек запуска @ID getSettings @Accept json @Produce json @Param NameSetting query string true "name setting" @Param ValueSetting query string true "value setting" @Success 200 {object} Responce "settings" @Failure 400,500 {object} ResponceError "error" @Router /Settings [put].
@Summary Удаление тегов @Tags file @Description Удаление тегов по пути до файла @ID delTags @Accept json @Produce json @Param AddTagsRequest body AddTagsRequest true "path" @Success 200 {object} Responce "tags" @Failure 400,500 {object} ResponceError "error" @Router /DelMeta [post].
@Summary Получение тегов @Tags file @Description Получение тегов по пути до файла @ID GetFilesInDir @Accept json @Produce json @Param Path query string true "Путь до папки" @Param Count query string true "Количество" @Param Offset query string true "Отступ" @Param Ftype query string false "Тип файлов" Enums(Image, Music, Video, Text) @Success 200 {object} FilesResponce "список файлов" @Failure 400,500 {object} ResponceError "error" @Router /Files [get].
@Summary Папки в папке @Tags dir @Description Папки в папке @ID getDirs @Accept json @Produce json @Param Path query string true "Путь до папки" @Success 200 {object} ResponceDirs "tags" @Failure 400,500 {object} ResponceError "error" @Router /Dirs [get].
@Summary Получение файла @Tags file @Description Получение файла в формате байт строки @ID GetFilesByte @Accept json @Produce json @Param Path query string true "Путь до файла" @Success 200 {object} FileByte "имя файла и его содержимое" @Failure 400,500 {object} ResponceError "error" @Router /FileByte [get].
@Summary Получение настроек @Tags setting @Description Получение настроек запуска @ID getSettings @Accept json @Produce json @Success 200 {object} settingmodule.Setting "settings" @Router /Settings [get].
@Summary Получение тегов @Tags file @Description Получение тегов по пути до файла @ID getTags @Accept json @Produce json @Param Path query string true "path" @Success 200 {object} ResponceFile "tags" @Failure 400 {object} ResponceError "error" @Router /GetMeta [get].
@Summary Дерево папок @Tags OsTree @Description Дерево папок, дерево состовляется в момент старта сервера @ID GetOsTree @Accept json @Produce json @Success 200 {object} filesmanager.Dir "дерево папок" @Router /OsTree [get].
@Summary Поиск по тегам @Tags file @Description Поиск по тегам начиная с базовой папки указаной в настройке @ID Search @Accept json @Produce json @Param SearchData body SearchRequest true "Путь до папки" @Success 200 {object} SearchResponce "список файлов" @Failure 400,500 {object} ResponceError "error" @Router /Search [post].
@Summary Поиск по тегам в папке @Tags file @Description Поиск по тегам в папке @ID SearchInDir @Accept json @Produce json @Param SearchData body SearchInDirRequest true "Путь до папки" @Success 200 {object} SearchResponce "список файлов" @Failure 400,500 {object} ResponceError "error" @Router /SearchInDir [post].
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author