mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-11 21:29:02 +08:00
✨ closed #2675 OpenFeign Get @SpringQueryMap 参数替代 Post查询
This commit is contained in:
1 parent
c01ca8edda
commit
e828cd7f19
2 files changed
+11
-14
No files matched your search
+4
-2
@@ -22,6 +22,7 @@ import com.pig4cloud.pigx.common.core.constant.SecurityConstants;
|
||||
import com.pig4cloud.pigx.common.core.constant.ServiceNameConstants;
|
||||
import com.pig4cloud.pigx.common.core.util.R;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.cloud.openfeign.SpringQueryMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
@@ -40,8 +41,9 @@ public interface RemoteTokenService {
|
||||
* @param from 内部调用标志
|
||||
* @return page
|
||||
*/
|
||||
@PostMapping("/token/page")
|
||||
R<Page> getTokenPage(@RequestBody Map<String, Object> params, @RequestHeader(SecurityConstants.FROM) String from);
|
||||
@GetMapping("/token/page")
|
||||
R<Page> getTokenPage(@SpringQueryMap Map<String, Object> params,
|
||||
@RequestHeader(SecurityConstants.FROM) String from);
|
||||
|
||||
/**
|
||||
* 删除token
|
||||
|
||||
Reference in new issue
Block a user