We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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" )
req_resp_dto.api:
import "common_dto.api"
type ( MobileLoginReq { Mobile string json:"mobile" Passwd string json:"passwd" }
json:"mobile"
json:"passwd"
MobileLoginResp { Code int `json:"code"` Msg string `json:"msg"` Data *AccessToken `json:"data"` }
common_dto.api:
type AccessToken { AccessToken string json:"access_token" }
json:"access_token"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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"
}
)
common_dto.api:
syntax = "v1"
type AccessToken {
AccessToken string
json:"access_token"
}
The text was updated successfully, but these errors were encountered: