1234567891011121314151617181920 |
- const {
- db,
- _
- } = require("../../utils/http");
- async function LiveService(data) {
- const orilist = await db.collection('live').where({
- live_type: _.eq('live'),
- }).get();
- return orilist.data[0] || {}
- }
- async function LiveServiceList() {
- const orilist = await db.collection('live').get();
- return orilist.data
- }
- module.exports = {
- LiveService,
- LiveServiceList
- }
|