fix: 修复detail返回结构和transfer参数名

- detail返回{after_sale,steps}包装结构

- transfer入参名target_role_group改为role_group

- 集成测试8/8全部通过
This commit is contained in:
liufumingren 2026-08-09 21:30:52 +08:00
parent 296536c83e
commit 4c5807dbbc
2 changed files with 3 additions and 3 deletions

View File

@ -354,7 +354,7 @@ class AfterSaleMethodService extends MainService {
* *
* @param {Object} data 请求体 * @param {Object} data 请求体
* @param {number} data.id 售后单主键ID * @param {number} data.id 售后单主键ID
* @param {string} data.target_role_group 目标角色组(customer_service/warehouse/finance) * @param {string} data.role_group 目标角色组(customer_service/warehouse/finance)
* @param {string} [data.remark] 转单备注 * @param {string} [data.remark] 转单备注
* @return {Promise<Object>} 统一 success 包装 * @return {Promise<Object>} 统一 success 包装
*/ */
@ -362,7 +362,7 @@ class AfterSaleMethodService extends MainService {
const { ctx, service } = this; const { ctx, service } = this;
const { const {
id, id,
target_role_group: targetRoleGroup, role_group: targetRoleGroup,
remark, remark,
} = data || {}; } = data || {};

View File

@ -240,7 +240,7 @@ class AfterSaleService extends Service {
const stepsWithAttachments = await this._enrichStepsWithAttachments(steps); const stepsWithAttachments = await this._enrichStepsWithAttachments(steps);
return { return {
...afterSale, after_sale: afterSale,
steps: stepsWithAttachments, steps: stepsWithAttachments,
}; };
} }