flow.go 815 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package archive
  2. // pool .
  3. const (
  4. PoolArc = int8(0)
  5. PoolUp = int8(1)
  6. PoolPrivateOrder = int8(2)
  7. PoolArticle = int8(3)
  8. PoolArcForbid = int8(4)
  9. FlowOpen = int8(0)
  10. FlowDelete = int8(1)
  11. FlowLogAdd = int8(1)
  12. FlowLogUpdate = int8(2)
  13. FlowLogDel = int8(3)
  14. FlowGroupNoChannel = int64(23)
  15. FlowGroupNoHot = int64(24)
  16. )
  17. var (
  18. //FlowAttrMap archive submit with flow attr
  19. FlowAttrMap = map[string]int64{
  20. "nochannel": FlowGroupNoChannel,
  21. "nohot": FlowGroupNoHot,
  22. }
  23. )
  24. //FlowData flow_design data
  25. type FlowData struct {
  26. ID int64 `json:"id"`
  27. Pool int8 `json:"pool"`
  28. OID int64 `json:"oid"`
  29. GroupID int64 `json:"group_id"`
  30. Parent int8 `json:"parent"`
  31. State int8 `json:"state"`
  32. GroupValue []byte `json:"group_value"`
  33. }