+ GetAfsOrders
+ GetAfsOrderSkuInfo
This commit is contained in:
@@ -284,6 +284,54 @@ func (c *OrderController) GetOrders() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询售后单
|
||||
// @Description 查询售后单
|
||||
// @Param token header string true "认证token"
|
||||
// @Param afsOrderID query string false "售后单号,如果此项不为空,忽略其它所有查询条件"
|
||||
// @Param vendorOrderID query string false "订单号,如果此项不为空,忽略其它所有查询条件"
|
||||
// @Param vendorIDs query string false "订单所属厂商列表[1,2,3],缺省不限制"
|
||||
// @Param appealTypes query string false "售后处理s方式列表"
|
||||
// @Param storeIDs query string false "京西门店ID列表[1,2,3],缺省不限制"
|
||||
// @Param statuss query string false "订单状态列表[1,2,3],缺省不限制"
|
||||
// @Param keyword query string false "查询关键字"
|
||||
// @Param fromTime query string false "开始时间,如果订单号为空此项必须要求"
|
||||
// @Param toTime query string false "结束时间,如果订单号为空此项必须要求"
|
||||
// @Param offset query int false "结果起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize query int false "结果页大小(缺省为50,-1表示全部)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetAfsOrders [get]
|
||||
func (c *OrderController) GetAfsOrders() {
|
||||
c.callGetAfsOrders(func(params *tOrderGetAfsOrdersParams) (retVal interface{}, errCode string, err error) {
|
||||
timeList, err := jxutils.BatchStr2Time(params.FromTime, params.ToTime)
|
||||
if err == nil {
|
||||
var vendorIDList, appealTypeList, storeIDList, statusList []int
|
||||
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDList, params.AppealTypes, &appealTypeList,
|
||||
params.StoreIDs, &storeIDList, params.Statuss, &statusList); err == nil {
|
||||
retVal, err = orderman.FixedOrderManager.GetAfsOrders(params.Ctx, params.Keyword, params.AfsOrderID,
|
||||
params.VendorOrderID, vendorIDList, appealTypeList, storeIDList, statusList, timeList[0], timeList[1],
|
||||
params.Offset, params.PageSize)
|
||||
}
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 得到售后单SKU信息
|
||||
// @Description 得到售后单SKU信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Param afsOrderID query string true "售后单ID"
|
||||
// @Param vendorID query int true "售后单所属的厂商ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetAfsOrderSkuInfo [get]
|
||||
func (c *OrderController) GetAfsOrderSkuInfo() {
|
||||
c.callGetAfsOrderSkuInfo(func(params *tOrderGetAfsOrderSkuInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = orderman.FixedOrderManager.GetAfsOrderSkuInfo(params.Ctx, params.AfsOrderID, params.VendorID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询运单
|
||||
// @Description 查询运单
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user