常量

12114

常量总览

_constant结构

  1. CREATE TABLE `_constant` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `constantKey` varchar(255) DEFAULT NULL,
  4. `constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',
  5. `desc` varchar(255) DEFAULT NULL COMMENT '描述',
  6. `constantValue` text COMMENT '常量内容; object, array',
  7. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  8. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  9. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  10. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  11. PRIMARY KEY (`id`) USING BTREE
  12. ) ENGINE = InnoDB AUTO_INCREMENT = 67 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表;'

_constant 表数据

  • constantKey:bookCover

  • constantType:array

  1. [
  2. {
  3. "text": "图标1 语文",
  4. "value": "/bookCover/1684392567970_906812_图标语文.png"
  5. },
  6. {
  7. "text": "图标2 数学",
  8. "value": "/bookCover/1684392581983_621071_图标数学.png"
  9. }
  10. ]

null

  • constantKey:userStatus

  • constantType:array

  1. [
  2. {
  3. "value": "active",
  4. "text": "正常"
  5. },
  6. {
  7. "value": "banned",
  8. "text": "禁用"
  9. }
  10. ]

null

  • constantKey:userType

  • constantType:array

  1. [
  2. {
  3. "value": "common",
  4. "text": "普通用户"
  5. },
  6. {
  7. "value": "xiaochengxu",
  8. "text": "小程序机器人"
  9. }
  10. ]

null

  • constantKey:gender

  • constantType:array

  1. [
  2. {
  3. "value": "male",
  4. "text": "男"
  5. },
  6. {
  7. "value": "female",
  8. "text": "女"
  9. }
  10. ]

null

  • constantKey:version

  • constantType:object

  1. {
  2. "testUserIdList": "",
  3. "version": "4.3.11",
  4. "title": "4.3.7 版本发布",
  5. "note": "新版本介绍\n 1. 聊天输入优化",
  6. "apkVersion": "5.0.20",
  7. "apkLink": "https://duoxing.openjianghu.org/duoxing/upload/10002/1647840662817_956853_D多星MD-4.7.10.apk",
  8. "apkNote": "",
  9. "desktopVersion": "4.3.2",
  10. "desktopLink": "http://192.168.110.215:8082/duoxing/upload/duoxing-1.0.1.dmg.zip",
  11. "desktopNote": "测试桌面客户端升级"
  12. }

null

  • constantKey:emotion

  • constantType:array

  1. [
  2. {
  3. "dir": "face01",
  4. "cover": "face-lbl",
  5. "ext": "png",
  6. "cols": 5,
  7. "total": 86
  8. },
  9. {
  10. "dir": "face02",
  11. "cover": "face-lbl",
  12. "ext": "gif",
  13. "cols": 2,
  14. "total": 16
  15. },
  16. {
  17. "dir": "face03",
  18. "cover": "face-lbl",
  19. "ext": "gif",
  20. "cols": 2,
  21. "total": 16
  22. },
  23. {
  24. "dir": "face04",
  25. "cover": "face-lbl",
  26. "ext": "gif",
  27. "cols": 2,
  28. "total": 16
  29. },
  30. {
  31. "dir": "face05",
  32. "cover": "face-lbl",
  33. "ext": "gif",
  34. "cols": 1,
  35. "total": 7
  36. },
  37. {
  38. "dir": "face06",
  39. "cover": "face-lbl",
  40. "ext": "gif",
  41. "cols": 3,
  42. "total": 24
  43. },
  44. {
  45. "dir": "face07",
  46. "cover": "face-lbl",
  47. "ext": "gif",
  48. "cols": 2,
  49. "total": 16
  50. },
  51. {
  52. "dir": "face08",
  53. "cover": "face-lbl",
  54. "ext": "gif",
  55. "cols": 3,
  56. "total": 23
  57. },
  58. {
  59. "dir": "face09",
  60. "cover": "face-lbl",
  61. "ext": "gif",
  62. "cols": 2,
  63. "total": 16
  64. },
  65. {
  66. "dir": "face10",
  67. "cover": "face-lbl",
  68. "ext": "gif",
  69. "cols": 3,
  70. "total": 20
  71. },
  72. {
  73. "dir": "face11",
  74. "cover": "face-lbl",
  75. "ext": "gif",
  76. "cols": 2,
  77. "total": 13
  78. },
  79. {
  80. "dir": "face12",
  81. "cover": "face-lbl",
  82. "ext": "gif",
  83. "cols": 2,
  84. "total": 16
  85. },
  86. {
  87. "dir": "face13",
  88. "cover": "face-lbl",
  89. "ext": "gif",
  90. "cols": 2,
  91. "total": 15
  92. },
  93. {
  94. "dir": "face14",
  95. "cover": "face-lbl",
  96. "ext": "gif",
  97. "cols": 2,
  98. "total": 16
  99. }
  100. ]

null

  • constantKey:appLinkActionConfig

  • constantType:array

  1. [
  2. {
  3. "regex": ".openjianghu.org/*",
  4. "action": "internal"
  5. },
  6. {
  7. "regex": "http://192.168./*",
  8. "action": "internal"
  9. }
  10. ]

年级列表

  • constantKey:level

  • constantType:array

  1. [
  2. {
  3. "value": "01",
  4. "text": "一年级"
  5. },
  6. {
  7. "value": "02",
  8. "text": "二年级"
  9. },
  10. {
  11. "value": "03",
  12. "text": "三年级"
  13. },
  14. {
  15. "value": "04",
  16. "text": "四年级"
  17. },
  18. {
  19. "value": "05",
  20. "text": "五年级"
  21. },
  22. {
  23. "value": "06",
  24. "text": "六年级"
  25. },
  26. {
  27. "value": "07",
  28. "text": "七年级"
  29. },
  30. {
  31. "value": "08",
  32. "text": "八年级"
  33. },
  34. {
  35. "value": "09",
  36. "text": "九年级"
  37. },
  38. {
  39. "value": "10",
  40. "text": "高一"
  41. },
  42. {
  43. "value": "11",
  44. "text": "高二"
  45. },
  46. {
  47. "value": "12",
  48. "text": "高三"
  49. }
  50. ]

_constant语句

  1. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (1, 'bookCover', 'array', '', '[{"text":"图标1 语文","value": "/bookCover/1684392567970_906812_图标语文.png"},
  2. {"text":"图标2 数学","value": "/bookCover/1684392581983_621071_图标数学.png"}]', 'update', 'admin01', 'admin01', '2022-03-12T17:19:50+08:00');
  3. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (59, 'userStatus', 'array', NULL, '[{"value": "active", "text": "正常"}, {"value": "banned", "text": "禁用"}]', 'insert', NULL, NULL, NULL);
  4. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (60, 'userType', 'array', NULL, '[{"value": "common", "text": "普通用户"},{"value": "xiaochengxu", "text": "小程序机器人"}]', 'insert', NULL, NULL, NULL);
  5. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (61, 'gender', 'array', NULL, '[{"value": "male", "text": "男"}, {"value": "female", "text": "女"}]', 'insert', NULL, NULL, NULL);
  6. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (62, 'version', 'object', NULL, '{"testUserIdList": "","version": "4.3.11", "title": "4.3.7 版本发布", "note": "新版本介绍\n 1. 聊天输入优化", "apkVersion": "5.0.20", "apkLink": "https://duoxing.openjianghu.org/duoxing/upload/10002/1647840662817_956853_D多星MD-4.7.10.apk", "apkNote": "", "desktopVersion": "4.3.2", "desktopLink": "http://192.168.110.215:8082/duoxing/upload/duoxing-1.0.1.dmg.zip", "desktopNote": "测试桌面客户端升级" }', 'insert', NULL, NULL, NULL);
  7. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (64, 'emotion', 'array', NULL, '[
  8. {
  9. "dir":"face01",
  10. "cover":"face-lbl",
  11. "ext":"png",
  12. "cols":5,
  13. "total":86
  14. },
  15. {
  16. "dir":"face02",
  17. "cover":"face-lbl",
  18. "ext":"gif",
  19. "cols":2,
  20. "total":16
  21. },
  22. {
  23. "dir":"face03",
  24. "cover":"face-lbl",
  25. "ext":"gif",
  26. "cols":2,
  27. "total":16
  28. },
  29. {
  30. "dir":"face04",
  31. "cover":"face-lbl",
  32. "ext":"gif",
  33. "cols":2,
  34. "total":16
  35. },
  36. {
  37. "dir":"face05",
  38. "cover":"face-lbl",
  39. "ext":"gif",
  40. "cols":1,
  41. "total":7
  42. },
  43. {
  44. "dir":"face06",
  45. "cover":"face-lbl",
  46. "ext":"gif",
  47. "cols":3,
  48. "total":24
  49. },
  50. {
  51. "dir":"face07",
  52. "cover":"face-lbl",
  53. "ext":"gif",
  54. "cols":2,
  55. "total":16
  56. },
  57. {
  58. "dir":"face08",
  59. "cover":"face-lbl",
  60. "ext":"gif",
  61. "cols":3,
  62. "total":23
  63. },
  64. {
  65. "dir":"face09",
  66. "cover":"face-lbl",
  67. "ext":"gif",
  68. "cols":2,
  69. "total":16
  70. },
  71. {
  72. "dir":"face10",
  73. "cover":"face-lbl",
  74. "ext":"gif",
  75. "cols":3,
  76. "total":20
  77. },
  78. {
  79. "dir":"face11",
  80. "cover":"face-lbl",
  81. "ext":"gif",
  82. "cols":2,
  83. "total":13
  84. },
  85. {
  86. "dir":"face12",
  87. "cover":"face-lbl",
  88. "ext":"gif",
  89. "cols":2,
  90. "total":16
  91. },
  92. {
  93. "dir":"face13",
  94. "cover":"face-lbl",
  95. "ext":"gif",
  96. "cols":2,
  97. "total":15
  98. },
  99. {
  100. "dir":"face14",
  101. "cover":"face-lbl",
  102. "ext":"gif",
  103. "cols":2,
  104. "total":16
  105. }
  106. ]
  107. ', 'insert', NULL, NULL, NULL);
  108. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (65, 'appLinkActionConfig', 'array', NULL, '[{"regex":".openjianghu.org\/*", "action": "internal"}, {"regex":"http:\/\/192.168.\/*", "action": "internal"}]', 'insert', NULL, NULL, NULL);
  109. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (66, 'level', 'array', '年级列表', '[{"value":"01","text":"一年级"},{"value": "02","text": "二年级"},{"value":"03","text":"三年级"},{"value": "04","text": "四年级"},{"value": "05","text": "五年级"},{"value": "06","text": "六年级"},{"value": "07","text": "七年级"},{"value": "08","text": "八年级"},{"value": "09","text": "九年级"},{"value": "10","text": "高一"},{"value": "11","text": "高二"},{"value": "12","text": "高三"}]', 'insert', NULL, NULL, NULL);