php方法注释

注释格式

<?php
    /**
     * @method 发送邮件
     * @url    email/send?token=xxx
     * @http  POST
     * @param  token              string [必填] 调用接口凭证 (post|get)
     * @param  ema_type           enum   [必填] 发送速度:'普通','紧急','延时'
     * @param  ema_from           enum   [必填] 来源:'B2C','主站','客户网','CRM'
     * @param  ema_from_email     string [可选] 发送人邮箱
     * @param  ema_from_name      string [可选] 发送人
     * @param  ema_to_email       string [必填] 接收人手机号码,多个逗号分隔
     * @param  ema_title          string [必填] 标题
     * @param  ema_text           string [必填] 内容
     * @param  ema_style          string [可选] 信息类型 例如:邮箱验证,取回密码....
     * @param  ema_expire_time    int    [可选] 过期时间戳,超过此时间即使失败也不再发送
     * @author soul \r\n
     * @copyright 2017/4/13 \r\n
     * @return {"status":false,"data":'失败原因',"code":0} \r\n
     */
     function sendEmail()
     {
        //xxxx
     }

 

posted @ 2017-12-29 18:50  壁虎漫步.  阅读(1025)  评论(1编辑  收藏  举报