account.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. return [
  3. 'name' => '消息账户',
  4. 'order' => 'sort asc,id asc',
  5. 'struct' => [
  6. 'name' => [
  7. 'type' => 'varchar(60)',
  8. 'name' => '账户名称',
  9. ],
  10. 'method' => [
  11. 'type' => 'varchar(100)',
  12. 'name' => '账户功能',
  13. 'default' => 'sms',
  14. 'value' => 'Dever::call("msg/template.method")',
  15. ],
  16. 'api_account_id' => [
  17. 'type' => 'int(11)',
  18. 'name' => '万接账户',
  19. 'value' => 'api/account',
  20. ],
  21. 'test' => [
  22. 'name' => '测试',
  23. 'type' => 'tinyint(1)',
  24. 'default' => 2,
  25. 'value' => [
  26. 1 => '开启',
  27. 2 => '关闭',
  28. ],
  29. ],
  30. 'sort' => [
  31. 'name' => '排序',
  32. 'type' => 'int(11)',
  33. 'default' => '1',
  34. ],
  35. 'status' => [
  36. 'name' => '状态',
  37. 'type' => 'tinyint(1)',
  38. 'default' => 1,
  39. 'value' => [
  40. 1 => '展示',
  41. 2 => '不展示',
  42. ],
  43. ],
  44. ],
  45. 'index' => [
  46. 'method' => 'method',
  47. ],
  48. ];