มอบหมาย
This commit is contained in:
parent
c43eeb9066
commit
7b5e6e5fb0
8 changed files with 279 additions and 2 deletions
|
|
@ -53,6 +53,31 @@ export class CommandSysController extends Controller {
|
|||
return new HttpSuccess(_commandSys);
|
||||
}
|
||||
|
||||
/**
|
||||
* API รายละเอียดรายการระบบคำสั่ง
|
||||
*
|
||||
* @summary ORG_058 - CRUD ระบบคำสั่ง (ADMIN) #62
|
||||
*
|
||||
* @param {string} id Id ระบบคำสั่ง
|
||||
*/
|
||||
@Get("assign")
|
||||
async GetAssgin() {
|
||||
const _commandSys = await this.commandSysRepository.find({
|
||||
order: { order: "ASC" },
|
||||
relations: ["assgins"],
|
||||
});
|
||||
const data = _commandSys.map((data) => ({
|
||||
id: data.id,
|
||||
sysName: data.sysName,
|
||||
assgins: data.assgins.map((x) => ({
|
||||
id: x.id,
|
||||
name: x.name,
|
||||
description: x.description,
|
||||
})),
|
||||
}));
|
||||
return new HttpSuccess(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* API รายละเอียดรายการระบบคำสั่ง
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue