Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UserRoleService

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

detail

  • detail(entityOrId: string | number | IRole): Object
  • Parameters

    • entityOrId: string | number | IRole

    Returns Object

    Returns promise object that is resolved with the IRole wrapped by IResult.

    Example

    
       const roleId: number = 1;
    
       (async () => {
         const {data, res} = await userRoleService.detail(roleId);
      })();
    

list

  • list(filter?: object): Object
  • Parameters

    • Default value filter: object = {}

    Returns Object

    Returns promise object that is resolved with the IRole wrapped by IResultList.

    Example

    
     const filter: object = {
        severity: Severity.MAJOR,
        pageSize: 100,
        withTotalPages: true
      };
    
      (async () => {
        const {data, res, paging} = await userRoleService.list(filter);
      })();
    

Generated using TypeDoc