Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SephirothKid/nest-zero-to-one
/ functions
Functions
49 in github.com/SephirothKid/nest-zero-to-one
⨍
Functions
49
◇
Types & classes
47
↓ 9 callers
Method
getStackTrace
(deep: number = 2)
src/utils/log4js.ts:135
↓ 6 callers
Method
error
(...args)
src/utils/log4js.ts:122
↓ 4 callers
Method
info
(...args)
src/utils/log4js.ts:110
↓ 4 callers
Method
log
(...args)
src/utils/log4js.ts:106
↓ 3 callers
Method
access
(...args)
src/utils/log4js.ts:130
↓ 3 callers
Method
use
(req: Request, res: Response, next: () => void)
src/middleware/logger.middleware.ts:7
↓ 3 callers
Method
warn
(...args)
src/utils/log4js.ts:114
↓ 2 callers
Function
encryptPassword
(password: string, salt: string)
src/utils/cryptogram.ts:23
↓ 2 callers
Method
findOne
* 查询是否有该用户 * @param username 用户名
src/logical/user/user.service.ts:13
↓ 2 callers
Method
register
* 注册 * @param requestBody 请求体
src/logical/user/user.service.ts:43
↓ 2 callers
Method
validateUser
(username: string, password: string)
src/logical/auth/auth.service.ts:14
↓ 1 callers
Function
bootstrap
()
src/main.ts:10
↓ 1 callers
Method
catch
(exception: unknown, host: ArgumentsHost)
src/filter/any-exception.filter.ts:9
↓ 1 callers
Method
certificate
(user: any)
src/logical/auth/auth.service.ts:43
↓ 1 callers
Method
getHello
()
src/app.service.ts:5
↓ 1 callers
Function
makeSalt
()
src/utils/cryptogram.ts:14
↓ 1 callers
Method
queryCommodityList
* 查询商品列表 * @param {*} body * @param {string} username * @returns {Promise<any>} * @memberof CommodityService
src/logical/commodity/commodity.service.ts:14
↓ 1 callers
Method
toValidate
(metatype: any)
src/pipe/validation.pipe.ts:22
Method
canActivate
( context: ExecutionContext, )
src/guards/rbac.guard.ts:9
Method
catch
(exception: HttpException, host: ArgumentsHost)
src/filter/http-exception.filter.ts:7
Method
constructor
(private readonly appService: AppService)
src/app.controller.ts:6
Method
constructor
( public readonly context: string, public readonly path?: string, public readonly lineNumber?: num
src/utils/log4js.ts:30
Method
constructor
( private readonly usersService: UserService, private readonly jwtService: JwtService, )
src/logical/auth/auth.service.ts:8
Method
constructor
()
src/logical/auth/jwt.strategy.ts:16
Method
constructor
(private readonly authService: AuthService)
src/logical/auth/local.strategy.ts:16
Method
constructor
(private readonly authService: AuthService, private readonly usersService: UserService)
src/logical/user/user.controller.ts:12
Method
constructor
(private readonly commodityService: CommodityService)
src/logical/commodity/commodity.controller.ts:10
Method
constructor
(private readonly role: number)
src/guards/rbac.guard.ts:8
Method
constructor
(private readonly role: number)
src/interceptor/rbac.interceptor.ts:7
Method
createCommodity
(@Body() body: any, @Request() req: any)
src/logical/commodity/commodity.controller.ts:26
Method
createCommodity
* 创建商品 * * @param {*} body * @param {string} username * @returns {Promise<any>} * @memberof CommodityService
src/logical/commodity/commodity.service.ts:72
Method
debug
(...args)
src/utils/log4js.ts:102
Method
deleteCommodity
(@Body() body: any)
src/logical/commodity/commodity.controller.ts:44
Method
deleteCommodity
* 删除商品 * * @param {*} body * @returns * @memberof CommodityService
src/logical/commodity/commodity.service.ts:125
Method
fatal
(...args)
src/utils/log4js.ts:126
Method
getHello
()
src/app.controller.ts:9
Method
intercept
(context: ExecutionContext, next: CallHandler)
src/interceptor/rbac.interceptor.ts:8
Method
intercept
(context: ExecutionContext, next: CallHandler)
src/interceptor/transform.interceptor.ts:8
Function
logger
(req: Request, res: Response, next: () => any)
src/middleware/logger.middleware.ts:23
Method
login
(@Body() loginParmas: LoginDTO)
src/logical/user/user.controller.ts:20
Method
queryColumnList
(@Body() body: any)
src/logical/commodity/commodity.controller.ts:17
Method
register
(@Body() body: RegisterInfoDTO)
src/logical/user/user.controller.ts:42
Method
trace
(...args)
src/utils/log4js.ts:98
Method
transform
(value: any, { metatype }: ArgumentMetadata)
src/pipe/validation.pipe.ts:8
Method
updateCommodity
(@Body() body: any, @Request() req: any)
src/logical/commodity/commodity.controller.ts:35
Method
updateCommodity
* 修改商品 * * @param {*} body * @param {string} username * @returns * @memberof CommodityService
src/logical/commodity/commodity.service.ts:95
Method
validate
(payload: any)
src/logical/auth/jwt.strategy.ts:25
Method
validate
(username: string, password: string)
src/logical/auth/local.strategy.ts:20
Method
warning
(...args)
src/utils/log4js.ts:118