Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

21 rader
439 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:10
  7. */
  8. const resourcesDao = require('../models/dao/resourcesDao');
  9. module.exports = {
  10. /**
  11. * 获取轮播图数据
  12. * @param {Object} ctx
  13. */
  14. Carousel: async ctx => {
  15. let carousel = await resourcesDao.Carousel();
  16. ctx.body = {
  17. code: '001',
  18. carousel
  19. }
  20. }
  21. }