kongdeqiang
2026-10-14 9f9e043849b6f497e00399900ff234cf097eba82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Êþº¾="     *com/custom/webui/controller/FileController fileService&Lcom/custom/webui/service/FileService;
    
%com/custom/webui/security/CurrentUser requireUserId()Ljava/lang/Long;  $com/custom/webui/service/FileServiceupload‡(Ljava/lang/Long;Ljava/lang/Long;Lorg/springframework/web/multipart/MultipartFile;ZLjava/lang/Long;)Lcom/custom/webui/dto/resp/FileDTO;
  com/custom/webui/dto/resp/Resultsuccess6(Ljava/lang/Object;)Lcom/custom/webui/dto/resp/Result;  list2(Ljava/lang/Long;Ljava/lang/Long;)Ljava/util/List;   delete#(Ljava/lang/Long;Ljava/lang/Long;)V
" #$()Lcom/custom/webui/dto/resp/Result; % &'ingestE(Ljava/lang/Long;Ljava/lang/Long;)Lcom/custom/webui/dto/resp/FileDTO;
)*+ , !com/custom/webui/dto/resp/FileDTOgetId . /0recognizeImageJ(Ljava/lang/Long;Ljava/lang/Long;)Lcom/custom/webui/dto/resp/OcrResultDTO;
234 56&com/custom/webui/dto/resp/OcrResultDTO    setFileId(Ljava/lang/Long;)V8 9:makeConcatWithConstants$(Ljava/lang/Long;)Ljava/lang/String;
2< => setImageUrl(Ljava/lang/String;)V @ ABrequireManageableFileF(Ljava/lang/Long;Ljava/lang/Long;)Lcom/custom/webui/entity/UploadFile;
DEF GH"com/custom/webui/entity/UploadFile getFilename()Ljava/lang/String;J
LMN OPjava/lang/String lastIndexOf(I)I
LR ST    substring(I)Ljava/lang/String;
LV WH toLowerCase
LY Z[hashCode()I]png
L_ `aequals(Ljava/lang/Object;)Zcjpgejpegggifiwebpkbmp    mno pq"org/springframework/http/MediaType    IMAGE_PNG$Lorg/springframework/http/MediaType;    ms tq
IMAGE_JPEG    mv wq    IMAGE_GIFy
image/webp
m{ |}parseMediaType8(Ljava/lang/String;)Lorg/springframework/http/MediaType;    image/bmp3该文件不是图片,无法通过此接口读取
ƒ„… †‡,com/custom/webui/exception/BusinessException
badRequestB(Ljava/lang/String;)Lcom/custom/webui/exception/BusinessException; ‰ Š‹loadAsResourceH(Ljava/lang/Long;Ljava/lang/Long;)Lorg/springframework/core/io/Resource;
Ž ‘'org/springframework/http/ResponseEntityok7()Lorg/springframework/http/ResponseEntity$BodyBuilder; “”• –—3org/springframework/http/ResponseEntity$BodyBuilder contentType[(Lorg/springframework/http/MediaType;)Lorg/springframework/http/ResponseEntity$BodyBuilder;™$org/springframework/http/HttpHeaders›Content-Dispositioninline “Ÿ  ¡header_(Ljava/lang/String;[Ljava/lang/String;)Lorg/springframework/http/ResponseEntity$HeadersBuilder;£X-Content-Type-Options¥nosniff “§ ¨©body=(Ljava/lang/Object;)Lorg/springframework/http/ResponseEntity; « ¬­ uploadGlobalw(Ljava/lang/Long;Lorg/springframework/web/multipart/MultipartFile;ZLjava/lang/Long;)Lcom/custom/webui/dto/resp/FileDTO; ¯ °±
listGlobal()Ljava/util/List; ³ ´µ    setGlobalF(Ljava/lang/Long;Ljava/lang/Long;Z)Lcom/custom/webui/dto/resp/FileDTO;
·¸¹ º»java/lang/Object<init>()V
½¾¿ ÀÁorg/slf4j/LoggerFactory    getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;    Ã ÄÅlogLorg/slf4j/Logger;v(Lorg/springframework/web/multipart/MultipartFile;Ljava/lang/Long;ZLjava/lang/Long;)Lcom/custom/webui/dto/resp/Result;CodeLineNumberTableLocalVariableTablethis,Lcom/custom/webui/controller/FileController;file1Lorg/springframework/web/multipart/MultipartFile;chatIdLjava/lang/Long;
autoIngestZ
categoryIdMethodParameters    Signature›(Lorg/springframework/web/multipart/MultipartFile;Ljava/lang/Long;ZLjava/lang/Long;)Lcom/custom/webui/dto/resp/Result<Lcom/custom/webui/dto/resp/FileDTO;>;RuntimeVisibleAnnotations5Lorg/springframework/web/bind/annotation/PostMapping;value/upload"RuntimeVisibleParameterAnnotations6Lorg/springframework/web/bind/annotation/RequestParam;required defaultValuetrue4(Ljava/lang/Long;)Lcom/custom/webui/dto/resp/Result;k(Ljava/lang/Long;)Lcom/custom/webui/dto/resp/Result<Ljava/util/List<Lcom/custom/webui/dto/resp/FileDTO;>;>;4Lorg/springframework/web/bind/annotation/GetMapping;idF(Ljava/lang/Long;)Lcom/custom/webui/dto/resp/Result<Ljava/lang/Void;>;7Lorg/springframework/web/bind/annotation/DeleteMapping;/{id}6Lorg/springframework/web/bind/annotation/PathVariable;Y(Ljava/lang/Long;)Lcom/custom/webui/dto/resp/Result<Lcom/custom/webui/dto/resp/FileDTO;>; /{id}/ingeste(Lorg/springframework/web/multipart/MultipartFile;Ljava/lang/Long;)Lcom/custom/webui/dto/resp/Result;userIdstored#Lcom/custom/webui/dto/resp/FileDTO;result(Lcom/custom/webui/dto/resp/OcrResultDTO;(Lorg/springframework/web/multipart/MultipartFile;Ljava/lang/Long;)Lcom/custom/webui/dto/resp/Result<Lcom/custom/webui/dto/resp/OcrResultDTO;>;/ocrcontent;(Ljava/lang/Long;)Lorg/springframework/http/ResponseEntity;$Lcom/custom/webui/entity/UploadFile;    extensionLjava/lang/String;    mediaTyperesource&Lorg/springframework/core/io/Resource; StackMapTableüjava/lang/Longc(Ljava/lang/Long;)Lorg/springframework/http/ResponseEntity<Lorg/springframework/core/io/Resource;>; /{id}/contentf(Lorg/springframework/web/multipart/MultipartFile;ZLjava/lang/Long;)Lcom/custom/webui/dto/resp/Result;‹(Lorg/springframework/web/multipart/MultipartFile;ZLjava/lang/Long;)Lcom/custom/webui/dto/resp/Result<Lcom/custom/webui/dto/resp/FileDTO;>;/global/upload[()Lcom/custom/webui/dto/resp/Result<Ljava/util/List<Lcom/custom/webui/dto/resp/FileDTO;>;>;/global5(Ljava/lang/Long;Z)Lcom/custom/webui/dto/resp/Result;isGlobalZ(Ljava/lang/Long;Z)Lcom/custom/webui/dto/resp/Result<Lcom/custom/webui/dto/resp/FileDTO;>; /{id}/global)(Lcom/custom/webui/service/FileService;)V<clinit>
SourceFileFileController.java8Lorg/springframework/web/bind/annotation/RestController;8Lorg/springframework/web/bind/annotation/RequestMapping;
/api/filesBootstrapMethods
 9$java/lang/invoke/StringConcatFactory˜(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;/api/files//content InnerClasses BodyBuilder6org/springframework/http/ResponseEntity$HeadersBuilderHeadersBuilder%java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandlesLookup!·ÄÅ ÆÇo*´¸,+¹ ¸°È78 7É4ÊËÌÍÎÏÐÑÒÏÓÌÎÐÒÔÕÖר[sÙÚ<ÛØsÌÛØsÎÜZÝÛØsÐÞsßÛØsÒÜZÝàÇE*´¸+¹¸°È>ÉÊËÎÏÓÎÔáÖâÚÛØsÎÜZÝàÇI*´¸+¹¸!°È
D EÉÊËãÏÓãÔäÖåØ[sæÚç&àÇE*´¸+¹$¸°ÈPÉÊËãÏÓãÔèÖר[séÚç/êÇ´D¸N*´-,+¹ :*´-¶(¹-:¶(¶1¶(º7¶;¸°È`ce%f/g>hÉ>DÊËDÌÍDÎÏ@ëÏ0ìí%îïÓ    ÌÎÔðÖר[sñÚÛØsÌÛØsÎÜZÝòóÇeo*´¸+¹?M,¶CÇI§,¶C,¶C.¶K`¶Q¶UN-:6¶X«–}…‰Äi›áI²)91àhY7Ÿœy\¶^™V6§Pb¶^™F6§@d¶^™66§0f¶^™&6§ h¶^™6§j¶^™6ªG%++17?²l§ ²r§²u§x¸z§ ~¸z§:Ç    €¸‚¿*´¸+¹ˆ:¸Œ¹’š½LYœS¹žÀ“¢½LY¤S¹žÀ“¹¦°ÈNz|}0~øþ€
‚ƒ„†"‡(Š7‹<ŒL_Žin‹É>oÊËoãÏaÌô0?õöR÷q78øùúLüDTLÿDûDLL &ÿûDLmü mÓãÔýÖâØ[sþÚç¬ÿÇc*´¸+-¹ª¸°È¤¥¤É*ÊËÌÍÐÑÒÏÓ ÌÐÒÔÖר[sÚ,ÛØsÌÛØsÐÞsßÛØsÒÜZݰ#Ç7 *´¹®¸°È°É  ÊËÔÖâØ[s´ÇP*´¸+¹²¸°È»É ÊËãÏÑÓ    ãÔÖר[sÚçÛØsºÇ>
*·¶*+µ±ÈÉ
ÊË
Ó    »Ç!    ¸¼³Â±È
 Ö  Ø[s“        !