common.api 967 字节
syntax = "v1"

info(
    title: "天联鹰蜓"
    desc: "天联鹰蜓"
    author: "email"
    email: "email"
    version: "v1"
)

// 通用接口
@server(
    prefix: v1
    group: common
)
service Core {
    @doc "日志查询"
    @handler commonGetLog
    get /log/:module
}

// 通用接口
@server(
    prefix: v1
    middleware: LogRequest
    group: common
)
service Core {
    @doc "短信验证码"
    @handler commonSmsCode
    post /common/sms/code (CommonSmsCodeRequest) returns (CommonSmsCodeResposne)

    @doc "微信二维码"
    @handler miniQrcodeInvite
    post /mini/qrcode (MiniQrCodeRequest)

    @doc "清理缓存"
    @handler commonGetClearCache
    get /clear
}

// 短信验证码
type(
    CommonSmsCodeRequest{
        Phone string `json:"phone"`
    }
    CommonSmsCodeResposne{

    }
)

type(
    MiniQrCodeRequest{
        Page string `json:"page"`    // 微信页面入口
        Scene string `json:"scene"`   // 参数
    }
)