appeal.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package model
  2. import "go-common/library/time"
  3. // appeal state
  4. const (
  5. AuditStatePending = 0
  6. AuditStateEffective = 1
  7. AuditStateInvalid = 2
  8. TransferStatePendingSystemNotReply = 0
  9. TransferStatePendingSystemReply = 1
  10. TransferStateAdminReplyReaded = 2
  11. TransferStateAdminClosed = 3
  12. TransferStateUserResolved = 4
  13. TransferStateAutoClosedExpire = 5
  14. TransferStateAdminReplyNotReaded = 6
  15. TransferStateUserClosed = 7
  16. TransferStatePassClosed = 8
  17. AssignStateNotDispatch = 0
  18. AssignStatePushed = 1
  19. AssignStatePoped = 2
  20. AssignStateReAudit = 3
  21. )
  22. // Appeal orm struct of table workflow_appeal
  23. type Appeal struct {
  24. ApID int64 `json:"id" gorm:"column:id"`
  25. Rid int8 `json:"rid" gorm:"column:rid"`
  26. Tid int32 `json:"tid" gorm:"column:tid"`
  27. Bid int8 `json:"bid" gorm:"column:bid"`
  28. Mid int64 `json:"mid" gorm:"column:mid"`
  29. Oid int64 `json:"oid" gorm:"column:oid"`
  30. AuditState int8 `json:"audit_state" gorm:"column:audit_state"`
  31. TransferState int8 `json:"transfer_state" gorm:"column:transfer_state"`
  32. AssignState int8 `json:"assign_state" gorm:"column:assign_state"`
  33. Weight int64 `json:"weight" gorm:"column:weight"`
  34. AuditAdmin int64 `json:"audit_admin" gorm:"column:audit_admin"`
  35. TransferAdmin int64 `json:"transfer_admin" gorm:"column:transfer_admin"`
  36. DTime time.Time `json:"dtime" gorm:"column:dtime"`
  37. TTime time.Time `json:"ttime" gorm:"column:ttime"`
  38. CTime time.Time `json:"ctime" gorm:"column:ctime"`
  39. MTime time.Time `json:"mtime" gorm:"column:mtime"`
  40. }