Implemented the basic request classes feature/1-input_classes #2

Merged
niggl merged 9 commits from feature/1-input_classes into dev 2021-02-03 16:49:23 +00:00
2 changed files with 38 additions and 1 deletions
Showing only changes of commit cfa65e83ca - Show all commits

37
src/models/Donor.ts Normal file
View File

@ -0,0 +1,37 @@
import {
IsInt,
IsString
} from "class-validator";
/**
* Defines the Donor class.
*/
export class Donor {
/**
* The donor's id.
*/
@IsInt()
id: number;
/**
* The donor's first name.
*/
@IsString()
firstname: string;
/**
* The donor's middle name.
*/
@IsString()
middlename?: string;
/**
* The donor's last name.
*/
@IsString()
lastname: string;
}

View File

@ -6,7 +6,7 @@ import {
import { RunnerGroup } from './RunnerGroup';
/**
* Defines the contract runner class (from which the runner sponsoring contracts get generated).
* Defines the runner class (from which the runner sponsoring contracts get generated).
*/
export class Runner {
/**