platform_meta.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package model
  2. // challenge audit state mapping to platform state map[business][platform_state][flow]chall_state
  3. // business > 100 means feedback flow of business%100
  4. // platform state 0.pending 1.handling 2.done 3.close
  5. const (
  6. _AuditFlow = 0
  7. _FeedbcakFlow = 1
  8. _PlatPending = 0
  9. _PlatHandling = 1
  10. _PlatDone = 2
  11. _PlatClosed = 3
  12. )
  13. var pMetas map[int8]map[int8]map[int64][]int64
  14. func init() {
  15. pMetas = map[int8]map[int8]map[int64][]int64{
  16. // 稿件申诉
  17. 2: {
  18. _PlatPending: {
  19. _AuditFlow: {},
  20. _FeedbcakFlow: {0, 1},
  21. },
  22. _PlatHandling: {
  23. _AuditFlow: {},
  24. _FeedbcakFlow: {2, 6},
  25. },
  26. _PlatDone: {
  27. _AuditFlow: {},
  28. _FeedbcakFlow: {3, 4, 5, 7, 8},
  29. },
  30. _PlatClosed: { // 关闭状态合并到已办
  31. _AuditFlow: {},
  32. _FeedbcakFlow: {5, 7, 8},
  33. },
  34. },
  35. //稿件审核
  36. 6: {
  37. _PlatPending: {
  38. _AuditFlow: {0},
  39. _FeedbcakFlow: {},
  40. },
  41. _PlatDone: {
  42. _AuditFlow: {1, 2, 3},
  43. _FeedbcakFlow: {},
  44. },
  45. _PlatClosed: {
  46. _AuditFlow: {3},
  47. _FeedbcakFlow: {},
  48. },
  49. },
  50. }
  51. }
  52. // PlatformMetas return platform meta data
  53. func PlatformMetas() map[int8]map[int8]map[int64][]int64 {
  54. return pMetas
  55. }