friends-backend
This commit is contained in:
parent
df79bc5a80
commit
590604b385
22 changed files with 1826 additions and 29 deletions
110
frontend/src/api/generated/models/ListFriend200Response.ts
Normal file
110
frontend/src/api/generated/models/ListFriend200Response.ts
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* @fastify/swagger
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 9.6.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
import type { ListFriend200ResponsePayload } from './ListFriend200ResponsePayload';
|
||||
import {
|
||||
ListFriend200ResponsePayloadFromJSON,
|
||||
ListFriend200ResponsePayloadFromJSONTyped,
|
||||
ListFriend200ResponsePayloadToJSON,
|
||||
ListFriend200ResponsePayloadToJSONTyped,
|
||||
} from './ListFriend200ResponsePayload';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ListFriend200Response
|
||||
*/
|
||||
export interface ListFriend200Response {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListFriend200Response
|
||||
*/
|
||||
kind: ListFriend200ResponseKindEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListFriend200Response
|
||||
*/
|
||||
msg: ListFriend200ResponseMsgEnum;
|
||||
/**
|
||||
*
|
||||
* @type {ListFriend200ResponsePayload}
|
||||
* @memberof ListFriend200Response
|
||||
*/
|
||||
payload: ListFriend200ResponsePayload;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ListFriend200ResponseKindEnum = {
|
||||
Success: 'success'
|
||||
} as const;
|
||||
export type ListFriend200ResponseKindEnum = typeof ListFriend200ResponseKindEnum[keyof typeof ListFriend200ResponseKindEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ListFriend200ResponseMsgEnum = {
|
||||
ListFriendSuccess: 'listFriend.success'
|
||||
} as const;
|
||||
export type ListFriend200ResponseMsgEnum = typeof ListFriend200ResponseMsgEnum[keyof typeof ListFriend200ResponseMsgEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ListFriend200Response interface.
|
||||
*/
|
||||
export function instanceOfListFriend200Response(value: object): value is ListFriend200Response {
|
||||
if (!('kind' in value) || value['kind'] === undefined) return false;
|
||||
if (!('msg' in value) || value['msg'] === undefined) return false;
|
||||
if (!('payload' in value) || value['payload'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function ListFriend200ResponseFromJSON(json: any): ListFriend200Response {
|
||||
return ListFriend200ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ListFriend200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListFriend200Response {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'kind': json['kind'],
|
||||
'msg': json['msg'],
|
||||
'payload': ListFriend200ResponsePayloadFromJSON(json['payload']),
|
||||
};
|
||||
}
|
||||
|
||||
export function ListFriend200ResponseToJSON(json: any): ListFriend200Response {
|
||||
return ListFriend200ResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ListFriend200ResponseToJSONTyped(value?: ListFriend200Response | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'kind': value['kind'],
|
||||
'msg': value['msg'],
|
||||
'payload': ListFriend200ResponsePayloadToJSON(value['payload']),
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue