You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
915 B
26 lines
915 B
2 years ago
|
const getOpenId = require('./getOpenId/index');
|
||
|
const getMiniProgramCode = require('./getMiniProgramCode/index');
|
||
|
const createCollection = require('./createCollection/index');
|
||
|
const selectRecord = require('./selectRecord/index');
|
||
|
const updateRecord = require('./updateRecord/index');
|
||
|
const sumRecord = require('./sumRecord/index');
|
||
|
|
||
|
|
||
|
// 云函数入口函数
|
||
|
exports.main = async (event, context) => {
|
||
|
switch (event.type) {
|
||
|
case 'getOpenId':
|
||
|
return await getOpenId.main(event, context);
|
||
|
case 'getMiniProgramCode':
|
||
|
return await getMiniProgramCode.main(event, context);
|
||
|
case 'createCollection':
|
||
|
return await createCollection.main(event, context);
|
||
|
case 'selectRecord':
|
||
|
return await selectRecord.main(event, context);
|
||
|
case 'updateRecord':
|
||
|
return await updateRecord.main(event, context);
|
||
|
case 'sumRecord':
|
||
|
return await sumRecord.main(event, context);
|
||
|
}
|
||
|
};
|