# 服务(Service)分析

Service主要进行业务逻辑的处理及第三方服务调用。

# this中可用的属性

ctx,app,service,config,logger

# 调用其他Service

this.ctx.service.otherService

this.service.otherService

# Controller中调用Service

app/service/biz/user.js => ctx.service.biz.user
app/service/sync_user.js => ctx.service.syncUser
app/service/HackerNews.js => ctx.service.hackerNews
Last Updated: 2022/11/13 12:30:47