unionorder

This commit is contained in:
suyl
2021-05-07 11:03:24 +08:00
parent c24f179edc
commit 4c5e825990
10 changed files with 307 additions and 136 deletions

View File

@@ -167,3 +167,23 @@ func (c *OrderController) GetManageStatisticsJob() {
return retVal, "", err
})
}
// @Title 查询我的推广订单
// @Description 查询我的推广订单
// @Param token header string true "认证token"
// @Param statuss query string false "状态s"
// @Param vendorID query int false "-1 全部"
// @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 /GetMyUnionOrders [get]
func (c *OrderController) GetMyUnionOrders() {
c.callGetMyUnionOrders(func(params *tOrderGetMyUnionOrdersParams) (retVal interface{}, errCode string, err error) {
var statuss []int
if err = jxutils.Strings2Objs(params.Statuss, &statuss); err == nil {
retVal, err = cms.GetMyUnionOrders(params.Ctx, statuss, params.VendorID, params.Offset, params.PageSize)
}
return retVal, "", err
})
}