| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- export interface IPerson {
- name: string;
- age: number;
- gender: string;
- customID: string;
- }
-
- export interface PersonResponseGet {
- message: string;
- data: Array<IPerson>;
- dataCount: number;
- }
-
- export interface PersonResponsePost {
- message: string;
- data: IPerson;
- }
-
- export interface PersonResponseError {
- message: string;
- }
-
- export interface SPersonResponseGet {
- message: string;
- singleData: IPerson;
- }
-
- export interface SPersonResponseError {
- message: string;
- singleData: {};
- }
-
- export interface PersonIdsResponseGet {
- message: string;
- dataIds: string[];
- }
-
- export interface PersonIdsResponseError {
- message: string;
- dataIds: [];
- }
-
- export type PersonIdsResponse = PersonIdsResponseGet | PersonIdsResponseError;
- export type SPersonResponse = SPersonResponseGet | SPersonResponseError;
-
- export type PersonRespone =
- | PersonResponseGet
- | PersonResponsePost
- | PersonResponseError;
|