fix: api descript

This commit is contained in:
wwweww
2026-02-28 05:33:16 +08:00
parent 5930fb0dde
commit d2f33b4b96
243 changed files with 37065 additions and 780 deletions
+17 -12
View File
@@ -2,32 +2,38 @@ syntax = "v1"
import "common.api"
type (
PathId {
Id int64 `path:"id"`
}
Dispute {
Id string `json:"id"`
OrderId string `json:"orderId"`
Reason string `json:"reason"`
Status string `json:"status"`
Evidence []string `json:"evidence"`
Result string `json:"result,optional"`
CreatedAt string `json:"createdAt"`
Id int64 `json:"id"`
OrderId int64 `json:"orderId"`
Reason string `json:"reason"`
Status string `json:"status"`
Evidence []string `json:"evidence"`
Result string `json:"result,optional"`
CreatedAt string `json:"createdAt"`
}
DisputeListResp {
Items []Dispute `json:"items"`
Meta PageMeta `json:"meta"`
Meta PageMeta `json:"meta"`
}
CreateDisputeReq {
Reason string `json:"reason"`
PathId
Reason string `json:"reason"`
Evidence []string `json:"evidence"`
}
DisputeResponseReq {
Reason string `json:"reason"`
PathId
Reason string `json:"reason"`
Evidence []string `json:"evidence"`
}
AppealReq {
PathId
Reason string `json:"reason"`
}
)
@@ -35,7 +41,6 @@ type (
@server(
prefix: api/v1
group: dispute
jwt: Auth
)
service juwan-api {
@doc "获取争议列表"
@@ -44,7 +49,7 @@ service juwan-api {
@doc "获取订单争议"
@handler GetOrderDispute
get /orders/:id/dispute (EmptyResp) returns (Dispute)
get /orders/:id/dispute (PathId) returns (Dispute)
@doc "发起争议"
@handler CreateDispute