comment.api 707 字节
syntax = "v1"

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


// 小程序接口
@server(
    prefix: v1
    group: comment
    jwt: MiniAuth
)
service Core {
    @doc "小程序评论"
    @handler miniComment
    get /mini/comment (CommentRequest) returns (CommentResposne)
}


// 后台接口
@server(
    prefix: v1
    group: comment
    jwt: SystemAuth
)
service Core {
    @doc "系统评论"
    @handler systemComment
    get /system/comment (CommentRequest) returns (CommentResposne)
}

type(
    CommentRequest struct{

    }
    CommentResposne struct{
       List []Comment `json:"list"`
    }

    Comment struct{

    }
)