# -*- coding: utf-8 -*-
from ..base import ComponentAPI


class CollectionsCMSI(object):
    """Collections of CMSI APIS"""

    def __init__(self, client):
        self.client = client

        self.send_mail = ComponentAPI(
            client=self.client, method='POST',
            path='/api/c/compapi{bk_api_ver}/cmsi/send_mail/',
            description=u'发送邮件'
        )
        self.send_mp_weixin = ComponentAPI(
            client=self.client, method='POST',
            path='/api/c/compapi{bk_api_ver}/cmsi/send_mp_weixin/',
            description=u'发送公众号微信消息'
        )
        self.send_qy_weixin = ComponentAPI(
            client=self.client, method='POST',
            path='/api/c/compapi{bk_api_ver}/cmsi/send_qy_weixin/',
            description=u'发送企业微信'
        )
        self.send_sms = ComponentAPI(
            client=self.client, method='POST',
            path='/api/c/compapi{bk_api_ver}/cmsi/send_sms/',
            description=u'发送短信'
        )
        self.send_voice_msg = ComponentAPI(
            client=self.client, method='POST',
            path='/api/c/compapi{bk_api_ver}/cmsi/send_voice_msg/',
            description=u'公共语音通知'
        )
        self.send_weixin = ComponentAPI(
            client=self.client, method='POST',
            path='/api/c/compapi{bk_api_ver}/cmsi/send_weixin/',
            description=u'发送微信消息'
        )
