✨ closed #2675 OpenFeign Get @SpringQueryMap 参数替代 Post查询

This commit is contained in:
lbw committed 2021-04-29 17:13:36 +08:00
1 parent c01ca8edda
commit e828cd7f19
2 files changed
+11 -14

No files matched your search

@@ -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