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

插件不支持嵌套import #11

Open
chenbingao opened this issue Oct 20, 2022 · 0 comments
Open

插件不支持嵌套import #11

chenbingao opened this issue Oct 20, 2022 · 0 comments

Comments

@chenbingao
Copy link

panic: "req_resp_dto.api" line 3:0 the nested api does not support import

main.api:

syntax = "v1"

import (
"common_dto.api"
"req_resp_dto.api"
)

service mini_program {
@doc(summary: "手机号登录")
@handler MobileLogin
post /login/mobile (MobileLoginReq) returns (MobileLoginResp)
}

req_resp_dto.api:

syntax = "v1"

import "common_dto.api"

type (
MobileLoginReq {
Mobile string json:"mobile"
Passwd string json:"passwd"
}

MobileLoginResp {
    Code int `json:"code"`
    Msg string `json:"msg"`
    Data *AccessToken `json:"data"`
}

)

common_dto.api:

syntax = "v1"

type AccessToken {
AccessToken string json:"access_token"
}

@chenbingao chenbingao changed the title 插件8不支持嵌套import 插件不支持嵌套import Oct 20, 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