Merge pull request #11766 from dataease/pr@dev-v2@fixDS

feat: 字体管理
This commit is contained in:
taojinlong 2024-08-26 18:54:41 +08:00 committed by GitHub
commit 3f3e12c33f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -32,6 +32,12 @@ export const deleteById = id => {
})
}
export const defaultFont = () => {
return request.get({ url: '/typeface/defaultFont' }).then(res => {
return res?.data
})
}
export const uploadFontFile = async (data): Promise<IResponse> => {
return request
.post({

View File

@ -45,7 +45,7 @@ public interface FontApi {
String upload(@RequestParam("file") MultipartFile file) throws DEException;
@GetMapping("/download/{id}")
void download(@PathVariable("id") Long id, HttpServletResponse response) throws DEException;\
void download(@PathVariable("id") Long id, HttpServletResponse response) throws DEException;
@GetMapping("/defaultFont")
List<FontDto> defaultFont() throws DEException;