1
This commit is contained in:
parent
56aa619ad8
commit
54d83d7749
@ -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, '邮件修改时间'],
|
||||
];
|
||||
}
|
||||
|
||||
};
|
||||
|
26
doc/admin/mail.js
Normal file
26
doc/admin/mail.js
Normal file
@ -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()]
|
||||
]
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user