mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
26 lines
423 B
TypeScript
26 lines
423 B
TypeScript
import { Field, Int, ObjectType } from 'type-graphql'
|
|
|
|
import { Space as HumhubSpace } from '@/apis/humhub/model/Space'
|
|
|
|
@ObjectType()
|
|
export class Space {
|
|
@Field(() => Int)
|
|
id: number
|
|
|
|
@Field(() => String)
|
|
guid: string
|
|
|
|
@Field(() => String)
|
|
name: string
|
|
|
|
@Field(() => String)
|
|
description: string
|
|
|
|
@Field(() => String)
|
|
url: string
|
|
|
|
constructor(data: HumhubSpace) {
|
|
Object.assign(this, data)
|
|
}
|
|
}
|