mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-13 07:15:39 +01:00
add api services to frontend
This commit is contained in:
@@ -1,30 +1,20 @@
|
||||
import { Exclude, Expose } from 'class-transformer';
|
||||
import { Exclude } from 'class-transformer';
|
||||
import {
|
||||
IsDefined,
|
||||
IsEmpty,
|
||||
IsNotEmpty,
|
||||
IsOptional,
|
||||
} from 'class-validator';
|
||||
// import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
||||
|
||||
// Different data for public and private
|
||||
|
||||
// @Entity()
|
||||
export class EUser {
|
||||
// @PrimaryGeneratedColumn()
|
||||
@IsOptional()
|
||||
id?: number;
|
||||
|
||||
// @Index()
|
||||
// @Column({ unique: true })
|
||||
@IsNotEmpty()
|
||||
username: string;
|
||||
|
||||
// @Column({ default: false })
|
||||
@IsDefined()
|
||||
isAdmin: boolean;
|
||||
|
||||
// @Column({ select: false })
|
||||
@IsOptional()
|
||||
@Exclude()
|
||||
password?: string;
|
||||
|
||||
Reference in New Issue
Block a user