flow_resource.go 614 B

12345678910111213141516171819202122232425
  1. package net
  2. const (
  3. //TableFlowResource .
  4. TableFlowResource = "net_flow_resource"
  5. //FRStateDeleted 流程取消状态
  6. FRStateDeleted = -1
  7. //FRStateRunning 流程运行状态
  8. FRStateRunning = 0
  9. )
  10. //FlowResource 资源在审核网的运行现状
  11. type FlowResource struct {
  12. ID int64 `gorm:"primary_key" json:"id"`
  13. RID int64 `gorm:"column:rid" json:"rid"`
  14. FlowID int64 `gorm:"column:flow_id" json:"flow_id"`
  15. State int8 `gorm:"column:state" json:"state"`
  16. NetID int64 `gorm:"column:net_id" json:"net_id"`
  17. }
  18. // TableName .
  19. func (fr *FlowResource) TableName() string {
  20. return TableFlowResource
  21. }