update netDetail

This commit is contained in:
2025-11-07 11:54:16 +07:00
parent b9cd637b33
commit 25b9e831d1
6 changed files with 93 additions and 17 deletions

View 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);
}

View File

@@ -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;
}
}