Merge branch 'feat/mcu-order' into feat/micro-lab-order-50

This commit is contained in:
Andrian Roshandy
2025-11-30 12:43:11 +07:00
9 changed files with 474 additions and 10 deletions
+4 -3
View File
@@ -1,13 +1,14 @@
import * as base from './_crud-base'
import * as model from '~/models/mcu-order-item'
const path = '/api/v1/mcu-order-item'
const name = 'mcu-order-item'
export function create(data: any) {
export function create(data: model.CreateDto) {
return base.create(path, data)
}
export function getList(params: any = null) {
export function getList(params: model.ReadList | null = null) {
return base.getList(path, params)
}
@@ -15,7 +16,7 @@ export function getDetail(id: number | string, params?: any) {
return base.getDetail(path, id, name, params)
}
export function update(id: number | string, data: any) {
export function update(id: number | string, data: model.UpdateDto) {
return base.update(path, id, data)
}