new
This commit is contained in:
35
app/main/api/desc/front/product.api
Normal file
35
app/main/api/desc/front/product.api
Normal file
@@ -0,0 +1,35 @@
|
||||
syntax = "v1"
|
||||
|
||||
info (
|
||||
title: "产品服务"
|
||||
desc: "产品服务"
|
||||
author: "Liangzai"
|
||||
email: "2440983361@qq.com"
|
||||
version: "v1"
|
||||
)
|
||||
import (
|
||||
"product/product.api"
|
||||
)
|
||||
@server (
|
||||
prefix: api/v1/product
|
||||
group: product
|
||||
jwt: JwtAuth
|
||||
)
|
||||
service main {
|
||||
@handler GetProductByID
|
||||
get /:id (GetProductByIDRequest) returns (ProductResponse)
|
||||
|
||||
@handler GetProductByEn
|
||||
get /en/:product_en (GetProductByEnRequest) returns (ProductResponse)
|
||||
}
|
||||
|
||||
@server (
|
||||
prefix: api/v1/product
|
||||
group: product
|
||||
middleware: SourceInterceptor
|
||||
)
|
||||
service main {
|
||||
@handler GetProductRenderList
|
||||
get /render_list/:module (GetProductRenderListRequest) returns (GetProductRenderListResponse)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user