Merge branch 'feat/mcu-order' into feat/micro-lab-order-50
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user