init: build minimum viable version

This commit is contained in:
zhayujie
2022-08-10 00:04:10 +08:00
commit 1ec0a530bf
16 changed files with 161 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
"""
channel factory
"""
from channel.wechat.wechat_channel import WechatChannel
def create_channel(channel_type):
"""
create a channel instance
:param channel_type: channel type code
:return: channel instance
"""
if channel_type == 'wx':
return WechatChannel()
raise RuntimeError