feat(sgw): Implement Create or Update Banzone functionality with map integration
This commit is contained in:
50
src/services/slave/sgw/typings/fish.d.ts
vendored
50
src/services/slave/sgw/typings/fish.d.ts
vendored
@@ -1,8 +1,54 @@
|
||||
declare namespace SgwModel {
|
||||
interface FishSpeciesResponse {
|
||||
id: number;
|
||||
fishes: Fish[];
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface FishCreateRequest {
|
||||
name: string;
|
||||
scientific_name?: string;
|
||||
description?: string;
|
||||
group_name?: string;
|
||||
rarity_level?: number;
|
||||
note?: string;
|
||||
}
|
||||
|
||||
interface FishUpdateRequest extends FishCreateRequest {
|
||||
id: number;
|
||||
}
|
||||
|
||||
interface Fish {
|
||||
id?: number;
|
||||
name?: string;
|
||||
scientific_name?: string;
|
||||
group_name?: string;
|
||||
species_code?: string;
|
||||
note?: string;
|
||||
default_unit?: string;
|
||||
rarity_level?: number;
|
||||
created_at?: Date;
|
||||
updated_at?: Date;
|
||||
is_deleted?: boolean;
|
||||
}
|
||||
|
||||
interface FishRarity {
|
||||
id: number;
|
||||
code: string;
|
||||
label: string;
|
||||
description: string;
|
||||
iucn_code: string | null;
|
||||
cites_appendix: string | null;
|
||||
vn_law: boolean;
|
||||
}
|
||||
|
||||
interface CreateFishResponse {
|
||||
name_ids?: number[];
|
||||
}
|
||||
|
||||
interface SearchFishPaginationBody extends MasterModel.SearchPaginationBody {
|
||||
order?: string;
|
||||
metadata?: {
|
||||
group_name?: string;
|
||||
rarity_level?: number;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user