测试接口

This commit is contained in:
苏尹岚
2020-08-27 09:26:14 +08:00
parent 8053653fa6
commit 40babb3a06
2 changed files with 22 additions and 0 deletions

View File

@@ -270,3 +270,16 @@ func (c *JxOrderController) GetMyPriceDefendOrders() {
return retVal, "", err
})
}
// @Title 测试立马生成守价订单
// @Description 测试立马生成守价订单
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /TestDefend [get]
func (c *JxOrderController) TestDefend() {
c.callTestDefend(func(params *tJxorderTestDefendParams) (retVal interface{}, errCode string, err error) {
localjx.CreateOrderByPriceDefend(params.Ctx)
return retVal, "", err
})
}