Postertemplate.php 1012 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace addon\postertemplate\api\controller;
  11. use addon\postertemplate\model\PosterTemplate as PosterTemplateModel;
  12. use app\api\controller\BaseApi;
  13. /**
  14. * 海报模板 控制器
  15. */
  16. class Postertemplate extends BaseApi
  17. {
  18. /**
  19. * 海报模板列表
  20. * @return mixed
  21. */
  22. public function lists()
  23. {
  24. $page_index = input('page', 1);
  25. $page_size = input('page_size', PAGE_LIST_ROWS);
  26. $poster_template_model = new PosterTemplateModel();
  27. $res = $poster_template_model->getPosterTemplatePageList([ [ 'site_id', '=', $this->site_id ] ], $page_index, $page_size);
  28. return $res;
  29. }
  30. }