fix: UserTitle cards
All checks were successful
Build and Deploy Go App / build (push) Successful in 5m28s
Build and Deploy Go App / deploy (push) Successful in 26s

This commit is contained in:
nihonium 2025-11-25 05:36:57 +03:00
parent 9139c77c5f
commit 51bf7b6f7e
Signed by: nihonium
GPG key ID: 0251623741027CFC
10 changed files with 70 additions and 15 deletions

View file

@ -4,7 +4,10 @@
/* eslint-disable */
export type Image = {
id?: number;
storage_type?: string;
/**
* Image storage type
*/
storage_type?: 's3' | 'local';
image_path?: string;
};

View file

@ -2,15 +2,13 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Image } from './Image';
export type User = {
/**
* Unique user ID (primary key)
*/
id?: number;
/**
* ID of the user avatar (references images table)
*/
avatar_id?: number;
image?: Image;
/**
* User email
*/

View file

@ -2,4 +2,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UserTitle = Record<string, any>;
import type { Title } from './Title';
import type { UserTitleStatus } from './UserTitleStatus';
export type UserTitle = {
user_id: number;
title?: Title;
status: UserTitleStatus;
rate?: number;
review_id?: number;
ctime?: string;
};

View file

@ -238,6 +238,7 @@ export class DefaultService {
},
errors: {
400: `Request params are not correct`,
404: `User not found`,
500: `Unknown server error`,
},
});