forked from github/dataease
feat: 字体管理
This commit is contained in:
parent
adab069bb7
commit
c333942eb7
@ -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> => {
|
export const uploadFontFile = async (data): Promise<IResponse> => {
|
||||||
return request
|
return request
|
||||||
.post({
|
.post({
|
||||||
|
@ -45,7 +45,7 @@ public interface FontApi {
|
|||||||
String upload(@RequestParam("file") MultipartFile file) throws DEException;
|
String upload(@RequestParam("file") MultipartFile file) throws DEException;
|
||||||
|
|
||||||
@GetMapping("/download/{id}")
|
@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")
|
@GetMapping("/defaultFont")
|
||||||
List<FontDto> defaultFont() throws DEException;
|
List<FontDto> defaultFont() throws DEException;
|
||||||
|
Loading…
Reference in New Issue
Block a user