This commit is contained in:
aozhiwei 2024-05-11 15:15:46 +08:00
parent a626b16b5b
commit 9fa89967ca
2 changed files with 44 additions and 6 deletions

View File

@ -30,7 +30,18 @@ exports.RspHead = class RspHead {
};
exports.Mail = class RspHead {
exports.Attachment = class {
constructor() {
this.fields = [
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
];
}
};
exports.Mail = class {
constructor() {
this.fields = [
@ -38,8 +49,8 @@ exports.Mail = class RspHead {
['mail_type', '', '邮件类型'],
['subject', '', '邮件标题'],
['content', '', '邮件内容'],
['recipients', '', '收件人列表'],
['attachments', '', '邮件附件'],
['!recipients', '', '收件人列表'],
['!attachments', Attachment(), '邮件附件'],
['deleted', 0, '是否已删除'],
['sendtime', 0, '发送时间'],
['user_reg_start_time', 0, '用户注册开始时间'],
@ -52,7 +63,7 @@ exports.Mail = class RspHead {
};
exports.UserGroup = class RspHead {
exports.UserGroup = class {
constructor() {
this.fields = [

View File

@ -35,8 +35,35 @@ module.exports = class {
['mail_type', 0, '邮件类型'],
['subject', '', '邮件标题'],
['content', '', '邮件内容'],
['recipients', '', '收件人列表'],
['attachments', '', '邮件附件'],
['!recipients', '', '收件人列表'],
['!attachments', common.Attachment(), '邮件附件'],
['sendtime', 0, '发送时间'],
['user_reg_start_time', 0, '用户注册开始时间'],
['user_reg_end_time', 0, '用户注册结束时间'],
['expiretime', 0, '过期时间'],
],
'response': [
new common.RspHead(),
]
},
{
'method': 'POST',
'name': 'edit',
'desc': '添加邮件',
'group': 'mail',
'url': 'api/v1/mail/edit',
'header': [
],
'is_json_params': true,
'params': [
new common.RspHead(),
['mail_id', '', '邮件id'],
['mail_type', 0, '邮件类型'],
['subject', '', '邮件标题'],
['content', '', '邮件内容'],
['!recipients', '', '收件人列表'],
['!attachments', common.Attachment(), '邮件附件'],
['sendtime', 0, '发送时间'],
['user_reg_start_time', 0, '用户注册开始时间'],
['user_reg_end_time', 0, '用户注册结束时间'],