friends-backend
This commit is contained in:
parent
df79bc5a80
commit
590604b385
22 changed files with 1826 additions and 29 deletions
93
frontend/src/api/generated/models/RemoveFriend404Response.ts
Normal file
93
frontend/src/api/generated/models/RemoveFriend404Response.ts
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RemoveFriend404Response
|
||||
*/
|
||||
export interface RemoveFriend404Response {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RemoveFriend404Response
|
||||
*/
|
||||
kind: RemoveFriend404ResponseKindEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RemoveFriend404Response
|
||||
*/
|
||||
msg: RemoveFriend404ResponseMsgEnum;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const RemoveFriend404ResponseKindEnum = {
|
||||
Failure: 'failure'
|
||||
} as const;
|
||||
export type RemoveFriend404ResponseKindEnum = typeof RemoveFriend404ResponseKindEnum[keyof typeof RemoveFriend404ResponseKindEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const RemoveFriend404ResponseMsgEnum = {
|
||||
RemoveFriendFailureUnknownUser: 'removeFriend.failure.unknownUser'
|
||||
} as const;
|
||||
export type RemoveFriend404ResponseMsgEnum = typeof RemoveFriend404ResponseMsgEnum[keyof typeof RemoveFriend404ResponseMsgEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RemoveFriend404Response interface.
|
||||
*/
|
||||
export function instanceOfRemoveFriend404Response(value: object): value is RemoveFriend404Response {
|
||||
if (!('kind' in value) || value['kind'] === undefined) return false;
|
||||
if (!('msg' in value) || value['msg'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RemoveFriend404ResponseFromJSON(json: any): RemoveFriend404Response {
|
||||
return RemoveFriend404ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RemoveFriend404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveFriend404Response {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'kind': json['kind'],
|
||||
'msg': json['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RemoveFriend404ResponseToJSON(json: any): RemoveFriend404Response {
|
||||
return RemoveFriend404ResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RemoveFriend404ResponseToJSONTyped(value?: RemoveFriend404Response | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'kind': value['kind'],
|
||||
'msg': value['msg'],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue