MessageNotificationsModel.php 449 B

1234567891011121314151617181920
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Message\Model;
  4. use SixShop\Message\Enum\NotificationsTypeEnum;
  5. use think\Model;
  6. class MessageNotificationsModel extends Model
  7. {
  8. protected function getOptions(): array
  9. {
  10. return [
  11. 'name' => 'message_notifications',
  12. 'type' => [
  13. 'type' => NotificationsTypeEnum::class,
  14. 'template_context' => 'json'
  15. ]
  16. ];
  17. }
  18. }