-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(excel): 使用 spring interface 重构网络请求
- Loading branch information
Showing
3 changed files
with
78 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...mon-excel/src/main/java/com/pig4cloud/pig/common/excel/provider/RemoteDictApiService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.pig4cloud.pig.common.excel.provider; | ||
|
||
import com.pig4cloud.pig.common.core.util.R; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.service.annotation.GetExchange; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* 字典接口, 基于 RestClient GetExchange 实现 | ||
* | ||
* @author lengleng | ||
* @date 2024/9/7 | ||
*/ | ||
public interface RemoteDictApiService { | ||
|
||
/** | ||
* 按类型获取 dict | ||
* @param type 类型 | ||
* @return {@link R }<{@link List }<{@link Map }<{@link String }, {@link Object }>>> | ||
*/ | ||
@GetExchange("/dict/remote/type/{type}") | ||
R<List<Map<String, Object>>> getDictByType(@PathVariable String type); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters