38 lines
514 B
TypeScript
38 lines
514 B
TypeScript
export interface MedicineMethod {
|
|
id: number
|
|
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 genMedicineMethod(): MedicineMethod {
|
|
return {
|
|
id: 0,
|
|
name: 'name',
|
|
code: 'code',
|
|
}
|
|
}
|