GetOrders和GetAfsOrders支持Post
This commit is contained in:
@@ -283,7 +283,7 @@ func (c *OrderController) ExportMTWaybills() {
|
|||||||
// @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
// @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /GetOrders [get]
|
// @router /GetOrders [get,post]
|
||||||
func (c *OrderController) GetOrders() {
|
func (c *OrderController) GetOrders() {
|
||||||
c.callGetOrders(func(params *tOrderGetOrdersParams) (retVal interface{}, errCode string, err error) {
|
c.callGetOrders(func(params *tOrderGetOrdersParams) (retVal interface{}, errCode string, err error) {
|
||||||
var skuIDs []int
|
var skuIDs []int
|
||||||
@@ -335,7 +335,7 @@ func (c *OrderController) ExportOrders() {
|
|||||||
// @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
// @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /GetAfsOrders [get]
|
// @router /GetAfsOrders [get,post]
|
||||||
func (c *OrderController) GetAfsOrders() {
|
func (c *OrderController) GetAfsOrders() {
|
||||||
c.callGetAfsOrders(func(params *tOrderGetAfsOrdersParams) (retVal interface{}, errCode string, err error) {
|
c.callGetAfsOrders(func(params *tOrderGetAfsOrdersParams) (retVal interface{}, errCode string, err error) {
|
||||||
timeList, err := jxutils.BatchStr2Time(params.FromTime, params.ToTime)
|
timeList, err := jxutils.BatchStr2Time(params.FromTime, params.ToTime)
|
||||||
|
|||||||
@@ -796,7 +796,7 @@ func init() {
|
|||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "GetAfsOrders",
|
Method: "GetAfsOrders",
|
||||||
Router: `/GetAfsOrders`,
|
Router: `/GetAfsOrders`,
|
||||||
AllowHTTPMethods: []string{"get"},
|
AllowHTTPMethods: []string{"get","post"},
|
||||||
MethodParams: param.Make(),
|
MethodParams: param.Make(),
|
||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
@@ -841,7 +841,7 @@ func init() {
|
|||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "GetOrders",
|
Method: "GetOrders",
|
||||||
Router: `/GetOrders`,
|
Router: `/GetOrders`,
|
||||||
AllowHTTPMethods: []string{"get"},
|
AllowHTTPMethods: []string{"get","post"},
|
||||||
MethodParams: param.Make(),
|
MethodParams: param.Make(),
|
||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
|
|||||||
Reference in New Issue
Block a user