relation
This commit is contained in:
parent
a7d13ac00b
commit
18510b1419
3 changed files with 32 additions and 1 deletions
|
|
@ -17,8 +17,10 @@ import HttpError from "../interfaces/http-error";
|
|||
import HttpStatus from "../interfaces/http-status";
|
||||
import HttpSuccess from "../interfaces/http-success";
|
||||
import HttpStatusCode from "../interfaces/http-status";
|
||||
import { AuthRole, CreateAuthRole, UpdateAuthRole } from "../entities/AuthRole";
|
||||
import { AuthRole, CreateAuthRole, UpdateAuthRole, CreateAddAuthRole } from "../entities/AuthRole";
|
||||
import { AuthRoleAttr } from "../entities/AuthRoleAttr";
|
||||
import { PosMaster } from "../entities/PosMaster";
|
||||
import { EmployeePosMaster } from "../entities/EmployeePosMaster";
|
||||
|
||||
@Route("api/v1/org/auth/authRole")
|
||||
@Tags("AuthRole")
|
||||
|
|
@ -72,6 +74,12 @@ export class AuthRoleController extends Controller {
|
|||
return new HttpSuccess(data.id);
|
||||
}
|
||||
|
||||
@Post("assign")
|
||||
public async AddAuthRole(@Request() req: RequestWithUser, @Body() body: CreateAddAuthRole) {
|
||||
// console pasMater = await this
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
||||
@Patch("{roleId}")
|
||||
public async editAuthRole(
|
||||
@Request() req: RequestWithUser,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue