新增cad三维看图能力相关

This commit is contained in:
gaoqr
2025-12-24 17:24:10 +08:00
parent a78ddf464c
commit dd431650ba
27 changed files with 529 additions and 149 deletions
@@ -50,6 +50,21 @@ public class ServletUtils {
IoUtil.write(response.getOutputStream(), false, content);
}
/**
* 返回附件文本
*
* @param response 响应
* @param filename 文件名
* @param content 附件内容
*/
public static void writeAttachmentText(HttpServletResponse response, String filename, byte[] content) throws IOException {
// 设置 header 和 contentType
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(filename, "UTF-8"));
response.setContentType(MediaType.TEXT_PLAIN_VALUE);
// 输出附件
IoUtil.write(response.getOutputStream(), false, content);
}
/**
* @param request 请求
* @return ua