comment.api
612 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 {
}
CommentResposne {
List []Comment `json:"list"`
}
Comment {
}
)