feat: add support for step count store

This commit is contained in:
Methapon2001 2024-12-04 09:33:10 +07:00
parent f3639129d0
commit fda22f4a31

View file

@ -69,6 +69,10 @@ type ServiceCreate = {
* @isInt
*/
installmentNo?: number;
/**
* @isInt
*/
stepCount?: number;
attributes?: { [key: string]: any };
}[];
attributes?: { [key: string]: any };
@ -99,6 +103,10 @@ type ServiceUpdate = {
* @isInt
*/
installmentNo?: number;
/**
* @isInt
*/
stepCount?: number;
attributes?: { [key: string]: any };
}[];
attributes?: { [key: string]: any };
@ -328,6 +336,7 @@ export class ServiceController extends Controller {
create: w.product.map((p, pIdx) => ({
productId: p.id,
installmentNo: p.installmentNo,
stepCount: p.stepCount,
order: pIdx + 1,
})),
},
@ -416,6 +425,7 @@ export class ServiceController extends Controller {
data: w.product.map((p, pIdx) => ({
productId: p.id,
installmentNo: p.installmentNo,
stepCount: p.stepCount,
order: pIdx + 1,
})),
skipDuplicates: true,