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.
 
 
 

16 lines
365 B

  1. /*
  2. * @Description: 资源模块数据持久层
  3. * @Author: hai-27
  4. * @Date: 2020-02-07 16:51:56
  5. * @LastEditors: hai-27
  6. * @LastEditTime: 2020-02-27 14:33:43
  7. */
  8. const db = require('./db.js');
  9. module.exports = {
  10. // 连接数据库获取轮播图数据
  11. Carousel: async () => {
  12. const sql = 'select * from carousel';
  13. return await db.query(sql, []);
  14. }
  15. }