tyc-server/app/main/api/desc/front/product.api

34 lines
670 B
Plaintext
Raw Normal View History

2024-11-21 12:14:34 +08:00
syntax = "v1"
info (
2025-05-09 17:54:28 +08:00
title: "产品服务"
desc: "产品服务"
author: "Liangzai"
email: "2440983361@qq.com"
version: "v1"
2024-11-21 12:14:34 +08:00
)
import (
2025-05-09 17:54:28 +08:00
"product/product.api"
2024-11-21 12:14:34 +08:00
)
@server (
2025-05-09 17:54:28 +08:00
prefix: api/v1/product
group: product
jwt: JwtAuth
2024-11-21 12:14:34 +08:00
)
service main {
2025-05-09 17:54:28 +08:00
@handler GetProductByID
get /:id (GetProductByIDRequest) returns (ProductResponse)
2024-11-21 12:14:34 +08:00
2025-05-09 17:54:28 +08:00
@handler GetProductByEn
get /en/:product_en (GetProductByEnRequest) returns (ProductResponse)
2024-11-21 12:14:34 +08:00
}
2025-01-18 22:34:27 +08:00
@server (
2025-05-09 17:54:28 +08:00
prefix: api/v1/product
group: product
2025-05-09 19:44:54 +08:00
middleware: SourceInterceptor
2025-01-18 22:34:27 +08:00
)
service main {
2025-05-09 17:54:28 +08:00
@handler GetProductRenderList
get /render_list/:module (GetProductRenderListRequest) returns (GetProductRenderListResponse)
}