feat: 字体管理

This commit is contained in:
taojinlong 2024-08-26 18:54:14 +08:00
parent adab069bb7
commit c333942eb7
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;