mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
some basic views
This commit is contained in:
87
vue3/models/ViewLog.ts
Normal file
87
vue3/models/ViewLog.ts
Normal file
@@ -0,0 +1,87 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ViewLog
|
||||
*/
|
||||
export interface ViewLog {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ViewLog
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ViewLog
|
||||
*/
|
||||
recipe: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ViewLog
|
||||
*/
|
||||
readonly createdBy?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ViewLog
|
||||
*/
|
||||
readonly createdAt?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ViewLog interface.
|
||||
*/
|
||||
export function instanceOfViewLog(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "recipe" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ViewLogFromJSON(json: any): ViewLog {
|
||||
return ViewLogFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ViewLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): ViewLog {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'recipe': json['recipe'],
|
||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function ViewLogToJSON(value?: ViewLog | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'recipe': value.recipe,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user