change user to uuid
This commit is contained in:
parent
07f8e2dbcb
commit
f89483f878
46 changed files with 146 additions and 151 deletions
|
@ -28,10 +28,10 @@ export default abstract class UserService {
|
|||
|
||||
/**
|
||||
* @description get user by id
|
||||
* @param id number
|
||||
* @param id string
|
||||
* @returns {Promise<user>}
|
||||
*/
|
||||
static async getById(id: number): Promise<user> {
|
||||
static async getById(id: string): Promise<user> {
|
||||
return await dataSource
|
||||
.getRepository(user)
|
||||
.createQueryBuilder("user")
|
||||
|
@ -110,10 +110,10 @@ export default abstract class UserService {
|
|||
|
||||
/**
|
||||
* @description get roles assigned to user
|
||||
* @param userId number
|
||||
* @param userId string
|
||||
* @returns {Promise<Array<role>>}
|
||||
*/
|
||||
static async getAssignedRolesByUserId(userId: number): Promise<Array<role>> {
|
||||
static async getAssignedRolesByUserId(userId: string): Promise<Array<role>> {
|
||||
return await dataSource
|
||||
.getRepository(user)
|
||||
.createQueryBuilder("user")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue