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.

25 lines
619 B

  1. <?php
  2. namespace App\Controller\v3;
  3. use App\Service\v3\Interfaces\MiniprogramServiceInterface;
  4. use Hyperf\Di\Annotation\Inject;
  5. use Hyperf\Validation\ValidationException;
  6. class MiniSubscribeMsgController extends \App\Controller\BaseController
  7. {
  8. /**
  9. * @Inject
  10. * @var MiniprogramServiceInterface
  11. */
  12. protected $miniprogramService;
  13. public function getTemplates()
  14. {
  15. $forUserType = $this->request->input('for_user_type');
  16. $templates = $this->miniprogramService->getSubscribeMessageTempList($forUserType);
  17. return $this->success(['templates' => $templates]);
  18. }
  19. }