订阅接口

订阅类型列表接口

post('api/cms/subs/type', {keyword: '关键词搜索', status: '1', date: ['2024-08-09', '2024-09-08'], page: 1, pageSize: 20}, function (res) {
console.log(res.status,  res.count, res.data);
})
keyword 选填,String
date 选填,Array
status 必填,Int
page 必填,Int
pageSize 必填,Int

 

订阅接口

post('api/cms/subs/subscriber', {email: '邮箱号,必填', type_id: '订阅类型编号,必填', content: '订阅说明,非必填', user_id: '会员编号,非必填'}, function (res) {
console.log(res.status,  res.message);
})

 

取消订阅接口

post('api/cms/subs/cancel', {email: '邮箱号,必填'}, function (res) {
console.log(res.status,  res.message);
})

 

文档最后更新时间:2024-07-15 17:23:48