platform_ssl.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. return [
  3. 'list' => [
  4. 'where' => ['platform_id'],
  5. 'field' => [
  6. 'id',
  7. 'name',
  8. 'type',
  9. 'cdate',
  10. ],
  11. 'data_button' => [
  12. '编辑' => ['fastedit'],
  13. ],
  14. 'button' => [
  15. '新增' => ['fastadd'],
  16. ],
  17. 'search' => [
  18. 'platform_id' => 'hidden',
  19. 'name',
  20. ],
  21. ],
  22. 'update' => [
  23. 'tab' => [
  24. '基本设置' => 'name,type,cipher_algo,option,iv,tag_len,aad,after',
  25. '加密设置' => 'encrypt_cert_type,encrypt_cert,encrypt_cert_id',
  26. '解密设置' => 'decrypt_cert_type,decrypt_cert,decrypt_cert_id',
  27. ],
  28. 'field' => [
  29. 'platform_id' => 'hidden',
  30. 'name',
  31. 'type' => 'radio',
  32. 'cipher_algo' => [
  33. 'desc' => '直接填写密码学方式的值,如aes-256-cbc',
  34. ],
  35. 'option' => [
  36. 'desc' => '直接输入填充模式的常量即可,如:OPENSSL_NO_PADDING'
  37. ],
  38. 'iv' => [
  39. 'desc' => '可以直接使用平台设置中的参数名',
  40. ],
  41. 'tag' => [
  42. 'desc' => '可以直接使用平台设置中的参数名',
  43. ],
  44. 'tag_len',
  45. 'aad' => [
  46. 'desc' => '可以直接使用平台设置中的参数名',
  47. ],
  48. 'after' => 'radio',
  49. 'encrypt_cert_type' => 'radio',
  50. 'encrypt_cert' => [
  51. 'type' => 'text',
  52. 'desc' => '可以直接使用平台设置中的参数名',
  53. ],
  54. 'encrypt_cert_id' => [
  55. 'type' => 'select',
  56. 'clearable' => true,
  57. 'option' => 'Dever::call("Api/Lib/Cert.list", "{platform_id}")',
  58. ],
  59. 'decrypt_cert_type' => 'radio',
  60. 'decrypt_cert' => [
  61. 'type' => 'text',
  62. 'desc' => '可以直接使用平台设置中的参数名',
  63. ],
  64. 'decrypt_cert_id' => [
  65. 'type' => 'select',
  66. 'clearable' => true,
  67. 'option' => 'Dever::call("Api/Lib/Cert.list", "{platform_id}"))',
  68. ],
  69. ],
  70. 'control' => [
  71. 'cipher_algo' => [
  72. 'type' => [2,3]
  73. ],
  74. 'option' => [
  75. 'type' => [1,2]
  76. ],
  77. 'iv' => [
  78. 'type' => 2,
  79. ],
  80. 'tag' => [
  81. 'type' => 2,
  82. ],
  83. 'aad' => [
  84. 'type' => 2,
  85. ],
  86. 'tag_len' => [
  87. 'type' => 2,
  88. ],
  89. 'encrypt_cert' => [
  90. 'encrypt_cert_type' => 3,
  91. ],
  92. 'encrypt_cert_id' => [
  93. 'encrypt_cert_type' => [1,2],
  94. ],
  95. 'decrypt_cert' => [
  96. 'decrypt_cert_type' => 3,
  97. ],
  98. 'decrypt_cert_id' => [
  99. 'decrypt_cert_type' => [1,2],
  100. ],
  101. ],
  102. ],
  103. ];