Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否添加配置,将请求的url和method导出 #75

Closed
proclml opened this issue Oct 21, 2022 · 0 comments
Closed

能否添加配置,将请求的url和method导出 #75

proclml opened this issue Oct 21, 2022 · 0 comments

Comments

@proclml
Copy link

proclml commented Oct 21, 2022

当前生成包含url和method的变量仅是私有变量,希望能有方法export出来。相关需求是希望能通过拿到该url,做一些特定url(即特定请求)才会做的事情。

const getV1AccessSystemsRequestConfig: GetV1AccessSystemsRequestConfig = /*#__PURE__*/ {
  mockUrl: mockUrl_0_0_0_1,
  devUrl: devUrl_0_0_0_1,
  prodUrl: prodUrl_0_0_0_1,
// 希望能引用到该变量
  path: '/v1/access_systems',
// 希望能引用到该变量
  method: Method.GET,
  requestHeaders: {},
....省略)
  queryStringArrayFormat: QueryStringArrayFormat.brackets,
  extraInfo: {},
};
@proclml proclml closed this as completed Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant