interactior为执行复杂的用户交互提供了一个公共接口。
interactor的Python项目详细描述
#interactior
interactior为执行复杂的用户交互提供了一个通用接口。它的灵感来自于[CollectiveIdea的Interactior gem](https://github.com/collectiveIdea/interactior)。
self.context.password)
如果用户:
self.context.user=user
self.context.token=user.secret廑token
否则:
引发运行时错误('fail to authenticate user')
`````
=authenticateuser.call(email='test@gmail.com',password='secret')
打印ctx.user
打印ctx.token
```
interactior为执行复杂的用户交互提供了一个通用接口。它的灵感来自于[CollectiveIdea的Interactior gem](https://github.com/collectiveIdea/interactior)。
self.context.password)
如果用户:
self.context.user=user
self.context.token=user.secret廑token
否则:
引发运行时错误('fail to authenticate user')
`````
=authenticateuser.call(email='test@gmail.com',password='secret')
打印ctx.user
打印ctx.token
```