Feat: integration Medicine Form

This commit is contained in:
hasyim_kai
2025-11-17 09:26:29 +07:00
parent dfb2c305ca
commit dc0bcc3606
15 changed files with 929 additions and 6 deletions
+38
View File
@@ -0,0 +1,38 @@
import { type Base, genBase } from "./_base"
export interface MedicineForm extends Base {
name: string
code: string
}
export interface CreateDto {
name: string
code: string
}
export interface GetListDto {
page: number
size: number
name?: string
code?: string
}
export interface GetDetailDto {
id?: string
}
export interface UpdateDto extends CreateDto {
id?: number
}
export interface DeleteDto {
id?: string
}
export function genMedicine(): MedicineForm {
return {
...genBase(),
name: 'name',
code: 'code',
}
}