-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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"
}
Metadata
Metadata
Assignees
Labels
No labels