From 1affa3afbb6f47b9ca7a52a2b4e0b28f1a63abd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 13 Oct 2020 09:06:56 +0800 Subject: [PATCH] order --- controllers/order_controller.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/controllers/order_controller.go b/controllers/order_controller.go index d667c86d7..e8c64040e 100644 --- a/controllers/order_controller.go +++ b/controllers/order_controller.go @@ -19,3 +19,31 @@ type OrderController struct { func (c *OrderController) Pay() { } + +// @Title 创建订单 +// @Description 创建订单 +// @Param token header string true "认证token" +// @Param jxOrder formData string true "订单信息" +// @Param addressID formData int64 true "配送地址ID" +// @Param fromStoreID formData int fasle "物料配送门店" +// @Param createType formData int false "创建类型, 0:预创建, 1:创建" +// @Param isDeliverySelf formData bool false "是否是自提单" +// @Success 200 {object} controllers.CallResult +// @Failure 200 {object} controllers.CallResult +// @router /CreateOrder [post] +func (c *OrderController) CreateOrder() { + +} + +// @Title 请求支付订单 +// @Description 请求支付订单 +// @Param token header string true "认证token" +// @Param vendorOrderID formData string true "订单ID" +// @Param payType formData int true "支付类型" +// @Param vendorPayType formData string true "平台支付类型" +// @Success 200 {object} controllers.CallResult +// @Failure 200 {object} controllers.CallResult +// @router /Pay4Order [post] +func (c *OrderController) Pay4Order() { + +}