แก้apiข้อมูลหลัก
This commit is contained in:
parent
73e07dfed6
commit
6b78a365fa
26 changed files with 1816 additions and 988 deletions
|
|
@ -33,6 +33,7 @@ import { Gender } from "../entities/Gender";
|
|||
import { Prefixe } from "../entities/Prefixe";
|
||||
import { Relationship } from "../entities/Relationship";
|
||||
import { Religion } from "../entities/Religion";
|
||||
import { Rank } from "../entities/Rank";
|
||||
|
||||
@Route("api/v1/org/metadata")
|
||||
@Tags("Profile")
|
||||
|
|
@ -49,6 +50,7 @@ export class MainController extends Controller {
|
|||
private prefixeRepo = AppDataSource.getRepository(Prefixe);
|
||||
private relationshipRepo = AppDataSource.getRepository(Relationship);
|
||||
private religionRepo = AppDataSource.getRepository(Religion);
|
||||
private rankRepo = AppDataSource.getRepository(Rank);
|
||||
/**
|
||||
* API ข้อมูลหลัก
|
||||
*
|
||||
|
|
@ -62,7 +64,8 @@ export class MainController extends Controller {
|
|||
const prefixs = await this.prefixeRepo.find();
|
||||
const relationships = await this.relationshipRepo.find();
|
||||
const religions = await this.religionRepo.find();
|
||||
const rank = await this.rankRepo.find();
|
||||
|
||||
return new HttpSuccess({ bloodGroups, genders, prefixs, relationships, religions });
|
||||
return new HttpSuccess({ bloodGroups, genders, prefixs, relationships, religions, rank });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue