31 lines
1.0 KiB
Go
31 lines
1.0 KiB
Go
package v1
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
// CreateReq 是套餐订购订单创建请求。
|
|
type CreateReq struct {
|
|
g.Meta `path:"/api/orders" tags:"订单" method:"post" summary:"创建套餐订购订单"`
|
|
TenantName string `json:"tenant_name" dc:"租户名称或诊所名称"`
|
|
ContactName string `json:"contact_name" dc:"联系人姓名"`
|
|
Phone string `json:"phone" dc:"联系电话"`
|
|
PlanCode string `json:"plan_code" dc:"套餐编码"`
|
|
BillingCycle string `json:"billing_cycle" dc:"订购周期 month月付 year年付"`
|
|
}
|
|
|
|
type CreateRes struct{}
|
|
|
|
// DetailReq 是订单详情请求。
|
|
type DetailReq struct {
|
|
g.Meta `path:"/api/orders/{order_no}" tags:"订单" method:"get" summary:"获取订单详情"`
|
|
OrderNo string `json:"order_no" in:"path" dc:"订单号"`
|
|
}
|
|
|
|
type DetailRes struct{}
|
|
|
|
// AdminListReq 是后台订单列表请求。
|
|
type AdminListReq struct {
|
|
g.Meta `path:"/api/admin/orders" tags:"后台订单" method:"get" summary:"获取后台订单列表"`
|
|
}
|
|
|
|
type AdminListRes struct{}
|