app_page.api 1.4 KB

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{
	
	}
)