wai: todo
parent
4ca8bf359b
commit
94e370d209
@ -1 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
const checkPhoneNumber = ctx => {
|
||||
const { phone } = ctx.query;
|
||||
return {
|
||||
is_whatsapp_number: true,
|
||||
contact_id: phone,
|
||||
};
|
||||
};
|
||||
|
||||
const getOne = ctx => {
|
||||
const { whatsappId } = ctx.params;
|
||||
return { id: whatsappId };
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
checkPhoneNumber,
|
||||
getOne,
|
||||
};
|
||||
|
@ -1 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
const getMembers = ctx => {
|
||||
const { groupId } = ctx.request.body;
|
||||
return [{ participant: 'test' }];
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getMembers,
|
||||
};
|
||||
|
Loading…
Reference in New Issue