update netDetail
This commit is contained in:
6
controller/FishController.ts
Normal file
6
controller/FishController.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { api } from "@/config";
|
||||
import { API_GET_FISH } from "@/constants";
|
||||
|
||||
export async function queryFish() {
|
||||
return api.get<Model.FishSpeciesResponse[]>(API_GET_FISH);
|
||||
}
|
||||
23
controller/typings.d.ts
vendored
23
controller/typings.d.ts
vendored
@@ -186,4 +186,27 @@ declare namespace Model {
|
||||
status: number;
|
||||
note?: string;
|
||||
}
|
||||
//Fish
|
||||
interface FishSpeciesResponse {
|
||||
id: number;
|
||||
name: string;
|
||||
scientific_name: string;
|
||||
group_name: string;
|
||||
species_code: string;
|
||||
note: string;
|
||||
default_unit: string;
|
||||
rarity_level: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
is_deleted: boolean;
|
||||
}
|
||||
interface FishRarity {
|
||||
id: number;
|
||||
code: string;
|
||||
label: string;
|
||||
description: string;
|
||||
iucn_code: any;
|
||||
cites_appendix: any;
|
||||
vn_law: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user