25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- /*
- * @Description: 资源模块数据持久层
- * @Author: hai-27
- * @Date: 2020-02-07 16:51:56
- * @LastEditors: hai-27
- * @LastEditTime: 2020-02-27 14:33:43
- */
- const db = require('./db.js');
-
- module.exports = {
- // 连接数据库获取轮播图数据
- Carousel: async () => {
- const sql = 'select * from carousel';
- return await db.query(sql, []);
- }
- }
|