diff --git a/doc/admin/common.js b/doc/admin/common.js index 67236aac..d23a5657 100644 --- a/doc/admin/common.js +++ b/doc/admin/common.js @@ -29,3 +29,25 @@ exports.RspHead = class RspHead { } }; + +exports.Mail = class RspHead { + + constructor() { + this.fields = [ + ['mail_id', '', '邮件唯一id'], + ['mail_type', '', '邮件类型'], + ['subject', '', '邮件标题'], + ['content', '', '邮件内容'], + ['reciver', '', '收件人'], + ['attachments', '', '邮件附件'], + ['deleted', 0, '是否已删除'], + ['sendtime', 0, '发送时间'], + ['user_reg_start_time', 0, '用户注册开始时间'], + ['user_reg_end_time', 0, '用户注册结束时间'], + ['expiretime', 0, '邮件过期时间'], + ['createtime', 0, '邮件创建时间'], + ['modifytime', 0, '邮件修改时间'], + ]; + } + +}; diff --git a/doc/admin/mail.js b/doc/admin/mail.js new file mode 100644 index 00000000..5a4cc8fd --- /dev/null +++ b/doc/admin/mail.js @@ -0,0 +1,26 @@ +const common = require('./common'); + +module.exports = class { + + constructor() { + this.apis = [ + { + 'method': 'GET', + 'name': 'list', + 'desc': '获取邮件列表', + 'group': 'mail', + 'url': 'api/v1/mail/list', + 'header': [ + ], + 'is_json_params': true, + 'params': [ + ], + 'response': [ + new common.RspHead(), + ['!mail_list', common.Mail()] + ] + }, + ]; + } + +};