Skip to content

插件不支持嵌套import #11

@chenbingao

Description

@chenbingao

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions