Some checks failed
Build docker and publish / prepare (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:ppanel-admin name:admin]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:ppanel-api name:api]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:ppanel-node name:node]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:ppanel-queue name:queue]) (push) Has been cancelled
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:ppanel-scheduler name:scheduler]) (push) Has been cancelled
Build docker and publish / deploy (push) Has been cancelled
Build docker and publish / notify (push) Has been cancelled
46 lines
911 B
Plaintext
46 lines
911 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: "订单管理"
|
|
)
|
|
|
|
type (
|
|
AdminOrderListReq {
|
|
Page int `form:"page,default=1"`
|
|
PageSize int `form:"page_size,default=20"`
|
|
Status int `form:"status,optional"`
|
|
}
|
|
|
|
AdminOrderResp {
|
|
Id int64 `json:"id"`
|
|
OrderNo string `json:"order_no"`
|
|
UserId int64 `json:"user_id"`
|
|
Amount int64 `json:"amount"`
|
|
Status int `json:"status"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
AdminOrderListResp {
|
|
Total int64 `json:"total"`
|
|
List []AdminOrderResp `json:"list"`
|
|
}
|
|
|
|
UpdateOrderStatusReq {
|
|
OrderNo string `path:"order_no"`
|
|
Status int `json:"status"`
|
|
}
|
|
)
|
|
|
|
@server (
|
|
prefix: /api/v1/admin/order
|
|
group: order
|
|
jwt: JwtAuth
|
|
)
|
|
service ppaneladmin {
|
|
@handler GetOrderListHandler
|
|
get /list (AdminOrderListReq) returns (AdminOrderListResp)
|
|
|
|
@handler UpdateOrderStatusHandler
|
|
put /:order_no/status (UpdateOrderStatusReq)
|
|
}
|