1
This commit is contained in:
@@ -8148,7 +8148,7 @@ func (a *API) GetProductUpdateRule2(categoryId int64) bool {
|
||||
}
|
||||
|
||||
// GetProductAuditList 获取商品的审核记录
|
||||
func (a *API) GetProductAuditList(page, pageSize, status int64) ([]product_auditList_response.RecordsItem, error) {
|
||||
func (a *API) GetProductAuditList(page, pageSize, status int64) ([]product_auditList_response.RecordsItem, int64, error) {
|
||||
request := product_auditList_request.New()
|
||||
request.Param.PublishStatus = status
|
||||
request.Param.Page = page
|
||||
@@ -8156,11 +8156,11 @@ func (a *API) GetProductAuditList(page, pageSize, status int64) ([]product_audit
|
||||
|
||||
result, err := request.Execute(a.accessTokenObj)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, 0, err
|
||||
}
|
||||
if result.Code != RequestSuccessCode {
|
||||
return nil, errors.New(result.SubMsg)
|
||||
return nil, 0, errors.New(result.SubMsg)
|
||||
}
|
||||
|
||||
return result.Data.Records, nil
|
||||
return result.Data.Records, result.Data.Total, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user