app_page.api
1.4 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
syntax = "v1"
info(
title: "xx实例"
desc: "xx实例"
author: "author"
email: "email"
version: "v1"
)
@server(
prefix: app_page/v1
group: app_page
jwt: JwtAuth
)
service Core {
@handler getAppPage
post /app_page/:id (AppPageGetRequest) returns (AppPageGetResponse)
@handler saveAppPage
post /app_page (AppPageSaveRequest) returns (AppPageSaveResponse)
@handler deleteAppPage
delete /app_page/:id (AppPageDeleteRequest) returns (AppPageDeleteResponse)
@handler updateAppPage
put /app_page/:id (AppPageUpdateRequest) returns (AppPageUpdateResponse)
@handler searchAppPage
post /app_page/search (AppPageSearchRequest) returns (AppPageSearchResponse)
}
type (
AppPageGetRequest {
Id int64 `path:"id"`
}
AppPageGetResponse struct{
AppPage AppPageItem `json:"app_page"`
}
AppPageSaveRequest struct{
AppPage AppPageItem `json:"app_page"`
}
AppPageSaveResponse struct{}
AppPageDeleteRequest struct{
Id int64 `path:"id"`
}
AppPageDeleteResponse struct{}
AppPageUpdateRequest struct{
Id int64 `path:"id"`
AppPage AppPageItem `json:"app_page"`
}
AppPageUpdateResponse struct{}
AppPageSearchRequest struct{
Page int `json:"page"`
Size int `json:"size"`
}
AppPageSearchResponse{
List []AppPageItem `json:"list"`
Total int64 `json:"total"`
}
AppPageItem struct{
}
)