✨ feat (employee): add based component & conditional form input
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
export interface Doctor {
|
||||
id: number
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
name: string
|
||||
frontTitle?: string
|
||||
endTitle?: string
|
||||
specialist_code?: string
|
||||
sip_no: string
|
||||
ihs_number: string
|
||||
identity_number: string
|
||||
phone?: string
|
||||
bpjs_code?: string
|
||||
status_code?: number
|
||||
}
|
||||
// use one dto for both create and update
|
||||
export interface CreateDto {
|
||||
name?: string
|
||||
frontTitle?: string
|
||||
endTitle?: string
|
||||
identity_number?: string
|
||||
sip_no?: string
|
||||
ihs_number?: string
|
||||
phone?: string
|
||||
email?: string
|
||||
bpjs_code?: string
|
||||
status_code?: number
|
||||
outPatient_rate?: number
|
||||
inPatient_rate?: number
|
||||
}
|
||||
|
||||
export interface GetListDto {
|
||||
name?: string
|
||||
identity_number?: string
|
||||
sip_no?: string
|
||||
ihs_number?: string
|
||||
}
|
||||
|
||||
export interface GetDetailDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
id?: number
|
||||
}
|
||||
|
||||
export interface DeleteDto {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export function genDoctor(): Doctor {
|
||||
return {
|
||||
id: 0,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
name: '',
|
||||
ihs_number: '',
|
||||
identity_number: '',
|
||||
sip_no: '',
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user