@Tags File @Summary List files @Accept json @Param request body request.FileOption true "request" @Success 200 {object} response.FileInfo @Security ApiKeyAuth @Security Timestamp @Router /files/search [post]
(c *gin.Context)
| 37 | // @Security Timestamp |
| 38 | // @Router /files/search [post] |
| 39 | func (b *BaseApi) ListFiles(c *gin.Context) { |
| 40 | var req request.FileOption |
| 41 | if err := helper.CheckBindAndValidate(&req, c); err != nil { |
| 42 | return |
| 43 | } |
| 44 | fileList, err := fileService.GetFileList(req) |
| 45 | if err != nil { |
| 46 | helper.InternalServer(c, err) |
| 47 | return |
| 48 | } |
| 49 | helper.SuccessWithData(c, fileList) |
| 50 | } |
| 51 | |
| 52 | // @Tags File |
| 53 | // @Summary File search: content grep + optional AI summary |
nothing calls this directly
no test coverage detected